Introducción
Endpoints de API
- Llamadas
- Mensajes
- Threads
- EndUsers
Webhooks
- Webhooks Overview
- Eventos de Webhook
Mensajes
Send Message
Sends Message to the Thread between a Chatbot and an EndUser, returns the Message created from the request, the Messages generated in response, and returns information about the Thread between the Chatbot and EndUser
POST
/
message
Copy
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>"
}'
Copy
{
"thread": {
"id": "<string>",
"chatbot": {
"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",
"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
Add api-key YOUR_API_SECRET_KEY
as the value of the Authorization
header.
Body
application/json
Response
200
application/json
Thread response
The response is of type object
.
Copy
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>"
}'
Copy
{
"thread": {
"id": "<string>",
"chatbot": {
"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",
"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
}
}
Asistente
Responses are generated using AI and may contain mistakes.