Inbox

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-inbox"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/ef7f09e3-d687-4f7f-918a-45984e4d559c/social-card.svg?v=3e7ae33eec8b" alt="Inbox" width="600" height="315"></a>
GET http://localhost:4000/api/v1/inbox

List inbox conversations, latest activity first

Parameters

state
string
query
open | done | snoozed | all = open
channelId
string
query
clientId
string
query
postId
string
query
assignee
string
query
q
string
query
match
string
query
all | any = all
filters
object[]
query
= []
sort
string
query
newest | oldest = newest
cursor
string
query
limit
integer
query
= 50

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
id
string
required
channelId
string
required
authorName
string
required
authorHandle
string
required
authorAvatarUrl
string
required
postId
string
required
state
string
required
open | done | snoozed
snoozedUntil
string
required
assigneeId
string
required
preview
string
required
lastMessageAt
string
required
kind
string
required
saved
boolean
required
unread
boolean
required
rating
number
required
windowClosedAt
string
required
casePriority
string
required
caseStatus
string
required
contactId
string
required
provider
string
required
channelName
string
required
clientId
string
required
labelIds
string[]
required
GET http://localhost:4000/api/v1/inbox/{id}

One conversation with its messages

Parameters

id
string
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

id
string
path
required

Request body

application/json
text
string
required
done
boolean
= false
{
  "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
ids
string[]
required
assigneeId
string
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
ids
string[]
required
state
string
required
open | done
{
  "ids": [
    "string"
  ],
  "state": "open"
}
Option 2
ids
string[]
required
state
required
until
string
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

rating
integer[]
query
answered
boolean
query
cursor
string
query
limit
integer
query
= 50

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
id
string
required
channelId
string
required
authorName
string
required
authorHandle
string
required
state
string
required
open | done | snoozed
preview
string
required
lastMessageAt
string
required
rating
number
required
provider
string
required
channelName
string
required
clientId
string
required
labelIds
string[]
required
PUT http://localhost:4000/api/v1/inbox/{id}/answer

Edit or delete (text null) our answer to a review

Parameters

id
string
path
required

Request body

application/json
text
string
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
messageIds
string[]
= []
conversationIds
string[]
= []
action
string
required
hide | unhide | delete | like | unlike | block
{
  "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
ids
string[]
required
labelId
string
required
remove
boolean
= false
{
  "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

q
string
query
collection
string
query
tag
string
query
clientId
string
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
id
string
required
organizationId
string
required
title
string
required
body
string
required
createdAt
string
required
collection
string
required
ownerId
string
required
tags
required
clientId
string
required
Updated