API reference
Team channels
A team's channels: read messages and threads, poll what changed, post and reply as yourself with mentions, react, pin, search, mark a channel read and see what you have not read across your teams. The team's managers also start, change, archive and delete channels and decide who may post where. 22 endpoints. Add your API key in the authentication panel to send test requests from this page.
Search a team's channels
/api/external/v1/teams/{teamId}/channel-searchMessages of the team's channels (archived ones too, replies too) whose words contain q, the latest first: {channelName, message}. limit 1-50 (default 50). Answers {items: [Found]}.
Parameters
teamIdstring (uuid)pathRequiredqstringquerylimitinteger (int32)query
Responses
200OK
List a team's channels
/api/external/v1/teams/{teamId}/channelsThe team's channels in their order (every member is in every channel); archived=true the archived ones instead. Answers {items: [Channel]}. A channel: id, teamId, name, topic, posting (EVERYONE: every member who may comment posts; MANAGERS: an announcements channel), threadReplies (others reply in threads there), assistants (NONE, READ, POST, ANSWER: the most members' assistants may do there), position, createdBy, createdAt, updatedAt, lastMessageAt, archivedAt, unread (messages by others since you last read it), unreadMentions, pinned, mine (your own notifications, assistant, assistantEffective, assistantNote, mayPost, assistantMayPost, lastReadAt), mayPost, mayReply, manages.
Parameters
teamIdstring (uuid)pathRequiredarchivedbooleanquerytrue: the archived channels instead.
Responses
200OK
Start a channel
/api/external/v1/teams/{teamId}/channelsStarts a channel in the team (OWNER and ADMIN; else 403 ROLE_REQUIRED). Body: name (required, at most 40 characters, unique in the team without case), topic (at most 250), posting (EVERYONE, MANAGERS; default EVERYONE), threadReplies, assistants (NONE, READ, POST, ANSWER), position. A team has at most 20 live channels (409 CHANNEL_LIMIT); 409 NAME_TAKEN. Answers 201 with the channel.
Parameters
teamIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Get a channel
/api/external/v1/teams/{teamId}/channels/{channelId}A channel: id, teamId, name, topic, posting (EVERYONE: every member who may comment posts; MANAGERS: an announcements channel), threadReplies (others reply in threads there), assistants (NONE, READ, POST, ANSWER: the most members' assistants may do there), position, createdBy, createdAt, updatedAt, lastMessageAt, archivedAt, unread (messages by others since you last read it), unreadMentions, pinned, mine (your own notifications, assistant, assistantEffective, assistantNote, mayPost, assistantMayPost, lastReadAt), mayPost, mayReply, manages.
404 CHANNEL_NOT_FOUND, TEAM_NOT_FOUND.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredlangstringquery
Responses
200OK
Change a channel
/api/external/v1/teams/{teamId}/channels/{channelId}Changes a channel (OWNER and ADMIN); a key left out keeps its value. Keys as when starting one: name, topic (empty or null clears it), posting, threadReplies, assistants, position. Answers the channel.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Delete an archived channel
/api/external/v1/teams/{teamId}/channels/{channelId}Deletes the channel with all its messages, for good. Only the team's OWNER, and only an archived channel. Answers 204.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Responses
200OK
Archive or restore a channel
/api/external/v1/teams/{teamId}/channels/{channelId}/archive{"archived": true} (or no body) archives the channel (read only from then on); {"archived": false} restores it (its name must be free and the team have room: 409 NAME_TAKEN, CHANNEL_LIMIT). OWNER and ADMIN. Answers the channel.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Poll what changed in a channel
/api/external/v1/teams/{teamId}/channels/{channelId}/changesWhat changed since since (an ISO-8601 instant; the cursor of your last answer): new messages and ones edited, deleted, replied to, reacted to, pinned, or answered by an assistant, oldest change first - of the whole channel, or of one thread (thread: its root's id, the root included). Answers {channel, messages, cursor}; ask again with since=cursor.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredsincestringqueryISO-8601 instant: the cursor of the last answer.
threadstringqueryA thread's root message id: that thread's changes only.
Responses
200OK
Change your own settings in a channel
/api/external/v1/teams/{teamId}/channels/{channelId}/meYour own choices here; a key left out keeps it. notifications (ALL, MENTIONS, NONE), assistant (NONE, READ, POST, ANSWER: what your own assistant may do here - more than the channel allows is kept as your word for later), assistantNote (what it may tell the channel about you when it answers; empty clears it). Answers the channel.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
List a channel's members
/api/external/v1/teams/{teamId}/channels/{channelId}/membersThe team's members as this channel shows them, the owner first: {userId, name, photoUrl, role, agentName, assistant (what their assistant may do here in the end), mayPost, assistantMayPost, me}. Answers {items: [ChannelMember]}.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Responses
200OK
Decide who may post in a channel
/api/external/v1/teams/{teamId}/channels/{channelId}/members/{memberId}The managers' word on one member in this channel; a key left out keeps it: mayPost (may they post here), assistantMayPost (may their assistant). Never on the owner, nor on yourself; on an ADMIN only by the OWNER. Answers the member as the channel shows them.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredmemberIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Read a channel's messages
/api/external/v1/teams/{teamId}/channels/{channelId}/messagesA page of the channel's messages (thread roots, not replies), oldest first: the latest page, or with before (an ISO-8601 instant: the createdAt of the oldest message you hold) the page before it. limit 1-100 (default 50). Answers {channel, messages, hasOlder}. Reading never marks the channel read.
A message: id, channelId, parentId (a reply: its thread's root), author ({id, name, photoUrl}; null when the team's shared assistant wrote it: byTeamAssistant), agentKind (null: written by the author; FOR_PERSON or ANSWER: by their assistant), agentName, body, mentions, mentionsChannel, answersId, replies, lastReplyAt, repliers, reactions ({emoji, count, mine, names}), asks (the assistants it asked and where each is), pinnedAt, pinnedBy, createdAt, updatedAt, editedAt, deleted, mine, mayEdit, mayDelete, asksTeamAssistant, teamAssistantState, teamAssistantAnswerId.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredbeforestringqueryISO-8601 instant: the page before this time.
limitinteger (int32)query
Responses
200OK
Post in a channel
/api/external/v1/teams/{teamId}/channels/{channelId}/messagesPosts a message, or a reply in a thread (parentId), as yourself: the message's author is you and it is never marked as written by an assistant. Who may post is the channel's rule, your role and the managers' word (403 ROLE_REQUIRED otherwise, also in an archived channel or team).
Body: body (required, at most 4000 characters; @Name of a member mentions them, @channel / @everyone / @here tells everyone), parentId (reply in that message's thread), mentions (member ids to mention besides the names in the words, at most 50), askAgents (member ids whose own assistants it asks to answer in its thread, at most 20), askAllAgents (asks every other member's assistant that may answer here), mentionChannel (tells everyone), askTeamAssistant (asks the team's shared assistant, as @ its name does). Assistants answer only as their members and the channel allow, within their limits of the day; each answer counts on your own messages quota as in the app.
The people mentioned, everyone at @channel and those in the thread are told. Limits: 30 posts a minute in a team (429 RATE_LIMITED); 400 EMPTY_MESSAGE, TOO_LONG; 409 NOT_A_MEMBER (someone mentioned or asked who is not in the team). Answers 201 with the message.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Edit your message
/api/external/v1/teams/{teamId}/channels/{channelId}/messages/{messageId}Changes the words of one of your own messages: body (required). Only its author edits it (else 403 ROLE_REQUIRED). Answers the message.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredmessageIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Delete a message
/api/external/v1/teams/{teamId}/channels/{channelId}/messages/{messageId}Deletes a message: your own, or anyone's when you manage the team. It keeps its place without its words; its thread stays. Answers 204.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredmessageIdstring (uuid)pathRequired
Responses
200OK
Pin or unpin a message
/api/external/v1/teams/{teamId}/channels/{channelId}/messages/{messageId}/pinPins (pinned true or left out) or unpins (pinned false) a message: those who may post in the channel, managers always. At most 50 pins a channel (409 PIN_LIMIT). Answers the message.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredmessageIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
React to a message
/api/external/v1/teams/{teamId}/channels/{channelId}/messages/{messageId}/reactionsAdds your reaction (on true or left out) or takes it away (on false): emoji (required, at most 32 characters). A message has at most 20 different reactions (409 REACTION_LIMIT). Answers the message.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredmessageIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
Read a thread
/api/external/v1/teams/{teamId}/channels/{channelId}/messages/{messageId}/threadA message's thread (of a root, or of a reply's root): {channel, root, replies}, the replies oldest first (the latest 500).
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequiredmessageIdstring (uuid)pathRequired
Responses
200OK
List a channel's pinned messages
/api/external/v1/teams/{teamId}/channels/{channelId}/pinnedThe channel's pinned messages, the latest pinned first. Answers {items: [Message]}.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Responses
200OK
Mark a channel read
/api/external/v1/teams/{teamId}/channels/{channelId}/readYou read the channel up to upTo (an ISO-8601 instant; left out: now): its unread count and mentions drop accordingly, in the app too. Answers the channel.
Parameters
teamIdstring (uuid)pathRequiredchannelIdstring (uuid)pathRequired
Request body application/json
object
Responses
200OK
List every channel of your teams
/api/external/v1/teams/channelsEvery live channel of every live team you are in: the teams by name, each team's channels in their order, as GET /teams/{teamId}/channels shows them. Answers {items: [Channel]}.
Responses
200OK
List channels with something unread
/api/external/v1/teams/channels/unreadYour channels with something you have not read, across your live teams: {teamId, channelId, channelName, unread, mentions}. Answers {items: [Unread]}.
Responses
200OK