ASI/channels/:channel_id/@messages
GET ^top
List channel's messages. By default the messages are ordered descending by 'updated_at'.
Parameters
- sort_order
Changes the sort order of messages. Allowed values are 'ascending' and 'descending'.
- page
Pagination page.
- exclude_replies
Exclude messages which are a replies to other messages. Defaults to false.
- per_page
Pagination per page.
- search
Search parameter to search from channel's messages.
Returns
- 200 - Returns messages in json's entry -field.
- 403 - User has no access to channel.
- 404 - Channel not found.
POST ^top
Creates a new message.
Parameters
- message
- content_type
Message's attachment's content type.
- body
Message content. Text only.
- title
Message title
- attachment
Attachment. Currently only urls are advised to be used. In any case the handling of the attachment-field's content is left for the client.
- reference_to
Message id that this message is a reply to.
Returns
- 200 - Returns messages in json's entry -field.
- 403 - User has no access to channel.
- 404 - Channel not found.