Skip to content

Endpoints

Endpoints

Name

List what people wrote to you

The messages people wrote to your code in the last 7 days, without the text: their number, their parts, their cost and their webhook notification.

HTTP method and path

GET/api/v6/sms/inbound

https://developers.hablame.co/api/v6/sms/inbound

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, from the newest to the oldest, the messages people wrote to your organization in the last 7 days: one per message, even if it arrived in several parts. Without the text: the text reaches you only in the sms.mo webhook notification. It helps you know what arrived and whether its notification already went out towards your webhook (delivery).

Each page brings up to 50 messages and, in nextCursor, the next page’s cursor; the listing ends when nextCursor comes as null. If a person wrote to several organizations, each one sees its own copy, with its cost and its notification.

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: 10 requests per second.

Path parameters

This endpoint has no path parameters.

Query parameters

NameTypeDescription and rules
cursorOptionalstring

The nextCursor of the previous page.

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

A page of what people wrote to you.

Response example
{
  "success": true,
  "data": {
    "receivedFrom": "2026-10-28",
    "items": [
      {
        "id": "0192f0d8-1c2b-7a3d-9e8f-00aa11bb22cc",
        "receivedAt": "2026-11-04T09:15:20.000-05:00",
        "shortCode": "890123",
        "from": "573001234567",
        "parts": 1,
        "expectedParts": 1,
        "complete": true,
        "duplicates": 0,
        "cost": { "amountMicro": 0, "notCharged": true },
        "delivery": "published",
        "deliveredAt": "2026-11-04T09:15:21.000-05:00"
      }
    ],
    "nextCursor": null
  },
  "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 page of what people wrote to your organization in the last 7 days, from the newest to the oldest.

data.receivedFromAlways presentstring

The first day of the 7 the query counts (Colombia).

Format:dateExample:2026-10-28

data.itemsAlways presentarray<object>

The page’s messages, without the text: the text reaches you in the sms.mo webhook.

data.items[].idAlways presentstring

Message identifier: the messageId of its webhook notification.

data.items[].receivedAtAlways presentstring

When its first part arrived, in Colombia time.

Format:date-time

data.items[].shortCodeAlways presentstring

The code people wrote to.

data.items[].fromAlways presentstring

The mobile number that wrote, with the country code (57…).

data.items[].partsAlways presentinteger

The parts that arrived.

data.items[].expectedPartsAlways presentinteger

The parts the message announces.

data.items[].completeAlways presentboolean

true if all of them arrived.

data.items[].duplicatesAlways presentinteger

Parts the carrier sent twice.

data.items[].costobject

What was charged for receiving it, in micros of your organization’s currency.

data.items[].cost.amountMicroAlways presentinteger

Amount in micros.

data.items[].cost.currencystring

ISO 4217 currency code.

data.items[].cost.notChargedboolean

true: it was not charged.

data.items[].deliveryAlways presentstring

Its webhook notification: pending, published (sent towards your webhook), no_endpoint (you have no webhook that receives it) or not_delivered (it is not delivered).

Allowed values:pending published no_endpoint not_delivered

data.items[].deliveredAtstring

When it was sent towards your webhook.

Format:date-time

data.nextCursorAlways presentstring

The next page’s cursor; null when there are no more.

May come as null.

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

  • 422The cursor is not the one of this query (SMS_INVALID_CURSOR).

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

This endpoint does not declare responses of this kind.

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

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