Skip to Content

Retrieve Pre-Image Data

NEED AN API KEY?
Contact our team to get an API key for accessing the Turbo DA API endpoints.

Endpoint: GET /v1/get_pre_image

Retrieves the original data that was previously submitted to Turbo DA.

Parameters

  • x-api-key - Your API authentication key (required)
  • submission_id - The unique identifier received when data was submitted (query parameter)

Response

  • The raw binary data that was originally submitted
Fetching raw data against your submission ID
curl -X GET 'https://staging.turbo-api.availproject.org/v1/get_pre_image?submission_id=YOUR_SUBMISSION_ID' \ -H 'x-api-key: YOUR_API_KEY'

Sample Response:

{ "data": "Raw binary data" }

If the submission ID is invalid, you’ll receive an appropriate HTTP error code with an error message:

{ "error": "Customer Expenditure entry not found" }

This endpoint complements the submit_raw_data endpoint by allowing users to retrieve the original data they submitted using the submission ID they received. It’s particularly useful for verifying that data was correctly stored or for retrieving data that was submitted by others in your organization.

Last updated on