Introducción
Endpoints de API
- Llamadas
- Mensajes
- Threads
- EndUsers
Webhooks
- Webhooks Overview
- Eventos de Webhook
Llamadas
Start Call
Starts a Call
POST
/
call
Copy
curl --request POST \
--url https://api.altur.io/api/v1.0/call \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "<string>",
"phone_number_to": "<string>",
"end_user_display_name": "<string>",
"end_user_context": "<string>",
"initial_message": "<string>"
}'
Copy
{
"id": "<string>",
"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>"
}
]
},
"type": "inbound",
"status": "created",
"answered_by": "human",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration": 123,
"billable_duration": 123
}
Authorizations
Add api-key YOUR_API_SECRET_KEY
as the value of the Authorization
header.
Body
application/json
Response
200
application/json
Call response
The response is of type object
.
Copy
curl --request POST \
--url https://api.altur.io/api/v1.0/call \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "<string>",
"phone_number_to": "<string>",
"end_user_display_name": "<string>",
"end_user_context": "<string>",
"initial_message": "<string>"
}'
Copy
{
"id": "<string>",
"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>"
}
]
},
"type": "inbound",
"status": "created",
"answered_by": "human",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration": 123,
"billable_duration": 123
}
Asistente
Responses are generated using AI and may contain mistakes.