Skip to content

Endpoints

Endpoints

Name

Get a message timeline

What happened to a message, step by step: when Hablame received it, each send to the carrier with its answer and each delivery receipt.

HTTP method and path

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

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

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, in order, what happened to a message of your organization: when Hablame received it, when it was ready to go out, each time one of its parts was sent to the carrier with what the carrier answered, and the delivery receipts that arrived. If a sending rule stopped it, or it could not go out, it says so too. It does not bring the text or the number. It works for what you sent through the API, through Cloud or over SMPP.

You only see the messages of your organization. The id can be the one of any of its parts, as in GET /api/v6/sms/messages/{id}, and the response brings the message’s one. A message from another organization answers 404, just like one that does not exist.

The events

Each event brings its type and its time (en). The ones of a part also bring part (from 1) and, the sends and their answers, attempt (1 the first). They come in time order, from the first to the last.

The cause of blocked and not_sent, and finalCause, use the cause values of the sms.final_status notification, where what each one means is explained.

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

Response example
{
  "success": true,
  "data": {
    "id": "0192f0c4-7a1b-7c3d-8e9f-001122334455",
    "parts": 1,
    "finalStatus": "delivered",
    "events": [
      { "type": "received", "at": "2026-11-04T10:00:00.000-05:00" },
      { "type": "routed", "at": "2026-11-04T10:00:00.040-05:00" },
      { "type": "sent", "at": "2026-11-04T10:00:00.120-05:00", "part": 1, "attempt": 1 },
      { "type": "response", "at": "2026-11-04T10:00:00.310-05:00", "part": 1, "attempt": 1, "result": "rejected" },
      { "type": "sent", "at": "2026-11-04T10:00:01.100-05:00", "part": 1, "attempt": 2 },
      { "type": "response", "at": "2026-11-04T10:00:01.250-05:00", "part": 1, "attempt": 2, "result": "accepted" },
      { "type": "receipt", "at": "2026-11-04T10:00:07.900-05:00", "part": 1, "result": "delivered" }
    ]
  },
  "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

The history of a message of your organization, event by event. It never brings the text or the number.

data.idAlways presentstring

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

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

data.partsAlways presentinteger

How many parts the message travels in.

Example:1

data.finalStatusstring

How it ended, with the values of delivery.finalStatus of the message query. It does not come while it has no final status.

Allowed values:delivered failed blocked quarantined delivered_to_carrierExample:delivered

data.finalCausestring

Why it ended that way, with the same values as cause in the sms.final_status notification and cause in the message query. What the day closing leaves in its final status without a notification also brings no_dlr (with delivered_to_carrier), no_route or carrier_not_accepted. A delivered message does not bring it.

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.eventsAlways presentarray<object>

What happened to the message, in time order. It can come empty.

data.events[].typeAlways presentstring

What happened. What each value means is in the events table.

Allowed values:received routed blocked not_sent sent response receiptExample:sent

data.events[].atAlways presentstring

When it happened, in Colombia time and with milliseconds (RFC 3339, with -05:00).

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

data.events[].partinteger

The part, from 1. Only in sent, response and receipt.

Example:1

data.events[].attemptinteger

Which time that part was sent (1 the first). Only in sent and response.

Example:1

data.events[].resultstring

In response, what the carrier answered; in receipt, how the part ended; in sent, only if the carrier did not answer or the connection dropped.

Allowed values:accepted rejected permanently_rejected no_connection no_response delivered expired deleted undeliverable unknown enroute otherExample:accepted

data.events[].causestring

In blocked and not_sent, why, with the same values as cause in the sms.final_status notification.

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 (RATE_TPS_EXCEEDED): the quota is the same as the message query.
  • 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 (SMS_MESSAGE_NOT_FOUND). 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

The history grows over time

A just-accepted message takes a few seconds to appear: meanwhile the query answers 202 with status: in_progress and Retry-After, which does not mean it was not sent. And receipts can arrive minutes or hours after the send: if it has no finalStatus yet, query again later.

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