Name
Get a message
The status of a message, by its `id`: at Hablame and, once it went out, towards the carrier.
HTTP method and path
/ api/ v6/ sms/ messages/ {id}https:
What happens when you run it
- Read only: it does not change your organization’s data.
- The call is not charged.
What it does
Returns a message record of your organization: its status, its parts, its cost and your clientRef, without the text. It works for what you sent through the API, through Cloud or over SMPP, and the id can be the one of any of its parts: the response brings the message’s one. A message from another organization answers 404, just like one that does not exist.
While it has not finished, the status is pending (queued: it belongs to a bulk send still being handed to output) or in_progress (routed or being transmitted). Once it finishes, status is the same finalStatus of the delivery block: delivered, delivered_to_carrier, failed (with cause), blocked (with cause, for example rne) or charged_not_sent. rejected is a rejection by Hablame and received, a message someone wrote to your code. completed and partially_sent are bulk send statuses (GET /), not per-message ones.
How it went outside: the `delivery` block
With the API v6, the message query (GET /) brings a delivery block inside data with the three outside steps: when Hablame accepted it, when the carrier accepted it and when it was delivered, plus how many parts the carrier accepted and delivered.
- It only comes once it has been decided how the message goes out or once it has a final status. If it does not come, the query only gives the status of the message at Hablame.
- A step that has not happened yet does not come: an invented time never arrives. Read them by name and do not reject the response because one is missing.
- If it cannot be read for a moment, the response arrives without
delivery. Query again later.
| Field | Type | What it is |
|---|---|---|
acceptedByHablameAt | string | When Hablame received the message, in Colombia time with milliseconds (RFC 3339). It always comes. |
acceptedByCarrierAt | string, optional | When the destination carrier accepted the first of its parts, in Colombia time. It does not come while the carrier has accepted none. |
deliveredAt | string, optional | When the carrier confirmed the delivery of the last of its delivered parts, in Colombia time. It can come in a failed message if some part did arrive: to know whether it arrived whole, check finalStatus. |
finalStatus | string, optional | How the message ended. It does not come while it has no final status. What each value means is in the table below. |
finalCause | string, optional | Why it ended that way, with the same values as cause in the sms. notification. A delivered message or one in quarantined does not bring it. |
parts | integer | How many parts the message travels in. It always comes. |
acceptedParts | integer | How many distinct parts the carrier accepted, from 0 to parts. It always comes. |
deliveredParts | integer, optional | How many distinct parts the carrier confirmed as delivered, from 0 to parts. It comes when the carrier closed the message with its delivery receipts. It does not come in a failure Hablame decides before sending it (for example carrier_part_limit or no_lookup) nor in quarantined. |
| Value | What it means |
|---|---|
delivered | The carrier confirmed that all of its parts reached the phone. It does not guarantee the person read it. |
failed | It did not arrive. finalCause says why. If the day closing left it that way, at 00:20 (Colombia time) on the fourth day after it was received, because it did not go out or the carrier did not accept it within those 3 days, it does not bring an sms. notification. |
blocked | Hablame did not send it because a sending rule stopped it. |
quarantined | The carrier rejected it with a reason Hablame is reviewing. It has not been delivered yet and it may change: query again later. |
delivered_to_carrier | The carrier received all of its parts, but did not confirm within the next 3 days that they reached the phone: it may have arrived, and there is no way to know. The day closing sets it, at 00:20 (Colombia time) on the fourth day after it was received, and it does not bring an sms. notification: query it. |
{
"delivery": {
"acceptedByHablameAt": "2026-11-04T10:00:00.000-05:00",
"acceptedByCarrierAt": "2026-11-04T10:00:01.250-05:00",
"deliveredAt": "2026-11-04T10:00:07.900-05:00",
"finalStatus": "delivered",
"parts": 1,
"acceptedParts": 1,
"deliveredParts": 1
}
}{
"delivery": {
"acceptedByHablameAt": "2026-11-04T10:05:00.000-05:00",
"acceptedByCarrierAt": "2026-11-04T10:05:01.040-05:00",
"deliveredAt": "2026-11-04T10:05:06.310-05:00",
"finalStatus": "failed",
"finalCause": "carrier_undeliv",
"parts": 3,
"acceptedParts": 3,
"deliveredParts": 2
}
}{
"delivery": {
"acceptedByHablameAt": "2026-11-04T10:10:00.000-05:00",
"finalStatus": "failed",
"finalCause": "carrier_part_limit",
"parts": 7,
"acceptedParts": 0
}
}Availability and prerequisites
- Published and available in the production API v6.
- Every path starts at
https:./ / developers. hablame. co - You need a Hablame API key to call it.
Authentication and permissions
- Send your API key in the
Authorizationheader with the Bearer scheme.
Who can call it: An API key with the sms service enabled.
Limits and operational notes
Usage limit: 50 requests per second.
- The message query, the message list and the message timeline share this quota: 50 requests per second among the three.
Path parameters
| Name | Type | Description and rules |
|---|---|---|
idRequired | string | The Example: |
Query parameters
This endpoint has no query parameters.
HTTP headers
| Name | Type | Description and rules |
|---|---|---|
AuthorizationRequired | string | Your API key with the Bearer scheme. Example: |
Request body
This endpoint takes no request body.
Successful responses
200
The message.
{
"success": true,
"data": {
"id": "0192f0c4-7a1b-7c3d-8e9f-001122334455",
"status": "delivered",
"traffic": "priority",
"clientRef": "login-2026-000123",
"to": "573001234567",
"segments": 1,
"encoding": "GSM-7",
"cost": { "amountMicro": 30000000, "currency": "COP" },
"receivedAt": "2026-11-04T10:00:00.000-05:00",
"statusCode": 20,
"statusText": "Entregado al teléfono",
"certified": true,
"receivedParts": [
{ "id": "0192f0c4-7a1b-7c3d-8e9f-001122334455", "receivedAt": "2026-11-04T10:00:00.000-05:00" }
],
"carrierParts": [
{
"part": 1,
"statusCode": 20,
"statusText": "Entregado al teléfono",
"carrierMessageId": "4711",
"acceptedAt": "2026-11-04T10:00:01.250-05:00",
"dlrStatus": "DELIVRD",
"dlrAt": "2026-11-04T10:00:07.900-05:00"
}
],
"delivery": {
"acceptedByHablameAt": "2026-11-04T10:00:00.000-05:00",
"acceptedByCarrierAt": "2026-11-04T10:00:01.250-05:00",
"deliveredAt": "2026-11-04T10:00:07.900-05:00",
"finalStatus": "delivered",
"parts": 1,
"acceptedParts": 1,
"deliveredParts": 1
}
},
"meta": {
"requestId": "5d0f3a9c7b2e41a8",
"clientIp": "203.0.113.10",
"timestamp": "2026-10-26T10:30:00-05:00",
"responseTimeMs": 8.2
}
}The example values are illustrative.
Response fields
| Name | Type | Description and rules |
|---|---|---|
successAlways present | boolean | |
dataAlways present | object | A message of your organization: its status at Hablame and, if it already went out to the carrier, the |
data.Always present | string | Message identifier, even if you searched with the one of another of its parts. Example: |
data.Always present | string | The message status. While it has not finished: Allowed values: |
data. | string | Why a |
data. | string | What kind of send it is. Allowed values: |
data. | string | The bulk send it belongs to, if any. |
data. | integer | Its position in the bulk send |
data. | string | Your reference, if you sent it. |
data.Always present | string | The destination. Example: |
data.Always present | integer | The parts it goes out in. |
data.Always present | string |
|
data. | object | What was charged, only if it was charged. |
data.Always present | integer | Amount in micros. Example: |
data.Always present | string | ISO 4217 currency code. Example: |
data.Always present | string | When Hablame received it, in Colombia time and with milliseconds. Format: |
data. | boolean |
|
data. | integer | The message status in its record, a code that never changes: Allowed values: |
data. | string | The status in words, in the language of your Example: |
data. | string | Why it ended in that status, in English: for example |
data. | boolean |
Example: |
data. | boolean |
Example: |
data. | boolean |
Example: |
data. | boolean |
|
data. | array<object> | What Hablame received from you: each piece with its identifier and time. Over SMPP, one per |
data.Always present | string | The identifier you received for that piece. |
data.Always present | string | When Hablame received it, in Colombia time. Format: |
data. | array<object> | Each part sent to the carrier, with its own status. Only in the query by |
data.Always present | integer | The part, from 1. |
data.Always present | integer | That part’s status, with the Allowed values: |
data. | string | That status in words, like |
data. | string | Why, like |
data. | string | The identifier the carrier gave it when accepting it. |
data. | string | The same, in hexadecimal, when it is not readable text. One or the other comes. |
data. | string | When the carrier accepted it. Accepting it is not delivering it. Format: |
data. | string | The carrier receipt that decided the part ( |
data. | string | When that receipt arrived. Format: |
data. | string | The time the carrier reported inside that receipt: the delivery to the phone if it is Format: |
data. | object | The three outside steps (accepted by Hablame, accepted by the carrier, delivered) and the final status. It only comes once it has been decided how it goes out or once it has a final status; a step that has not happened yet does not come. |
data.Always present | string | When Hablame received the message, in Colombia time with milliseconds (RFC 3339). It always comes. Format: |
data. | string | When the destination carrier accepted the first of its parts, in Colombia time. It does not come while the carrier has accepted none. Format: |
data. | string | When the carrier confirmed the delivery of the last of its delivered parts, in Colombia time. It can come in a Format: |
data. | string | How the message ended. It does not come while it has no final status. What each value means is in the table below. Allowed values: |
data. | string | Why it ended that way, with the same values as Example: |
data.Always present | integer | How many parts the message travels in. It always comes. Example: |
data.Always present | integer | How many distinct parts the carrier accepted, from 0 to Example: |
data. | integer | How many distinct parts the carrier confirmed as delivered, from 0 to Example: |
metaAlways present | object | Response metadata. |
meta.Always present | string | Unique request identifier (16 hexadecimal characters). It matches the Example: |
meta.Always present | string | IP the API saw your request come from. Useful if your API key only accepts certain networks. Example: |
meta.Always present | string | Date and time the response was built (ISO 8601 with offset). Format: |
meta.Always present | number | Time (ms) the server took to process the request. Example: |
202
That id does not show up yet, but it is newer than completeThrough: the message may still be being recorded. Do not send it again: query again after Retry-After seconds.
{
"success": true,
"data": {
"id": "0192f0c4-7a1b-7c3d-8e9f-001122334455",
"status": "in_progress",
"completeThrough": "2026-11-04T09:59:58.500-05:00",
"ingestLagSeconds": 4
},
"meta": {
"requestId": "5d0f3a9c7b2e41a8",
"clientIp": "203.0.113.10",
"timestamp": "2026-10-26T10:30:00-05:00",
"responseTimeMs": 8.2
}
}The example values are illustrative.
Response fields
| Name | Type | Description and rules |
|---|---|---|
successAlways present | boolean | |
dataAlways present | object | A message that does not show up in the query yet but is newer than |
data.Always present | string | The Example: |
data.Always present | string | Always Fixed value: |
data.Always present | string | Up to when the data is complete (in Colombia time): every message you sent one by one before this time is already in the query. What came after may still be missing. It does not cover the messages of a bulk send while it is being split among its destinations (its progress is in Format: |
data.Always present | integer | How many seconds there are from Example: |
metaAlways present | object | Response metadata. |
meta.Always present | string | Unique request identifier (16 hexadecimal characters). It matches the Example: |
meta.Always present | string | IP the API saw your request come from. Useful if your API key only accepts certain networks. Example: |
meta.Always present | string | Date and time the response was built (ISO 8601 with offset). Format: |
meta.Always present | number | Time (ms) the server took to process the request. Example: |
Error codes
Every error response has the same shape: success set to false and an error object whose code says what happened. They are grouped here by kind, with the codes this endpoint can return.
Shape of an error response
| Name | Type | Description and rules |
|---|---|---|
successAlways present | boolean | Fixed value: |
metaAlways present | object | Response metadata. |
meta.Always present | string | Unique request identifier (16 hexadecimal characters). It matches the Example: |
meta.Always present | string | IP the API saw your request come from. Useful if your API key only accepts certain networks. Example: |
meta.Always present | string | Date and time the response was built (ISO 8601 with offset). Format: |
meta.Always present | number | Time (ms) the server took to process the request. Example: |
errorAlways present | object | |
error.Always present | string | Stable UPPER_SNAKE_CASE identifier. Clients branch on this value. Example: |
error. | integer | Legacy v5 numeric code, only when a bridge exists. Omitted for codes born in v6. Example: |
error.Always present | string | URL to the error documentation. Format: |
error.Always present | string | Human readable text, in English. It is for the developer log, not the end user: do not parse it. |
error.Always present | array<object> | Structured context (validation issues, affected resource). Empty array when there is no extra context. |
Validation
This endpoint does not declare responses of this kind.
Authentication
- 401Invalid or missing credentials.
No Bearer token was sent, and every call requires one.
Message the API returns: Authentication is required. Send your API key as `Authorization: Bearer <token>`.
The API key is not recognized: wrong format, revoked or expired.
Message the API returns: The provided API key is invalid or has expired. Please verify the value sent in the `Authorization: Bearer` header.
Permissions
- 403The API key does not have the SMS service (
sms), the key cannot be used from the request network, the organization is not active (ACCOUNT_NOT_ACTIVE: closed or blocked) or the querying account could not be identified (SMS_ACCOUNT_NOT_IDENTIFIED). A suspended organization, or one with SMS turned off, can query: it does not get this403.
The key is not allowed to use the service behind this endpoint.
Message the API returns: This API key is not authorized to use the requested service.
The key only works from certain networks and your IP is not one of them.
Message the API returns: This API key cannot be used from this IP address. The address we saw is in `meta.clientIp`: call from one of the networks allowed for the key, or use a key that allows this one.
Your organization is suspended or closed.
Message the API returns: The organization associated with this API key is not active. Please contact support.
The send’s account could not be identified.
Usage limits
- 429Request limit exceeded.
You exceeded your organization quota for this endpoint.
Message the API returns: You have exceeded the allowed request rate for this endpoint. Please wait before retrying.
Resource not found
- 404There is no message of your organization with that
idyet. It is final only if a recent query answer (the message list, or the202of this sameid) broughtcompleteThroughand you sent the message before that time. IfcompleteThroughdid not come, or the message is from after it, wait a few seconds and query again: a just-accepted one may not show up yet. Do not send it again. - 410The message is from a day older than your message history (
SMS_OUTSIDE_HISTORY_WINDOW, with the oldest day you can query indetails[0].), or its day already moved to the archive and could not be read here (oldestDay SMS_MESSAGE_ARCHIVED; anyidof that day gets the same).
There is no message with that
id(yet).What you asked for is older than your message history.
The message is from an archived day that could not be read here.
Internal errors and availability
- 503It could not be queried right now (
SERVICE_UNAVAILABLE). Nothing changed in your sends: retry the same query afterRetry-After.
Generic 503: a service we depend on is not responding.
Other responses
This endpoint does not declare responses of this kind.
Special considerations
A just-accepted message may take a few seconds to appear
The message record is written a few seconds after the send’s 202. If you query it before that, the answer is 202 with status:, completeThrough (up to when the data is complete) and Retry-After: do not send it again, query again after those seconds. 404 SMS_MESSAGE_NOT_FOUND is final only if a recent query answer brought completeThrough and you sent the message before that time: by then, if it existed and were yours, it would already be there. Without completeThrough (it cannot be known yet), a 404 right after the send does not mean it was not sent: wait and query again, just like with a 503. completeThrough does not cover either a part of a long SMPP message whose other parts have not arrived yet, the messages of a bulk send while it is being split, nor what Hablame reviews by hand.
Your message history
You query free of charge the messages from the last 3 months, date to date (89 to 92 days depending on the month); if your organization extended its message history in Hablame Storage, all the ones in that history. A history change applies at once. Anything from an earlier day answers 410 SMS_OUTSIDE_HISTORY_WINDOW, with the oldest day you can query in details[0].: it does not mean the message does not exist. The messages of a day that already moved to the archive, inside your history, come with archived:; if they cannot be read at that moment, the query by id answers 410 SMS_MESSAGE_ARCHIVED.
It also answers with the organization suspended
If your organization is suspended, or has SMS turned off, queries keep working with your key: you can see your messages, your bulk sends and what people wrote to you. What you cannot do is send: the three sends answer 403 (ACCOUNT_NOT_ACTIVE with the organization suspended, AUTH_SERVICE_NOT_ALLOWED with SMS turned off).