Skip to content

Get Agent Run status

GET
/api/public/ai-chat/agent-runs/{runId}/status
curl --request GET \
--url https://backend.podscribe.ai/api/public/ai-chat/agent-runs/1/status \
--header 'Authorization: Bearer <token>'

Returns the current status of an agent run started via POST /api/public/ai-chat/agents/{agentId}/runs. When status is done, output contains the assistant response text and files contains any downloadable files created by the run. Download URLs are short-lived; call this endpoint again if a URL expires. When status is failed, error describes the failure.

runId
required
integer
>= 1

Run ID returned by POST /api/public/ai-chat/agents/{agentId}/runs.

Agent run status

Media typeapplication/json
object
runId
required
integer
status
required
string
Allowed values: processing done failed
output

Assistant response text when status is done.

string
files

Files created by the run when status is done.

Array<object>
object
fileId
required
string
fileName
required
string
fileType
required
string
size
required
integer
downloadUrl
required

Short-lived URL for downloading the file.

string format: uri
error

Error message when status is failed.

string
Example
{
"status": "processing"
}

Invalid request data

Invalid token or insufficient permissions

Agent run not found

Internal server error