Ziett
Docs
Docs
  • API Reference
Docs
Docs
  • API Reference
Meet Ziett
Login
  1. Messages
  • API Docs - Ziett
  • API Reference
    • Overview
    • Messages
      • Send Transactional Message
        POST
      • List Organization Messages
        GET
      • Retrieve Message Details
        GET
    • Campaigns
      • List Organization Campaigns
      • Create Batch Campaign
      • List Campaign Messages
      • Retrieve Campaign Details
  1. Messages

List Organization Messages

GET
https://api.ziett.co/c/v1/messages
Last modified:2026-03-22 10:48:32
Retrieve a paginated list of all messages sent by your organization. This endpoint provides powerful filtering and search capabilities to audit your communication history.

Search (q)#

Use the q parameter to perform a keyword search. It matches against:
Destination: The recipient's phone number (E.164).
Message ID: The unique UUID of the message.

Filtering options#

Most filters support multiple values. Pass the parameter multiple times in the query string (e.g., status=sent&status=failed).
ParameterTypeDescription
statusenumFilter by delivery state: PENDING, SENT, DELIVERED, FAILED, UNDELIVERED.
channel_typeenumFilter by channel: SMS, WHATSAPP.
contact_iduuidFilter messages sent to a specific contact from your audience.
campaign_iduuidFilter messages belonging to a specific batch campaign.
remitter_iduuidFilter by the Sender ID (Remitter) used for delivery.
created_at__gedatetimeStart of the date range (ISO 8601).
created_at__ledatetimeEnd of the date range (ISO 8601).

Pagination & Sorting#

Page Size: Default is 30, maximum is 200 records per page.
Sorting: Control results with order (asc, desc) and order_by (created_at, updated_at).

Request

Authorization
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
Query Params

Responses

🟢200OK
application/json
Successful Response
Bodyapplication/json

🟠422Parameter Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.ziett.co/c/v1/messages?q=&size=30&page=1&order=desc&order_by=created_at&contact_id=&campaign_id=&status=&trigger_source=&channel_type=&channel_destination=&sms_remitter_id=&created_at__ge=&created_at__le=' \
--header 'X-API-KEY: <api-key>'
Response Response Example
200 - Example 1
{
    "entries": [
        {
            "id": "string",
            "updated_at": "2019-08-24T14:15:22.123Z",
            "created_at": "2019-08-24T14:15:22.123Z",
            "organization_id": "string",
            "campaign_id": "string",
            "contact_id": "string",
            "sms_remitter_id": "string",
            "sms_remitter": {
                "name": "Ziett"
            },
            "external_id": "string",
            "cost": "3423.23",
            "billing_account_id": "string",
            "channel_type": "SMS",
            "channel_destination": "UNITEL",
            "provider_id": "string",
            "e164_format": "+244990090990",
            "content": "string",
            "trigger_source": "API_CLIENT",
            "error_code": "INVALID_PHONE_NUMBER",
            "is_refunded": true,
            "status": "PENDING",
            "contact": {
                "id": "string",
                "updated_at": "2019-08-24T14:15:22.123Z",
                "created_at": "2019-08-24T14:15:22.123Z",
                "name": "string",
                "email": "user@example.com",
                "e164_format": "+244990090990",
                "organization_id": "string"
            },
            "campaign": {
                "id": "string",
                "updated_at": "2019-08-24T14:15:22.123Z",
                "created_at": "2019-08-24T14:15:22.123Z",
                "name": "string",
                "status": "DRAFT"
            }
        }
    ],
    "total": 0,
    "page": 1,
    "size": 1,
    "pages": 0
}
Modified at 2026-03-22 10:48:32
Previous
Send Transactional Message
Next
Retrieve Message Details
Built with