Submit an async task
Queue a task to run asynchronously in the background. The response contains a task ID you can poll for the result, or the result can be delivered by webhook.
post/v1/async/task
Request
- Base URL: https://api.answerline.dev
- URL: https://api.answerline.dev/v1/async/task
- Auth: HTTP bearer
Request body
Example request
{
"taskType": "CHATGPT",
"payload": {
"prompt": "How is Northwind Traders reviewed by customers?",
"country": "US"
},
"priority": 5,
"idempotencyKey": "batch-chatgpt-001",
"webhook": {
"url": "https://your-app.com/webhook-handler"
}
}Response
Task created. The response includes its ID and starting status.
Example response
{
"success": true,
"task": {
"id": "b27a21e1-7c39-4aa2-a347-23e828c426f9",
"taskType": "CHATGPT",
"status": "QUEUED",
"priority": 1,
"createdAt": "2026-04-09T15:00:00.000Z",
"idempotencyKey": "batch-chatgpt-001"
},
"credits": {
"creditsToCharge": 0.00062
}
}Changes
No recorded changes to this operation across all 1 revision of this API.