Retrieve a list of agents
https://api.agora.io/api/conversational-ai-agent/v2/projects/{appid}/agentsGet a list of Conversational AI agents that meet the specified conditions.
Request
Path parameters
The App ID of the project.
Query parameters
The channel to query for a list of agents.
Default: 2 hours ago
The start timestamp (in seconds) for the query.
Default: Current time
The end timestamp (in seconds) for the query.
Default: 2
The agent state to filter by. Only one state can be specified per query:
IDLE(0): Agent is idle.STARTING(1): The agent is being started.RUNNING(2): The agent is running.STOPPING(3): The agent is stopping.STOPPED(4): The agent has exited.RECOVERING(5): The agent is recovering.FAILED(6): The agent failed to execute.
Default: 20
The maximum number of entries returned per page.
The paging cursor, indicating the starting position (agent_id) of the next page of results.
Response
-
If the returned status code is
200, the request was successful. The response body contains the result of the request.OK
-
If the returned status code is not
200, the request failed. The response body includes thedetailandreasonfor failure. Refer to status codes to understand the possible reasons for failure.