Retrieve Message

GET

api.ziett.co/c/v1 /messages/{message_id}

Fetch the complete execution and routing details of a specific message using its unique identifier. This endpoint is crucial for auditing individual communications, inspecting transaction costs, tracking carrier delivery timestamps, or debugging delivery failures via network error codes.

To query and browse multiple records with custom filter subsets instead, see List Messages.


Request

Required scope: apikey:messages:read

Path Parameters

ParameterTypeDescription
message_iduuidThe unique UUID v7 tracking identifier assigned to the message during ingestion.

Examples

import httpx

message_id = "019b4b56-e704-7c30-83a0-527df63c3e00"

response = httpx.get(
    f"[https://api.ziett.co/c/v1/messages/](https://api.ziett.co/c/v1/messages/){message_id}",
    headers={
        "X-API-KEY": "zk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    }
)

print(response.json())

Responses

200 OK — Message Details Retrieved

The resource was located successfully within your organization's record logs.

{
  "id": "019b4b56-e704-7c30-83a0-527df63c3e00",
  "organization_id": "019b4b56-ab10-7210-81a1-527df63c3111",
  "billing_account_id": "019b4b56-bc20-7315-92b2-627df63c3222",
  "campaign_id": "019b4b56-cd30-7420-a3c3-727df63c3333",
  "contact_id": "019b4b56-fa21-7210-91b1-127df63c3eef",
  "sms_remitter_id": "019b4b56-de40-7530-b4d4-827df63c3444",
  "sms_remitter": {
    "id": "019b4b56-de40-7530-b4d4-827df63c3444",
    "name": "InfoZiett"
  },
  "external_id": "client_ref_981242",
  "channel_type": "SMS",
  "channel_destination": "UNITEL",
  "provider_name": "UNITEL_DIRECT",
  "e164_format": "+244990090990",
  "content": "Your validation protocol code is 99201.",
  "trigger_source": "API",
  "cost": "15.000000",
  "is_refunded": false,
  "status": "DELIVERED",
  "error_code": null,
  "created_at": "2026-05-14T10:30:00.000000+00:00",
  "updated_at": "2026-05-14T10:30:04.000000+00:00"
}

Response Fields

FieldTypeDescription
iduuidUnique UUID v7 tracking identifier for this message.
organization_iduuidThe organization owner account ID that triggered this communication.
billing_account_iduuidThe specific balance account debt-linked to this transaction.
campaign_iduuid | nullPopulated if this individual single dispatch belonged to a parent batch execution instance.
contact_iduuid | nullReference mapping token pointing to the recipient's internal CRM record ledger.
sms_remitter_iduuid | nullThe exact approved Sender ID configuration identifier used for delivery.
sms_remitterobject | nullEmbedded sub-object detailing basic name parameters of the SMS Sender ID signature.
external_idstring | nullAn optional lookup reference string mapping passed by your system during ingestion.
channel_typestringThe message structure layer medium format classification choice (SMS, WHATSAPP).
channel_destinationstringThe destination network provider operator routing map (e.g., UNITEL, AFRICELL_AO).
provider_namestring | nullInternal partner integration gateway handler used to drop the payload over the network.
e164_formatstringRecipient destination phone target sanitized under E.164 standardization format rules.
contentstringThe text string content body dispatched over the carrier lines.
trigger_sourcestringOrigin pipeline vector execution structure context (API_CLIENT,CUSTOMER_PORTAL).
coststringDecimal formatted financial cost consumed on account balance to process this message.
is_refundedbooleanFlag pointing out if a delivery failure reversed balance transactions back to your wallet.
statusstringThe exact real-time network state (PENDING, SENT, DELIVERED, FAILED, UNDELIVERED, EXPIRED, REJECTED, CANCELLED).
error_codestring | nullCategorized error identifier value indicating the reason behind structural delivery blockages.
created_atdatetimePrecise timestamp marking when the transaction was securely received by the API.
updated_atdatetimePrecise timestamp marking the latest carrier tracking updates or state transitions.

401 Unauthorized — Invalid API Key

The X-API-KEY header verification layer check failed.

{
  "code": "AUTH_INVALID_API_KEY",
  "message": "The provided API key is invalid or has been revoked.",
  "status": 401,
  "trace_id": "b2c3d4e5f644358a9e7011c123c831a1",
  "timestamp": "2026-05-14T10:30:00.000000+00:00",
  "service": "core"
}

404 Not Found — Message Not Found

The requested tracking ID does not exist, or it belongs to a different organization account workspace.

{
  "code": "NOT_FOUND",
  "message": "The requested message resource could not be found.",
  "status": 404,
  "trace_id": "c3d4e5f644358a9e7011c123c831a1b2",
  "timestamp": "2026-05-14T10:30:00.000000+00:00",
  "service": "core"
}

422 Unprocessable Entity — Validation Error

The provided message_id variable path value fails standard validation compliance patterns (e.g., malformed UUID structure).

{
  "code": "VALIDATION_ERROR",
  "message": "One or more fields failed validation.",
  "status": 422,
  "trace_id": "f812a3bc91e044358a9e7011c456d901",
  "timestamp": "2026-05-14T10:30:00.000000+00:00",
  "service": "core",
  "fields": {
    "message_id": "Value must conform to a valid UUID v7 format rule pattern structure."
  }
}

  • List Messages — Browse and audit historical data with multi-variable filters.
  • Send Message — Trigger a new high-priority message dispatch transaction immediately.