Inbox
GET
http://localhost:4000/api/v1 /inbox List inbox conversations, latest activity first
Parameters
statestring
query
channelIdstring
query
clientIdstring
query
postIdstring
query
assigneestring
query
qstring
query
matchstring
query
filtersobject[]
query
sortstring
query
cursorstring
query
limitinteger
query
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/inbox" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"channelId": "string",
"authorName": "string",
"authorHandle": "string",
"authorAvatarUrl": "string",
"postId": "string",
"state": "open",
"snoozedUntil": "2024-01-01T00:00:00Z",
"assigneeId": "string",
"preview": "string",
"lastMessageAt": "2024-01-01T00:00:00Z",
"kind": "string",
"saved": true,
"unread": true,
"rating": 0,
"windowClosedAt": "2024-01-01T00:00:00Z",
"casePriority": "string",
"caseStatus": "string",
"contactId": "string",
"provider": "string",
"channelName": "string",
"clientId": "string",
"labelIds": [
"string"
]
}
]Schema
idstring
required
channelIdstring
required
authorNamestring
required
authorHandlestring
required
authorAvatarUrlstring
required
postIdstring
required
statestring
required
snoozedUntilstring
required
assigneeIdstring
required
previewstring
required
lastMessageAtstring
required
kindstring
required
savedboolean
required
unreadboolean
required
ratingnumber
required
windowClosedAtstring
required
casePrioritystring
required
caseStatusstring
required
contactIdstring
required
providerstring
required
channelNamestring
required
clientIdstring
required
labelIdsstring[]
required
GET
http://localhost:4000/api/v1 /inbox/{id} One conversation with its messages
Parameters
idstring
path
required
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/inbox/{id}" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /inbox/{id}/reply Reply to the person's latest message, as the channel: in public, as a private message, or as the answer to a review
Parameters
idstring
path
required
Request body
application/json
textstring
required
doneboolean
{
"text": "string",
"done": false
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/inbox/{id}/reply" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string","done":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /inbox/assign Hand conversations to a member, or to nobody
Request body
application/json
idsstring[]
required
assigneeIdstring
required
{
"ids": [
"string"
],
"assigneeId": "string"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/inbox/assign" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"],"assigneeId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /inbox/state Mark conversations done, reopen them, or snooze them until a time
Request body
application/json
Example
{
"ids": [
"string"
],
"state": "open"
}Option 1
idsstring[]
required
statestring
required
{
"ids": [
"string"
],
"state": "open"
}Option 2
idsstring[]
required
staterequired
untilstring
required
{
"ids": [
"string"
],
"state": {},
"until": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/inbox/state" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"],"state":"open"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}GET
http://localhost:4000/api/v1 /inbox/reviews List reviews, newest first
Parameters
ratinginteger[]
query
answeredboolean
query
cursorstring
query
limitinteger
query
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/inbox/reviews" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"channelId": "string",
"authorName": "string",
"authorHandle": "string",
"state": "open",
"preview": "string",
"lastMessageAt": "2024-01-01T00:00:00Z",
"rating": 0,
"provider": "string",
"channelName": "string",
"clientId": "string",
"labelIds": [
"string"
]
}
]Schema
idstring
required
channelIdstring
required
authorNamestring
required
authorHandlestring
required
statestring
required
previewstring
required
lastMessageAtstring
required
ratingnumber
required
providerstring
required
channelNamestring
required
clientIdstring
required
labelIdsstring[]
required
PUT
http://localhost:4000/api/v1 /inbox/{id}/answer Edit or delete (text null) our answer to a review
Parameters
idstring
path
required
Request body
application/json
textstring
required
{
"text": "string"
}Code samples
cURL
curl -X PUT "http://localhost:4000/api/v1/inbox/{id}/answer" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /inbox/moderate Hide, unhide, delete, like or block the author of comments, at the platform
Only the actions the channel's platform offers (moderation of the thread). One failing comment does not stop the others: failed lists them with the reason.
Request body
application/json
messageIdsstring[]
conversationIdsstring[]
actionstring
required
{
"messageIds": [],
"conversationIds": [],
"action": "hide"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/inbox/moderate" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"messageIds":[],"conversationIds":[],"action":"hide"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /inbox/labels/apply Put a label on conversations, or take it off
Request body
application/json
idsstring[]
required
labelIdstring
required
removeboolean
{
"ids": [
"string"
],
"labelId": "string",
"remove": false
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/inbox/labels/apply" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"],"labelId":"string","remove":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}GET
http://localhost:4000/api/v1 /inbox/labels List the inbox labels, with how many conversations each holds
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/inbox/labels" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}GET
http://localhost:4000/api/v1 /inbox/saved-replies List the workspace's saved replies
Parameters
qstring
query
collectionstring
query
tagstring
query
clientIdstring
query
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/inbox/saved-replies" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"organizationId": "string",
"title": "string",
"body": "string",
"createdAt": "2024-01-01T00:00:00Z",
"collection": "string",
"ownerId": "string",
"tags": {},
"clientId": "string"
}
]Schema
idstring
required
organizationIdstring
required
titlestring
required
bodystring
required
createdAtstring
required
collectionstring
required
ownerIdstring
required
tagsrequired
clientIdstring
required
Updated