Direct Message Channels
Last updated
Last updated
© Copyright 2024 ALO.ai, Inc. • All Rights Reserved
Direct message channels are typically used for ad-hoc and private communication between two or more users.
Get information about all direct message channels.
GET
/direct_message_channels
The maximum number of channels that will be returned in a single request is 100. If there are more than 100 channels you can specify a page
parameter great than 1 to get more data. The response will contain information about how many pages of data are available.
A successful response will have an HTTP status of 200
The sample response below indicates that you have received the second page of results. There are 2 pages available. The current page contains 21 of the total 121 channels.
Create a new direct message channel.
POST
direct_message_channels
Direct Message Channels must contain at least 2 users
A successful channel creation response will have an HTTP status of 201
created
. The payload of the response is the same as you will see when requesting information about a specific channel.
If there was a problem creating the channel you will receive a response that contains status and message properties.
Get information about a specific direct message channel
GET
/direct_message_channels/{channel_id}
A successful channel creation response will have an HTTP status of 200
Update a specified direct message channel.
POST
/direct_message_channels/{channel_id}
See Create DM Channel Body Parameters.
A successful channel update response will have an HTTP status of 200
. The payload of the response is the same as you will see when requesting information about a specific channel.
Mark a specified direct message channel as deleted.
After you delete a channel it will not actually be removed from the platform. It will be flagged for deletion and will not appear in the ĀLO app.
DELETE
/direct_message_channels/{channel_id}
A successful channel soft delete will have an HTTP status of 200
. The body of the response will also contain information about the channel that was deleted.
Delete specified direct message channel.
After you hard delete a channel it WILL BE REMOVED from the platform. The channel and related information will not be recoverable.
DELETE
/direct_message_channels/{channel_id}/hard_delete
A successful channel hard delete will have an HTTP status of 200
. The body of the response will also contain information about the channel that was deleted.
Parameter
Default
Description
include_deleted
false
When true the response will include channels that have been marked for deletion.
include_users
false
When true the response will contain the list of users that are a members of each channel.
page
1
Specifies which page of results to return
per_page
100
Specifies maximum number of channels to return in a given request. The maximum you can specify is 100.
Property
Description
page
Current page number of data returned
per_page
Maximum number of channels returned per page
total_pages
Number of pages of data available
response_count
The number of direct message channels that were returned from the given request
total_count
Total number of direct message channels that are available
channels
Collection of direct message channels
Parameter
Required
Default
Description
name
Yes
Name of the channel you are creating. This name must be unique. If there is already a channel with the name provided you will get a response with a 422 status.
is_tts_enabled
No
true
Specifies whether or no Text-To-Speech audio is enabled for the channel.
is_video_transcript_enabled
No
true
Specifies whether or no transcripts will be generated for video sessions in the channel.
users
Yes
Array of user objects. Each user object must contain and id. Example: [{id:123456}, {id: 98765}]
Parameter
Description
channel_id
Id of the channel you are requesting information about
Property
Description
id
Unique channel identifier.
name
Name of the channel.
deleted
If true the channel has been marked for deletion.
is_tts_enabled
If true text to speech has been enabled for this channel.
is_video_transcript_enabled
If true transcription for video has been enabled for this channel.
users
Array of users that a member of the channel.
created_at
Date/time the channel was created.
updated_at
Date/time the channel was last updated.
Parameter
Description
channel_id
Id of the channel you are updating
Parameter
Description
channel_id
Id of the channel you are deleting
Parameter
Description
channel_id
Id of the channel you are deleting