Skip to content

Chat channels

Public and private channels of the internal chat. Direct messages and groups are not exposed. No webhooks: private channels do not leave the company. Messages are sent with the post action.

Module: Chat (chat).

  • GET /api/v1/chat_channels - List with filters, sorting and pagination (scope chat:read)
  • GET /api/v1/chat_channels/{id} - A record by id (scope chat:read)
  • POST /api/v1/chat_channels - Create a record (scope chat:write)
  • PATCH /api/v1/chat_channels/{id} - Modify the submitted fields (scope chat:write)
  • POST /api/v1/chat_channels/{id}/post - Sends a system message to the channel (it appears without an author, like the app’s automatic messages). Plain text; line breaks become paragraphs. You cannot write to an archived channel. (scope chat:write)
  • POST /api/v1/chat_channels/{id}/archive - Archives the channel: it can be read, but receives no more messages and the AI assistant stops on it. (scope chat:write)
  • POST /api/v1/chat_channels/{id}/unarchive - Reopens an archived channel. (scope chat:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • kind (string; write)
  • name (string; write, required)
  • topic (string; write)
  • dm_key (string; read)
  • entity_type (string; read)
  • entity_id (string, uuid; read)
  • ai_enabled (boolean; write)
  • ai_scanned_seq (integer; read)
  • last_seq (integer; read)
  • last_message_at (string, date-time; read)
  • created_by (string; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • archived_at (string, date-time; read)
  • member_ids (array; write)
  • archived (boolean; write)