Get Agent
Retrieve one agent's profile, availability and team role. Obtain the agent ID from data[].id in List Agents, then pass it in the GET /agents/{id} path.
GET https://developers.chatway.app/api/v1/agents/{id}Example request
curl -X GET "https://developers.chatway.app/api/v1/agents/26fa75f2-7ac1-47b4-84e1-b943491ba4da" \
-H "X-API-KEY: your_api_key"Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | Yes | string | Required agent ID from List Agents. Use an ID returned for the same workspace and API key you are using for this request. Replace the example ID before trying the endpoint. Example: 26fa75f2-7ac1-47b4-84e1-b943491ba4da |
Responses
200
application/json
data (object, required)type (string, required)id (string, required)attributes (object, required)email (string|null, required)name (string|null, required)status (string|null, required)online_status (string|null, required)profile_photo_url (string|null, required)resized_profile_photo_url (string|null, required)role (string|null, required)
403
Examples
Response 200 example
{
"data": {
"type": "agent-user",
"id": "26fa75f2-7ac1-47b4-84e1-b943491ba4da",
"attributes": {
"email": "[email protected]",
"name": "Mock Agent Alpha",
"status": "active",
"online_status": "online",
"profile_photo_url": null,
"resized_profile_photo_url": null,
"role": "CHAT_AGENT_MEMBER"
}
}
}