Skip to main content
POST
/
api
/
content-agent
/
callback
cURL
curl --request POST \
  --url https://recoup-api.vercel.app/api/content-agent/callback \
  --header 'Content-Type: application/json' \
  --data '
{
  "threadId": "<string>",
  "status": "completed",
  "results": [
    {
      "runId": "<string>",
      "status": "completed",
      "videoUrl": "<string>",
      "captionText": "<string>",
      "error": "<string>"
    }
  ],
  "message": "<string>"
}
'
{
  "status": "ok"
}

Body

application/json

Content generation results from the polling task

threadId
string
required

Chat SDK thread identifier for the originating Slack thread

status
enum<string>
required

Overall status of the content generation batch

Available options:
completed,
failed,
timeout
results
object[]

Per-run results

message
string

Optional human-readable message

Response

Callback processed and results posted to Slack

status
string
Example:

"ok"