Skip to main content
GET
/
v1
/
messages
/
{messageId}
Get Message
curl --request GET \
  --url https://api.zavu.dev/v1/messages/{messageId} \
  --header 'Authorization: Bearer <token>'
{
  "message": {
    "id": "msg_abc123xyz",
    "to": "+56912345678",
    "channel": "sms",
    "status": "delivered",
    "text": "Your verification code is 123456",
    "metadata": {
      "userId": "user_123"
    },
    "providerMessageId": "SM1234567890abcdef",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-01-15T10:30:05.000Z"
  }
}
Retrieve the details and current status of a specific message.

Path Parameters

messageId
string
required
The unique message identifier (e.g., msg_abc123)

Response

message
object
{
  "message": {
    "id": "msg_abc123xyz",
    "to": "+56912345678",
    "channel": "sms",
    "status": "delivered",
    "text": "Your verification code is 123456",
    "metadata": {
      "userId": "user_123"
    },
    "providerMessageId": "SM1234567890abcdef",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-01-15T10:30:05.000Z"
  }
}

Example

curl https://api.zavu.dev/v1/messages/msg_abc123xyz \
  -H "Authorization: Bearer zv_live_xxx"

Message Statuses

StatusDescription
queuedMessage received and queued for delivery
sendingMessage is being sent to the provider
deliveredMessage successfully delivered
failedMessage delivery failed
Set up webhooks to receive real-time status updates instead of polling this endpoint.