curl --request POST \
--url https://api.altur.io/api/v1.0/message \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"end_user_id": "<string>",
"content": "<string>"
}
'{
"thread": {
"id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"end_user": {
"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",
"sent_by": "AI",
"sent_at": "2023-11-07T05:31:56Z",
"content": "<string>",
"media": "<string>",
"sent_by_user": "<string>",
"read": true
}
],
"in_response_to": {
"thread_id": "<string>",
"type": "text",
"sent_by": "AI",
"sent_at": "2023-11-07T05:31:56Z",
"content": "<string>",
"media": "<string>",
"sent_by_user": "<string>",
"read": true
}
}Sends Message to the Thread between a Agent and an EndUser, returns the Message created from the request, the Messages generated in response, and returns information about the Thread between the Agent and EndUser
curl --request POST \
--url https://api.altur.io/api/v1.0/message \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"end_user_id": "<string>",
"content": "<string>"
}
'{
"thread": {
"id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"end_user": {
"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",
"sent_by": "AI",
"sent_at": "2023-11-07T05:31:56Z",
"content": "<string>",
"media": "<string>",
"sent_by_user": "<string>",
"read": true
}
],
"in_response_to": {
"thread_id": "<string>",
"type": "text",
"sent_by": "AI",
"sent_at": "2023-11-07T05:31:56Z",
"content": "<string>",
"media": "<string>",
"sent_by_user": "<string>",
"read": true
}
}Add api-key YOUR_API_SECRET_KEY as the value of the Authorization header.
Thread response
Mostrar atributos secundarios
Unique identifier for the Thread
Mostrar atributos secundarios
Unique identifier for the EndUser
EndUser's display name
Enum representing the Integration's channel
api, whatsapp EndUser's information valuable for interactions with Agents or human agents
Last time the Thread was updated
Boolean describing if automatic responses by the Agent are active on this Thread
Boolean describing if Thread is blocked
Tags assigned to Thread
Array of Messages in response to prompted Message
Mostrar atributos secundarios
Unique identifier of the Thread the Message belongs to
Message type enum
text, image, audio, video, button, template, document Author of this message
AI, EU, SYS Datetime from when the Message was sent
Message's text content
Message's media content, if any (usually in form of URL)
Altur user id (if Message was sent manually by an in-app user)
Boolean describing if the Message is considered as read
Mostrar atributos secundarios
Unique identifier of the Thread the Message belongs to
Message type enum
text, image, audio, video, button, template, document Author of this message
AI, EU, SYS Datetime from when the Message was sent
Message's text content
Message's media content, if any (usually in form of URL)
Altur user id (if Message was sent manually by an in-app user)
Boolean describing if the Message is considered as read