Inbox Agents
Required Permission: chatbots.inbox.agents.list
Resource: chatbots/:chatbotId
The ID of the chatbot.
A list of agent's online status.
Optional error message.
Insufficient permissions.
GET /v1/inbox/{chatbotId}/agents/online HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"agents": [
{
"agentId": "i1def0QdChav9VSVFqPi",
"online": true,
"lastSeen": "2025-10-06T10:00:00Z"
}
],
"error": "text"
}Required Permission: chatbots.inbox.agents.online.edit
Resource: chatbots/:chatbotId
The ID of the chatbot.
Sets the online status of the agent.
trueThe client timestamp when the request is made. This is used to resolve conflicts when multiple requests are made in a short period of time.
123456789The updated online status.
Optional error message.
Insufficient permissions.
POST /v1/inbox/{chatbotId}/agents/me/online HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"online": true,
"clientTimestamp": 123456789
}{
"agent": {
"agentId": "i1def0QdChav9VSVFqPi",
"online": true,
"lastSeen": "2025-10-06T10:00:00Z"
},
"error": "text"
}Required Permission: chatbots.inbox.agents.notifications.get
Resource: chatbots/:chatbotId
The ID of the chatbot.
The current settings.
Optional error message.
Insufficient permissions.
GET /v1/inbox/{chatbotId}/agents/me/notifications HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"settings": {
"agentId": "Bs47n9wcxy6CWnt48Av3",
"botHandoverToUnassigned": {
"email": true,
"browser": true
},
"botAssignsYou": {
"email": true,
"browser": true
},
"conversationsAssignedToYou": {
"email": true,
"browser": true
},
"pushToken": "cVA6cG-ztyB-M8_7yul:APAnGnnmmELFUbziLIVatyDVe_DyihdJhiaQHYw",
"conversationsAssignedToYourTeam": {
"email": true,
"browser": true
}
},
"error": "text"
}Required Permission: chatbots.inbox.agents.notifications.edit
Resource: chatbots/:chatbotId
The ID of the chatbot.
The push token for browser notifications.
cVA6cG-ztyB-M8_7yul:APAnGnnmmELFUbziLIVatyDVe_DyihdJhiaQHYwThe updated settings.
Optional error message.
Invalid input data.
Insufficient permissions.
POST /v1/inbox/{chatbotId}/agents/me/notifications HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 300
{
"botHandoverToUnassigned": {
"email": true,
"browser": true
},
"botAssignsYou": {
"email": true,
"browser": true
},
"conversationsAssignedToYou": {
"email": true,
"browser": true
},
"pushToken": "cVA6cG-ztyB-M8_7yul:APAnGnnmmELFUbziLIVatyDVe_DyihdJhiaQHYw",
"conversationsAssignedToYourTeam": {
"email": true,
"browser": true
}
}{
"settings": {
"agentId": "Bs47n9wcxy6CWnt48Av3",
"botHandoverToUnassigned": {
"email": true,
"browser": true
},
"botAssignsYou": {
"email": true,
"browser": true
},
"conversationsAssignedToYou": {
"email": true,
"browser": true
},
"pushToken": "cVA6cG-ztyB-M8_7yul:APAnGnnmmELFUbziLIVatyDVe_DyihdJhiaQHYw",
"conversationsAssignedToYourTeam": {
"email": true,
"browser": true
}
},
"error": "text"
}Last updated