Submit JSON Data to Turbo DA
Submit structured JSON data to Avail DA using the Turbo DA submit_data endpoint.
Note
Why does this endpoint exist?
-
The
submit_dataendpoint exists to provide a more structured interface for applications that prefer working with JSON. -
For submitting files or arbitrary binary data, use the
submit_raw_dataendpoint instead.
Note
NEED AN API KEY?
Contact our team to get an API key for accessing the Turbo DA API endpoints.
Contact our team to get an API key for accessing the Turbo DA API endpoints.
Endpoint: POST /v1/submit_data
Submits string data in JSON format to Turbo DA. This endpoint is designed for applications that prefer working with structured JSON data rather than raw binary content.
Parameters
x-api-key- Your API authentication key (required)Content-Type- Must beapplication/json
Request Body
{
"data": "Your string data here"
}Response
- submission_id - Unique identifier for tracking your submission
curl -X POST 'https://staging.turbo-api.availproject.org/v1/submit_data' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"data": "Hello Avail Network!"}'Sample Response:
{
"submission_id": "<submission_id>"
}If the request fails due to invalid API key or server error, you'll receive an appropriate HTTP error code with an error message:
{
"error": "Error message details"
}How is this guide?