Overview

The Chat API enables you to send messages programmatically to team chats, channels, and private conversations. Integrate with your systems to automate notifications, alerts, and communications.

Key Concepts

Conversations

Conversations are chat threads in Connecteam. There are two types:

TypeDescription
teamTeam chat with multiple members
channelBroadcast channel for announcements

Custom Publishers

Custom publishers are bot-like senders that can post messages via the API. They appear as the message author instead of a user.

📝

Setting Up Custom Publishers

Custom publishers must be configured in the Connecteam UI:

  1. Go to SettingsFeed settings
  2. Create a new custom publisher
  3. Note the publisher ID to use as senderId in API calls

Private vs Non-Private Conversations

  • Non-private: Team chats and channels - can be listed via GET endpoint
  • Private: Direct messages between users - not listed, but you can send to them

Available Endpoints

MethodEndpointDescription
GET/chat/v1/conversationsGet team chats and channels
POST/chat/v1/conversations/{conversationId}/messageSend message to conversation
POST/chat/v1/conversations/privateMessage/{userId}Send private message to user

Constraints

ConstraintValue
Max message length1000 characters
Max conversations per page100
Attachment typesimage, file
Multiple non-image attachmentsNot allowed

Authentication

All endpoints require authentication via API key or OAuth 2.0.

Required Scopes

ScopeOperations
chat.readGET conversations
chat.writePOST messages

Attachments

To send attachments with messages:

  1. Upload the file using the Attachments API with featureType: chat
  2. Get the fileId from the upload response
  3. Include the attachment in your message request
⚠️

Attachment Rules

  • Multiple image attachments are allowed
  • Only one non-image file attachment is allowed per message
  • Files must be uploaded via Attachments API first

Guide Pages

PageDescription
ConversationsList and send messages to team chats and channels
Private MessagesSend direct messages to users
Custom PublishersConfigure bot senders for API messages

API Reference