ChatMessages

Create Message

POST
Create a new message

Headers

x-revert-api-tokenstringRequired
Your official API key for accessing revert apis.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.
x-api-versionstringOptional
Optional Revert API version you're using. If missing we default to the latest version of the API.

Request

This endpoint expects an object.
channelId
stringRequired
Id of channel to which message was sent
text
stringRequired
Message sent by user

Response

This endpoint returns an object
status
enum
Allowed values: okerror
result
object
POST
1curl -X POST https://api.revert.dev/chat/message \
2 -H "x-revert-api-token: string" \
3 -H "x-revert-t-id: string" \
4 -H "x-api-version: string" \
5 -H "Content-Type: application/json" \
6 -d '{
7 "channelId": "string",
8 "text": "string"
9}'
200Successful
1{
2 "status": "ok",
3 "result": {
4 "text": "string",
5 "channelId": "string"
6 }
7}