POST
/
v2
/
create-message
Create Message
curl --request POST \
  --url https://api.assistable.ai/v2/create-message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "location_id": "<string>",
  "content": "<string>",
  "ai": true,
  "role": "user",
  "conversation_id": "<string>",
  "message_id": "<string>",
  "channel": "<string>"
}'
{
  "status": 123,
  "data": {
    "status": "<string>",
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
location_id
string
required

Location ID

content
string
required

Message content

ai
boolean
required

Whether the message is from AI

role
enum<string>
required

Role of the message sender

Available options:
user,
assistant
conversation_id
string
required

ID of the conversation

message_id
string
required

ID of the message

channel
string
required

Communication channel

Response

201 - application/json

Message created successfully

status
integer
data
object