Query agent status
Use this endpoint to get the current status of the specified Conversational AI agent instance.
API endpoint
- Method:
GET
- Endpoint:
https://api.agora.io/api/conversational-ai-agent/v2/projects/{appid}/agents/{agentId}
- Authorization: Basic Auth
Path parameters
Parameter | Type | Required | Description |
---|---|---|---|
appid | string | Yes | The App ID of the project |
agentId | string | Yes | The agent instance ID you obtained after successfully calling join to start the conversational agent. |
Request examples
Use one of the following request examples as a starting point:
Sample request:
curl --request get \
--url https://api.agora.io/api/conversational-ai-agent/v2/projects/:appid/agents/:agentId \
--header 'Authorization: Basic <credentials>'
Response
-
If the returned status code is
200
, the request was successful. The response body contains the result of the request. -
If the returned status code is not
200
, the request failed. The response body includes the error code and description. Refer to status codes to understand the possible reasons for failure.
Response body
Parameter | Type | Description |
---|---|---|
message | string | Request message |
start_ts | integer | Agent creation timestamp. |
stop_ts | integer | Agent stop timestamp. |
status | string | Current status.
|
agent_id | string | Unique identifier of the agent |
Sample response