After your AI automation processes an order, you must send the results back to SellerShorts using our callback endpoint. This completes the order and delivers results to the buyer.
📚 Before you start: Read Callback Basics for required fields, authentication, and response codes.
Callback flow: 1. Process the job. 2. POST /api/orders/callback with JSON payload (text, URL, or base64 file).
⚠️ Note: This guide is for payloads under 4.5 MB. For larger files, use the Callback (Over 4.5 MB) guide.
Use this format when sending text, HTML, JSON, or CSV content directly in the payload. The result_text field is required when using output_type: text, html, json, or csv.
Note: The 4.5 MB total payload limit applies to your entire JSON request body (including all fields and content). For larger content, use the Callback (Over 4.5 MB) guide.
The output_type field can be one of:
text - Plain text contenthtml - HTML contentjson - JSON datacsv - CSV data⚠️ Important: These are template examples. Replace all placeholders with real values:
order-uuid-from-webhook → Use the actual order_id from your webhook payloadx-callback-secret header in your request (see cURL example below){
"ok": true,
"order_id": "order-uuid-from-webhook",
"output_type": "text",
"result_text": "Your analysis results go here..."
}{
"ok": true,
"order_id": "order-uuid-from-webhook",
"output_type": "html",
"result_text": "<h1>Report</h1><p>Analysis completed successfully...</p>"
}{
"ok": true,
"order_id": "order-uuid-from-webhook",
"output_type": "json",
"result_text": "{\"status\": \"success\", \"data\": [1, 2, 3]}"
}{
"ok": true,
"order_id": "order-uuid-from-webhook",
"output_type": "csv",
"result_text": "Name,Age,City\nJohn,30,New York\nJane,25,Los Angeles"
}curl -X POST "https://api.example.com/callback" \
-H "Content-Type: application/json" \
-H "x-callback-secret: your-callback-secret" \
-d '{
"ok": true,
"order_id": "test-order-uuid",
"output_type": "text",
"result_text": "Analysis completed successfully..."
}'true for success, false for failuretext, html, json, csv, file, xlsx, url, videooutput_type: text, html, json, or csv. Contains the actual content as a string.