Skip to main content
POST
Create a team

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Headers

Idempotency-Key
string

A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.

Required string length: 1 - 255

Body

application/json
agent_id
string
required

ID of the agent the team is for.

Maximum string length: 64
name
string
required

Unique within the agent.

Required string length: 1 - 120
description
string | null
Maximum string length: 500
color
string

A hex color, stored in uppercase. If omitted, a color is picked from the dashboard's palette.

Pattern: ^#[0-9A-Fa-f]{6}$
Example:

"#10B981"

active
boolean

Defaults to true.

member_ids
string[]

account_ids from List members. Members must be able to be assigned the agent's conversations: active, with the owner, admin, or agent role, and with access to the agent.

Maximum array length: 500
Maximum string length: 64

Response

The new team.

object
any
required
id
string
required
Example:

"t8r2v6p1"

agent
object
required

The agent this belongs to.

name
string
required
Example:

"Billing"

description
string | null
required
color
string | null
required
Example:

"#10B981"

active
boolean
required

Inactive teams stay assigned to their conversations, but live chat routing skips them.

members
object[]
required

Sorted by name. Members who can no longer be assigned the agent's conversations, for example after a role change, aren't listed until they can be again.

created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required