POST
/
message
curl --request POST \
  --url https://api.altur.io/api/v1.0/message \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chatbot_id": "<string>",
  "end_user_id": "<string>",
  "content": "<string>"
}'
{
  "thread": {
    "id": "<string>",
    "chatbot": {
      "id": "<string>",
      "name": "<string>"
    },
    "enduser": {
      "id": "<string>",
      "display_name": "<string>",
      "integration_type": "api",
      "info": "<string>"
    },
    "integration": {
      "id": "<string>",
      "type": "api"
    },
    "updated_at": "2023-11-07T05:31:56Z",
    "active": true,
    "blocked": true,
    "tags": [
      {
        "id": "<string>",
        "name": "<string>",
        "color": "blue"
      }
    ],
    "assigned_to": [
      {
        "id": "<string>",
        "email": "<string>",
        "first_name": "<string>",
        "last_name": "<string>"
      }
    ]
  },
  "messages": [
    {
      "thread_id": "<string>",
      "type": "text",
      "content": "<string>",
      "media": "<string>",
      "sent_by": "AI",
      "sent_by_user": "<string>",
      "sent_at": "2023-11-07T05:31:56Z",
      "read": true
    }
  ],
  "in_response_to": {
    "thread_id": "<string>",
    "type": "text",
    "content": "<string>",
    "media": "<string>",
    "sent_by": "AI",
    "sent_by_user": "<string>",
    "sent_at": "2023-11-07T05:31:56Z",
    "read": true
  }
}

Authorizations

Authorization
string
header
required

Add api-key YOUR_API_SECRET_KEY as the value of the Authorization header.

Body

application/json
chatbot_id
string

Unique identifier of the Chatbot recieving the Message

end_user_id
string

Unique identifier of the EndUser sending the Message

content
string

Text content of the Message

Response

200
application/json
Thread response
thread
object
messages
object[]

Array of Messages in response to prompted Message

in_response_to
object