Skip to Content
Notification APIDocs
Messages

List dispatches of a message

GET
/api/v1/companies/{companyId}/projects/{projectId}/messages/{messageId}/dispatches

Lists the per-recipient dispatches of a message.

Required permission: messages.read. See the guide for details.

Error codes:

  • 400 validation.failed
  • 404 message.not_found

Every endpoint can also answer 401 (missing or invalid key), 403 (route outside the key's project or permission) and 429 rate_limit.exceeded.

Authorization

ApiKey
headerX-Api-Key<token>

Project API key: nb_<prefix>_<secret>.

Path Parameters

companyId*string

Id of the company that owns the project (shown with the API key in the dashboard).

Formatuuid
projectId*string

Id of the project the API key belongs to.

Formatuuid
messageId*string
Formatuuid

Query Parameters

status?unknown

Filter by status.

Value in"Pending""Inqueue""Processing""Sent""Delivered""Failed""Retrying""Cancelled"
page?integer

Page number, 1 or more. Default 1.

Formatint32
pageSize?integer

Items per page, 1 to 100. Default 20.

Formatint32
search?string

Case-insensitive search term.

sort?string

Up to 2 comma-separated keys, '-' prefix for descending. Keys: recipient, status, createdAt. Default: -createdAt.

Response Body

OK

application/json
  1. response
items*array<>
page*integer
Formatint32
pageSize*integer
Formatint32
totalCount*integer
Formatint32
totalPages?integer
Formatint32
hasNextPage?boolean
Example Request
curl -X GET 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/dispatches'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "recipientAddress": "string",      "status": "Pending",      "retryCount": 0,      "sentAt": null,      "deliveredAt": null,      "failedAt": null,      "lastError": null,      "providerMessageId": null,      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "pageSize": 0,  "totalCount": 0,  "totalPages": 0,  "hasNextPage": true}