Query the task status
Query the task status
https://api.agora.io/api/speech-to-text/v1/projects/{appid}/agents/{agentId}
Use this method to query the status of a Real-Time STT task.
Request
Path parameters
The App ID of the project
The unique identifier of the agent you received in the response body of the join
method.
Response
-
If the returned status code is
200
, the request was successful. The response body contains the result of the request.OK
- message string
Details of the request result
- agent_id string
The ID of the agent.
- create_ts integer
The Unix timestamp (in seconds) when the transcription task was created.
- status string
The current status of the agent:
IDLE
: The agent is not initializedSTARTING
: The agent is startingRUNNING
: The agent is runningSTOPPING
: The agent is exitingSTOPPED
: The agent exited successfullyRECOVERING
: The agent is recoveringFAILED
: Agent exit failed
-
If the returned status code is not
200
, the request failed. Refer tomessage
andcode
fields to understand the possible reasons for failure.OK
- message string
Details of the failed request.
- agent_id string
The ID of the agent.
- create_ts integer
The Unix timestamp (in seconds) when the transcription task was created.
- status string
The status of the agent. If the returned status code is not 200, the request failed. Troubleshoot according to the
details
andreason
fields.
Authorization
This endpoint requires Basic Auth.
Request example
- curl
- Python
- Node.js
Response example
- 200
- Non-200