curl --request PUT \
--url http://localhost:8080/api/v1/agents/me/availability \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "available"
}
'{
"status": "success",
"data": {
"id": 1,
"created_at": "2025-08-28T10:00:00Z",
"updated_at": "2025-08-28T10:00:00Z",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"type": "agent",
"availability_status": "online",
"phone_number_country_code": "US",
"phone_number": "1234567890",
"avatar_url": "/avatars/agent1.jpg",
"enabled": true,
"last_active_at": "2025-08-28T10:00:00Z",
"last_login_at": "2025-08-28T10:00:00Z",
"roles": [
"admin"
],
"permissions": [
"conversations:read"
],
"custom_attributes": {},
"teams": [
{
"id": 1,
"name": "Support Team",
"emoji": "🛠️"
}
],
"api_key": "<string>",
"api_key_last_used_at": "2023-11-07T05:31:56Z"
}
}curl --request PUT \
--url http://localhost:8080/api/v1/agents/me/availability \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "available"
}
'{
"status": "success",
"data": {
"id": 1,
"created_at": "2025-08-28T10:00:00Z",
"updated_at": "2025-08-28T10:00:00Z",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"type": "agent",
"availability_status": "online",
"phone_number_country_code": "US",
"phone_number": "1234567890",
"avatar_url": "/avatars/agent1.jpg",
"enabled": true,
"last_active_at": "2025-08-28T10:00:00Z",
"last_login_at": "2025-08-28T10:00:00Z",
"roles": [
"admin"
],
"permissions": [
"conversations:read"
],
"custom_attributes": {},
"teams": [
{
"id": 1,
"name": "Support Team",
"emoji": "🛠️"
}
],
"api_key": "<string>",
"api_key_last_used_at": "2023-11-07T05:31:56Z"
}
}Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>
Availability status update
Availability status
available, busy, away, offline Agent availability status updated successfully
"success"
Show child attributes
1
"2025-08-28T10:00:00Z"
"2025-08-28T10:00:00Z"
"John"
"Doe"
"agent"
"online"
"US"
"1234567890"
"/avatars/agent1.jpg"
true
"2025-08-28T10:00:00Z"
"2025-08-28T10:00:00Z"
["admin"]["conversations:read"]Was this page helpful?