- Returning.AI
- Auth
- Server
- Role
- Channel
- Badge
- Integration
- users
- Messages
- Channels
Send Message
POST
https://sgtr-integration.returning.ai/apis/v1/messages/send
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Authorization
string
optional
Body Params application/json
channelId
string
required
message
string
required
sender
string
required
forumTopicId
string
optional
Example
{
"channelId": "<channel-id-from-get-channel-list>",
"message": "<message-you-want-to-send>",
"sender": "<username-or-email-of-user>"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sgtr-integration.returning.ai/apis/v1/messages/send' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"channelId": "<channel-id-from-get-channel-list>",
"message": "<message-you-want-to-send>",
"sender": "<username-or-email-of-user>"
}'
Responses
🟢200Success
application/json
Body
status
string
required
message
string
required
Example
{
"status": "success",
"message": "Message send successfully"
}