Skip to content

Endpoints

Endpoints

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

GET/api/v6/sms/messages/{id}

https://developers.hablame.co/api/v6/sms/messages/{id}

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 /api/v6/sms/bulk/{batchId}), not per-message ones.

How it went outside: the `delivery` block

With the API v6, the message query (GET /api/v6/sms/messages/{id}) 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.
{
  "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
  }
}

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.

Create your API key

Authentication and permissions

  • Send your API key in the Authorization header 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

NameTypeDescription and rules
idRequiredstring

The id returned by the send, or the one of any of the message’s parts.

Example:0192f0c4-7a1b-7c3d-8e9f-001122334455

Query parameters

This endpoint has no query parameters.

HTTP headers

NameTypeDescription and rules
AuthorizationRequiredstring

Your API key with the Bearer scheme.

Example:Bearer hk_TU_API_KEY

Request body

This endpoint takes no request body.

Successful responses

200

The message.

Response example
{
  "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

NameTypeDescription and rules
successAlways presentboolean

dataAlways presentobject

A message of your organization: its status at Hablame and, if it already went out to the carrier, the delivery block. It never brings the text.

data.idAlways presentstring

Message identifier, even if you searched with the one of another of its parts.

Example:0192f0c4-7a1b-7c3d-8e9f-001122334455

data.statusAlways presentstring

The message status. While it has not finished: pending (queued: it belongs to a bulk send still being handed to output) or in_progress (routed or being transmitted). Once it finished, the same value as finalStatus: delivered (the carrier confirmed it arrived), delivered_to_carrier (the carrier received all of its parts and did not confirm within the next 3 days that they reached the phone), failed (it did not arrive or did not go out; cause says why), blocked (a sending rule stopped it) or charged_not_sent (a confirmation that was charged and did not go out from your account). rejected: Hablame rejected it. received: it is a message someone wrote to you (only in the query by id).

Allowed values:pending in_progress delivered delivered_to_carrier failed blocked rejected charged_not_sent received

data.causestring

Why a failed, blocked or rejected message ended that way (for example no_tariff, undeliverable or rne). With delivered_to_carrier it is no_dlr: the carrier did not confirm within the 3 days that it reached the phone.

data.trafficstring

What kind of send it is.

Allowed values:priority marketing bulk smpp mo

data.batchIdstring

The bulk send it belongs to, if any.

data.indexinteger

Its position in the bulk send recipients (from 0).

data.clientRefstring

Your reference, if you sent it.

data.toAlways presentstring

The destination.

Example:573001234567

data.segmentsAlways presentinteger

The parts it goes out in.

data.encodingAlways presentstring

GSM-7 or UCS-2 in what you sent through the API; a message that came in over SMPP can also bring ascii, latin1, binary or other.

data.costobject

What was charged, only if it was charged.

data.cost.amountMicroAlways presentinteger

Amount in micros.

Example:30000000

data.cost.currencyAlways presentstring

ISO 4217 currency code.

Example:COP

data.receivedAtAlways presentstring

When Hablame received it, in Colombia time and with milliseconds.

Format:date-time

data.archivedboolean

true if it belongs to a day that already moved to the archive and is inside your message history. It does not come in the others.

data.statusCodeinteger

The message status in its record, a code that never changes: 10 in progress (it can still change, up to 3 days), 20 delivered to the handset (the carrier confirmed delivery of every part: the only certified one), 21 delivered to the carrier with no handset confirmation, 30 not delivered to the handset, 40 rejected by the carrier and 50 not sent (it did not leave Hablame; statusCause says why). If the parts ended differently, it is the worst one. It does not come in a message someone wrote to you.

Allowed values:10 20 21 30 40 50Example:20

data.statusTextstring

The status in words, in the language of your Accept-Language header (en in English; any other, in Spanish). Hablame writes it and it may change: for your code use statusCode.

Example:Entregado al teléfono

data.statusCausestring

Why it ended in that status, in English: for example rne, opt_out, no_tariff, security, carrier_rejected_0x0000000b, carrier_undeliverable or no_dlr. It does not come in 10 or 20.

data.certifiedboolean

true if the message was certified: the carrier confirmed delivery of all its parts within 3 days. Only with statusCode 20; it does not come in the others. A 20 recorded before this field existed does not come certified: the receipt of each part is not on record for those messages.

Example:true

data.certifiedRequestedboolean

true if you sent it with certified: its delivery certificate PDF can be downloaded in Cloud as soon as the carrier confirms delivery of all its parts; if it does not, once tracking of the message ends, on the fourth day. certificateAvailable says when it is ready. It only comes in the lookup by id, not in the list. It does not come if you did not ask for it. It is not certified, which says whether the carrier confirmed the delivery.

Example:true

data.certificateAvailableboolean

true once its delivery certificate PDF can be downloaded in Cloud: as soon as the carrier confirms delivery of all its parts, or on the fourth day if it does not. It only comes in the lookup by id, not in the list, and only with certifiedRequested: if it does not come in that lookup, the certificate is not ready yet.

Example:true

data.partialboolean

true if its parts ended with different statuses (for example, one delivered and another not). It does not come otherwise.

data.receivedPartsarray<object>

What Hablame received from you: each piece with its identifier and time. Over SMPP, one per submit_sm of the message; over the API, one. Only in the query by id.

data.receivedParts[].idAlways presentstring

The identifier you received for that piece.

data.receivedParts[].receivedAtAlways presentstring

When Hablame received it, in Colombia time.

Format:date-time

data.carrierPartsarray<object>

Each part sent to the carrier, with its own status. Only in the query by id, and only for messages recorded since this field exists.

data.carrierParts[].partAlways presentinteger

The part, from 1.

data.carrierParts[].statusCodeAlways presentinteger

That part’s status, with the statusCode codes.

Allowed values:10 20 21 30 40 50

data.carrierParts[].statusTextstring

That status in words, like statusText.

data.carrierParts[].statusCausestring

Why, like statusCause.

data.carrierParts[].carrierMessageIdstring

The identifier the carrier gave it when accepting it.

data.carrierParts[].carrierMessageIdHexstring

The same, in hexadecimal, when it is not readable text. One or the other comes.

data.carrierParts[].acceptedAtstring

When the carrier accepted it. Accepting it is not delivering it.

Format:date-time

data.carrierParts[].dlrStatusstring

The carrier receipt that decided the part (DELIVRD, UNDELIV, EXPIRED...), if it arrived within 3 days.

data.carrierParts[].dlrAtstring

When that receipt arrived.

Format:date-time

data.carrierParts[].dlrReportedAtstring

The time the carrier reported inside that receipt: the delivery to the phone if it is DELIVRD, the event time otherwise. It is not dlrAt. It does not come if the carrier did not report it.

Format:date-time

data.deliveryobject

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.delivery.acceptedByHablameAtAlways presentstring

When Hablame received the message, in Colombia time with milliseconds (RFC 3339). It always comes.

Format:date-timeExample:2026-11-04T10:00:00.000-05:00

data.delivery.acceptedByCarrierAtstring

When the destination carrier accepted the first of its parts, in Colombia time. It does not come while the carrier has accepted none.

Format:date-timeExample:2026-11-04T10:00:01.250-05:00

data.delivery.deliveredAtstring

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.

Format:date-timeExample:2026-11-04T10:00:07.900-05:00

data.delivery.finalStatusstring

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:delivered failed blocked quarantined delivered_to_carrierExample:entregado

data.delivery.finalCausestring

Why it ended that way, with the same values as cause in the sms.final_status notification. A delivered message or one in quarantined does not bring it.

Example:carrier_undeliv

data.delivery.partsAlways presentinteger

How many parts the message travels in. It always comes.

Example:3

data.delivery.acceptedPartsAlways presentinteger

How many distinct parts the carrier accepted, from 0 to parts. It always comes.

Example:3

data.delivery.deliveredPartsinteger

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.

Example:3

metaAlways presentobject

Response metadata.

meta.requestIdAlways presentstring

Unique request identifier (16 hexadecimal characters). It matches the X-Request-Id header. Quote it when contacting support.

Example:b9b1704baffab211

meta.clientIpAlways presentstring

IP the API saw your request come from. Useful if your API key only accepts certain networks.

Example:203.0.113.45

meta.timestampAlways presentstring

Date and time the response was built (ISO 8601 with offset).

Format:date-timeExample:2026-06-04T19:43:59+00:00

meta.responseTimeMsAlways presentnumber

Time (ms) the server took to process the request.

Example:4.24

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.

Response example
{
  "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

NameTypeDescription and rules
successAlways presentboolean

dataAlways presentobject

A message that does not show up in the query yet but is newer than completeThrough: it may still be being recorded.

data.idAlways presentstring

The id you queried.

Example:0192f0c4-7a1b-7c3d-8e9f-001122334455

data.statusAlways presentstring

Always in_progress.

Fixed value:in_progress

data.completeThroughAlways presentstring

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 progress of GET /api/v6/sms/bulk/{batchId}), the parts of a long message sent over SMPP while the others arrive, nor what Hablame reviews by hand. It does not come if it cannot be known.

Format:date-timeExample:2026-11-04T10:00:05.120-05:00

data.ingestLagSecondsAlways presentinteger

How many seconds there are from completeThrough to now: how long recent messages take to appear. Usually a few seconds. It comes with completeThrough.

Example:3

metaAlways presentobject

Response metadata.

meta.requestIdAlways presentstring

Unique request identifier (16 hexadecimal characters). It matches the X-Request-Id header. Quote it when contacting support.

Example:b9b1704baffab211

meta.clientIpAlways presentstring

IP the API saw your request come from. Useful if your API key only accepts certain networks.

Example:203.0.113.45

meta.timestampAlways presentstring

Date and time the response was built (ISO 8601 with offset).

Format:date-timeExample:2026-06-04T19:43:59+00:00

meta.responseTimeMsAlways presentnumber

Time (ms) the server took to process the request.

Example:4.24

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
NameTypeDescription and rules
successAlways presentboolean

Fixed value:false

metaAlways presentobject

Response metadata.

meta.requestIdAlways presentstring

Unique request identifier (16 hexadecimal characters). It matches the X-Request-Id header. Quote it when contacting support.

Example:b9b1704baffab211

meta.clientIpAlways presentstring

IP the API saw your request come from. Useful if your API key only accepts certain networks.

Example:203.0.113.45

meta.timestampAlways presentstring

Date and time the response was built (ISO 8601 with offset).

Format:date-timeExample:2026-06-04T19:43:59+00:00

meta.responseTimeMsAlways presentnumber

Time (ms) the server took to process the request.

Example:4.24

errorAlways presentobject

error.codeAlways presentstring

Stable UPPER_SNAKE_CASE identifier. Clients branch on this value.

Example:AUTH_REQUIRED

error.legacyCodeinteger

Legacy v5 numeric code, only when a bridge exists. Omitted for codes born in v6.

Example:40002

error.typeAlways presentstring

URL to the error documentation.

Format:uriExample:https://developers.hablame.co/docs/v6/errors/auth-required

error.messageAlways presentstring

Human readable text, in English. It is for the developer log, not the end user: do not parse it.

error.detailsAlways presentarray<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.
  • 401AUTH_REQUIRED

    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>`.

  • 401AUTH_INVALID_KEY

    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 this 403.
  • 403AUTH_SERVICE_NOT_ALLOWED

    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.

  • 403AUTH_IP_NOT_ALLOWED

    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.

  • 403ACCOUNT_NOT_ACTIVE

    Your organization is suspended or closed.

    Message the API returns: The organization associated with this API key is not active. Please contact support.

  • 403SMS_ACCOUNT_NOT_IDENTIFIED

    The send’s account could not be identified.

Usage limits

  • 429Request limit exceeded.
  • 429RATE_TPS_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 id yet. It is final only if a recent query answer (the message list, or the 202 of this same id) brought completeThrough and you sent the message before that time. If completeThrough did 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 in details[0].oldestDay), or its day already moved to the archive and could not be read here (SMS_MESSAGE_ARCHIVED; any id of that day gets the same).

Internal errors and availability

  • 503It could not be queried right now (SERVICE_UNAVAILABLE). Nothing changed in your sends: retry the same query after Retry-After.

Other responses

This endpoint does not declare responses of this kind.

See it in the error catalog

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: in_progress, 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].oldestDay: 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: true; 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).

Related documentation

Need help?

Was this page helpful?

See all support channels

Ask for help about this: this endpoint

We build a message with the details that help us look into your case. Read it, complete it and send it yourself: nothing is sent on its own.

The message never carries your API key or passwords.

Your cookie preferences

You decide what we measure. You can change your choice at any time. Rejecting takes no feature away from the documentation.

Privacy policy