POST /v1/requests/exports
Use the documented request fields and permissions for this HTTP endpoint.
Request example#
curl -X POST 'https://platform.tongai.io/v1/requests/exports' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \ -d '{}'Configuration
curl --versionAuthentication#
Use a server-side API key for your account, or OAuth for each customer’s account. Never send keys in prompts or tool arguments.
logs:readParameters#
Idempotency-KeystringRequiredA UUID, for example e8aa0a87-6cd9-42eb-975a-b72bf43218c8.
Request body#
application/jsonfromstringOptionalISO 8601 date and time, for example 2026-10-22T09:00:00Z.
tostringOptionalISO 8601 date and time, for example 2026-10-22T09:00:00Z.
channelstringOptional"api""mcp"credential_idstringOptionalA 24-character hexadecimal ID.
toolstringOptionalMinimum length: 1 characters.
Maximum length: 100 characters.
modelstringOptionalChoose a public Tong model ID from current discovery.
Minimum length: 1 characters.
Maximum length: 150 characters.
categorystringOptionalMinimum length: 1 characters.
Maximum length: 60 characters.
statestringOptional"accepted""running""needs_review""paused""reconciling""succeeded""failed""cancelled"searchstringOptionalMaximum length: 150 characters.
activitystringOptional"creative""all"outcomestringOptional"success""error""pending""cancelled"beforestringOptionalA UUID, for example e8aa0a87-6cd9-42eb-975a-b72bf43218c8.
limitintegerOptionalMinimum: 1.
Maximum: 100.
Default: 40.
Response schema#
{}HTTP 202
application/jsonidstringOptionalA UUID, for example e8aa0a87-6cd9-42eb-975a-b72bf43218c8.
statusJSONOptional"queued""running""ready""failed"rowsintegerOptionalexpires_atstringOptionalISO 8601 date and time, for example 2026-10-22T09:00:00Z.
Errors and limits#
| HTTP | Error | Recovery |
|---|---|---|
400 | Invalid requestREQUEST_INVALID | Correct the fields identified by the error before trying again. |
401 | Invalid credentialCREDENTIAL_INVALID | Check the credential, its expiry and whether it has been revoked. |
402 | Insufficient creditsINSUFFICIENT_CREDITS | Add credits to the account that owns the credential, then continue the saved work. |
403 | Permission deniedSCOPE_REQUIRED | Use a credential with the required scopes and access to the selected resource. |
404 | Resource unavailableRESOURCE_UNAVAILABLE | Check the resource ID and that it belongs to the authorized account. |
409 | Intent conflictIDEMPOTENCY_CONFLICT | Reuse an intent only with its original request. Use a new UUID for a different action. |
429 | Rate limitedRATE_LIMITED | Wait for Retry-After before retrying the same intended request. |
503 | Temporarily unavailableDEPENDENCY_UNAVAILABLE | Wait for Retry-After and retry with the same intent. Check the saved operation after a timeout. |