Ir al contenido

Enviar mensaje al agente

POST
/partner/tenants/{tenant_id}/chat
curl --request POST \
--url https://api.overtaker.online/api/v1/partner/tenants/example/chat \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "message": "example", "session_id": "example" }'

Para qué sirve. Envía un mensaje de prueba al agente de un cliente y recibe su respuesta, sin pasar por un canal real (WhatsApp/Instagram).

Cuándo usarlo. Como sandbox de QA: probar que el agente responde bien tras configurarlo, antes de entregárselo al cliente.

tenant_id
required
Tenant Id
string
Media type application/json
PartnerChatRequest
object
message
required
Message
string
session_id
required
Session Id
string
Example generated
{
"message": "example",
"session_id": "example"
}

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}