Get Agent Run Status
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.
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);}import requests
url = "https://backend.podscribe.ai/api/public/ai-chat/agent-runs/1/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json())curl --request GET \ --url https://backend.podscribe.ai/api/public/ai-chat/agent-runs/1/status \ --header 'Authorization: Bearer <token>'Path Parameters
Section titled “Path Parameters”Run ID returned by POST /api/public/ai-chat/agents/{agentId}/runs.
Response Body
Section titled “Response Body”Agent run status
ID of the agent run.
Current state of the run.
Assistant response text when status is done.
Files created by the run when status is done.
Array<{fileId,fileName,fileType,2 more}>
ID of the file.
File name, including the extension.
File extension: csv, tsv, txt, xls, xlsx, json, html or zip.
File size in bytes.
Short-lived URL for downloading the file.
Error message when status is failed.
{ "status": "processing", "files": [ { "fileType": "csv" } ]}