v1
Messages

Send text

POST/api/v1/messages/text

Sends a text message from one of the company's numbers to a WhatsApp number.

The response arrives as soon as the message enters the send queue, with status set to Pending. What happens next (sent, delivered, read or refused) arrives through webhooks. Outside WhatsApp's 24-hour window only templates are delivered.

The API key needs the scopeSend messagesmessages.send

Request body

FieldDescription
wabaPhoneNumberIdrequiredstringThe company number that sends: its id in Guria or Meta's phone_number_id.
jidrequiredstringThe recipient: a WhatsApp number with country and area code, digits only.
correlationIdstringAn identifier of yours for this send, returned with the message. With it the send counts as automated; without it, as sent by an agent, and the conversation's AI agent is paused.
replyToMessageIdstringId of the message this one replies to, so it goes out as a quoted reply.
textrequiredstringThe message text.

Responses

200The message accepted for sending.
application/json
{
  "id": "9e4b7c2a-6d1f-4a3e-8b5c-0f7d2a9e6c41",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "conversationId": "3c8e1a5d-7b2f-4d6a-9e0c-5a1f8b3d7e29",
  "phoneNumberId": "5f0c2a1e-7d4b-4c8a-9e21-3b6d8f0a4c57",
  "contactId": "af147888-ebb0-4ec9-92e5-da66cd561461",
  "wabaMessageId": null,
  "provider": "MetaWaba",
  "direction": "Outbound",
  "type": "Text",
  "status": "Pending",
  "mediaUrl": null,
  "text": "Oi, Fulano! Seu pedido saiu para entrega e chega hoje até as 18h.",
  "caption": null,
  "fileName": null,
  "replyToWabaMessageId": null,
  "correlationId": "pedido-48213",
  "createdAt": "2026-11-25T17:40:03.511902Z",
  "sentAt": null,
  "deliveredAt": null,
  "readAt": null,
  "errorCode": null,
  "errorMessage": null
}
400Invalid request: a body that is not JSON, a missing required field or a value in the wrong format.
application/json
{
  "error": "validation_failed",
  "message": "O campo name é obrigatório."
}
401Missing or invalid credentials. The response is the same for a key that does not exist and for a wrong secret; without the X-API-KEY header, it comes with no body.
application/json
{
  "error": "unauthorized",
  "message": "Credenciais de API inválidas."
}
403The key authenticated, but it lacks the scope the route requires, or the plan does not include the feature.
application/json
{
  "error": "forbidden",
  "message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}
409The current state of the record or of the channel prevents the operation. The error field carries the exact reason.
application/json
{
  "error": "conflict",
  "message": "A operação entra em conflito com o estado atual do registro."
}
429The requests-per-minute limit was reached. Wait for the time given in the Retry-After header.
application/json
{
  "error": "too_many_requests",
  "message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}
curl -X POST "https://api.guria.io/api/v1/messages/text" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "wabaPhoneNumberId": "5f0c2a1e-7d4b-4c8a-9e21-3b6d8f0a4c57",
    "jid": "5511988887777",
    "correlationId": "pedido-48213",
    "text": "Oi, Fulano! Seu pedido saiu para entrega e chega hoje até as 18h."
  }'
Response · 200
{
  "id": "9e4b7c2a-6d1f-4a3e-8b5c-0f7d2a9e6c41",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "conversationId": "3c8e1a5d-7b2f-4d6a-9e0c-5a1f8b3d7e29",
  "phoneNumberId": "5f0c2a1e-7d4b-4c8a-9e21-3b6d8f0a4c57",
  "contactId": "af147888-ebb0-4ec9-92e5-da66cd561461",
  "wabaMessageId": null,
  "provider": "MetaWaba",
  "direction": "Outbound",
  "type": "Text",
  "status": "Pending",
  "mediaUrl": null,
  "text": "Oi, Fulano! Seu pedido saiu para entrega e chega hoje até as 18h.",
  "caption": null,
  "fileName": null,
  "replyToWabaMessageId": null,
  "correlationId": "pedido-48213",
  "createdAt": "2026-11-25T17:40:03.511902Z",
  "sentAt": null,
  "deliveredAt": null,
  "readAt": null,
  "errorCode": null,
  "errorMessage": null
}