Start a run on a thread to process messages with an assistant
cURL
curl --request POST \ --url https://api.anyapi.ai/v1/threads/{thread_id}/runs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "assistant_id": "<string>" } '
{ "id": "<string>", "object": "run", "thread_id": "<string>", "assistant_id": "<string>", "status": "queued", "created_at": 123 }
Bearer token authentication. Get your API key from the dashboard.
The ID of the thread
ID of the assistant to run
Run created successfully
Run ID
"run"
Thread ID
Assistant ID
Run status
queued
in_progress
requires_action
completed
failed
Creation timestamp