Messages

List messages

Lists your messages, newest first. Filter by status, recipient, sender ID, reference, batch or date.

GET
/v1/messages

Lists your messages, newest first. Filter by status, recipient, sender ID, reference, batch or date.

Authorization

bearer
headerAuthorizationBearer <JWT>

Your secret API key: sk_live_… for live traffic or sk_test_… for testing.

Query Parameters

page?number

Page number, starting at 1.

Range1 <= value <= 2147483647
limit?number

Items per page, 1 to 100. Defaults to 10.

Range1 <= value <= 100
status?string

Only messages with this status.

Value in"queued""sent""delivered""undelivered""failed""expired"
to?string

Only messages to this number.

Lengthlength <= 32
from?string

Only messages from this sender ID.

Lengthlength <= 11
reference?string

Only messages with this reference.

Lengthlength <= 100
batchId?string

Only messages in this batch.

Lengthlength <= 40
createdFrom?string

Only messages created at or after this time (ISO 8601).

Formatdate-time
createdTo?string

Only messages created before this time (ISO 8601).

Formatdate-time

Response Body

A page of messages.

application/json
Example Request
curl -X GET 'https://api.appstractone.com/v1/messages'
Example Response
{
  "docs": [
    {
      "id": "msg_01M6MJSBW6TNFXDJ48HMRQXBPM",
      "to": "+233201234567",
      "from": "MYSHOP",
      "text": "Hi Ama, your order is ready.",
      "status": "delivered",
      "encoding": "GSM-7",
      "segments": 1,
      "cost": {
        "amount": "0.04",
        "currency": "GHS"
      },
      "reference": null,
      "batchId": "bat_01M6MJSBW6TNFXDJ48HMRQXBPJ",
      "test": true,
      "errorCode": null,
      "createdAt": "2026-11-05T00:47:20.459Z",
      "sentAt": null,
      "deliveredAt": "2026-11-05T00:47:20.454Z"
    }
  ],
  "totalDocs": 4,
  "limit": 2,
  "totalPages": 2,
  "page": 1,
  "pagingCounter": 1,
  "hasPrevPage": false,
  "hasNextPage": true,
  "prevPage": null,
  "nextPage": 2
}