Skip to main content
POST
Create inbox
Required scope: INBOXES_WRITE

Behavior

Creates an inbox owned by the caller and returns it with 201. Send user_id in the JSON body to create it for a teammate instead: the inbox is owned by the teammate and shows in the teammate’s inbox switcher. Only admins and managers of the teammate’s workspace can do that. Every source line must be accessible to the inbox owner, with the same line access rules as the app. A source with an empty conditions list covers the whole line. Build sources from the source of inbox suggestions, or from the condition of menu options. Menu conditions are only accepted on a line whose menu options list is not empty. On any other line, use a whole-line source. Each line appears once in sources. To cover several menu options of one line, put all their paths in the branches of a single MENU_BRANCH condition.

Errors

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required

Required and non-blank.

Maximum string length: 80
Example:

"Sales"

sources
object[]
required
Maximum array length: 100
emoji
string | null
Maximum string length: 16
Example:

"💼"

filters
object | null

Saved filters, with the same meaning as the conversation list filters in the app. "Unread only" is not saved on an inbox: use the unread query parameter of List conversations.

notifications_muted
boolean
Example:

false

user_id
string

Create the inbox for this teammate (usr-*). The caller must be an admin or manager of that teammate's workspace.

Example:

"usr-abc123"

Response

Inbox created

data
object