Get Agent Run status
GET
/api/public/ai-chat/agent-runs/{runId}/status
const url = 'https://backend.podscribe.ai/api/public/ai-chat/agent-runs/1/status';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”runId
required
integer
Run ID returned by POST /api/public/ai-chat/agents/{agentId}/runs.
Responses
Section titled “Responses”Agent run status
Media typeapplication/json
object
runId
required
integer
status
required
string
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