Chat Channels
The Chat Channel object
idstringoptionalPublic identifier of the chat channel.
created_bystringoptionalPublic user ID of the user that created the channel.
namestringoptionalChannel name.
titlestringoptionalDisplay title for the channel.
last_messageobjectoptionalMost recent chat message for the channel, when available.
unread_countintegeroptionalUnread message count for the current session user when session context is available.
slugstringoptionalURL-friendly channel slug.
feedarray of objectsoptionalMessages and feed entries returned for the channel.
participantsarray of objectsoptionalChat participants in the channel.
metaobjectoptionalArbitrary metadata stored with the channel.
updated_attimestampoptionalTime the channel was last updated.
created_attimestampoptionalTime the channel was created.
deleted_attimestampoptionalTime the channel was deleted, when soft deleted.
{
"id": "chat_channel_5VUl2v4",
"created_by": "user_8xP2L1d",
"name": "Dispatch updates",
"title": "Dispatch updates",
"last_message": null,
"slug": "dispatch-updates",
"feed": [],
"participants": [],
"meta": {},
"updated_at": "2026-05-07T09:30:00Z",
"created_at": "2026-05-07T09:30:00Z",
"deleted_at": null
}/v1/chat-channels/available-participantsList Available Participants
Lists users in the current organization that can be added to a chat channel. When a channel ID is provided, users already participating in that channel are excluded.
channelstringoptionalChannel value for this chat channels request.
/v1/chat-channels/available-participantscurl https://api.fleetbase.io/v1/chat-channels/available-participants?channel={{chat_channel_id}} \
-H "Authorization: Bearer flb_live_…"/v1/chat-channels/:id/send-messageSend Message
Sends a message to a chat channel as an existing chat participant. File IDs can be included to attach previously uploaded files to the message.
senderstringrequiredPublic ID of the chat participant sending the message.
contentstringoptionalMessage text to publish to the channel.
filesarray of stringsoptionalPublic IDs of uploaded files to attach to the message.
/v1/chat-channels/:id/send-messagecurl -X POST https://api.fleetbase.io/v1/chat-channels/:id/send-message \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"sender": "{{chat_participant_id}}",
"content": "Hello from Fleetbase API",
"files": []
}'/v1/chat-channels/delete-message/:chatMessageIdDelete Message
Deletes a chat message by ID. Use this when a previously sent message should be removed from the channel feed.
/v1/chat-channels/delete-message/:chatMessageIdcurl -X DELETE https://api.fleetbase.io/v1/chat-channels/delete-message/:chatMessageId \
-H "Authorization: Bearer flb_live_…"/v1/chat-channels/read-message/:chatMessageIdCreate Read Receipt
Marks a chat message as read for a participant. If a receipt already exists for the message and participant, Fleetbase returns the existing receipt.
participantstringrequiredPublic ID of the chat participant that read the message.
/v1/chat-channels/read-message/:chatMessageIdcurl -X POST https://api.fleetbase.io/v1/chat-channels/read-message/:chatMessageId \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"participant": "{{chat_participant_id}}"
}'/v1/chat-channelsCreate Chat Channel
Creates a chat channel for the current organization. Include participant user IDs to add those users to the channel immediately after it is created.
namestringrequiredName of the chat channel.
participantsarray of stringsoptionalPublic user IDs to add as participants after the channel is created.
/v1/chat-channelscurl -X POST https://api.fleetbase.io/v1/chat-channels \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"name": "Dispatch",
"participants": [
"{{user_id}}"
]
}'/v1/chat-channels/:idUpdate Chat Channel
Updates a chat channel's name. The response returns the updated chat channel resource.
namestringrequiredUpdated channel name.
/v1/chat-channels/:idcurl -X PUT https://api.fleetbase.io/v1/chat-channels/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"name": "Dispatch Updates"
}'/v1/chat-channelsQuery Chat Channels
Returns chat channels visible to the current organization. Use query parameters to filter, sort, and paginate the result set.
limitstringoptionalLimit value for this chat channels request.
offsetstringoptionalOffset value for this chat channels request.
sortstringoptionalSort value for this chat channels request.
/v1/chat-channelscurl https://api.fleetbase.io/v1/chat-channels?limit=25&offset=0&sort=created_at \
-H "Authorization: Bearer flb_live_…"/v1/chat-channels/:idRetrieve Chat Channel
Retrieves a chat channel by ID, including its participants, feed, and latest message metadata.
/v1/chat-channels/:idcurl https://api.fleetbase.io/v1/chat-channels/:id \
-H "Authorization: Bearer flb_live_…"/v1/chat-channels/:idDelete Chat Channel
Deletes a chat channel by ID. The response returns a deleted-resource envelope for the removed channel.
/v1/chat-channels/:idcurl -X DELETE https://api.fleetbase.io/v1/chat-channels/:id \
-H "Authorization: Bearer flb_live_…"/v1/chat-channels/:id/add-participantAdd Participant
Adds a user in the current organization to an existing chat channel. The response returns the created chat participant resource.
userstringrequiredPublic ID of the user to add to the chat channel.
/v1/chat-channels/:id/add-participantcurl -X POST https://api.fleetbase.io/v1/chat-channels/:id/add-participant \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"user": "{{user_id}}"
}'/v1/chat-channels/remove-participant/:participantIdRemove Participant
Removes a participant from a chat channel by participant ID. The channel remains active for the remaining participants.
/v1/chat-channels/remove-participant/:participantIdcurl -X DELETE https://api.fleetbase.io/v1/chat-channels/remove-participant/:participantId \
-H "Authorization: Bearer flb_live_…"