List messages
Lists messages, newest first; from/to filter on created_at ([from, to)).
Required permission: messages.read. See the guide for details.
Error codes:
- 400
validation.failed
Every endpoint can also answer 401 (missing or invalid key), 403 (route outside the key's project or permission) and 429 rate_limit.exceeded.
ApiKeyX-Api-Key<token>Project API key: nb_<prefix>_<secret>.
companyId*stringId of the company that owns the project (shown with the API key in the dashboard).
uuidprojectId*stringId of the project the API key belongs to.
uuidstatus?unknownFilter by status.
"Pending""Processing""Completed""PartiallyCompleted""Failed""Cancelled"channel?stringFilter by channel code (email, sms, push).
from?stringInclusive start (ISO 8601), applied to the creation time.
date-timeto?stringExclusive end (ISO 8601), applied to the creation time.
date-timepriority?unknownFilter by priority.
"Critical""Normal""Bulk"templateId?stringFilter by template id.
uuidpage?integerPage number, 1 or more. Default 1.
int32pageSize?integerItems per page, 1 to 100. Default 20.
int32search?stringCase-insensitive search term.
sort?stringUp to 2 comma-separated keys, '-' prefix for descending. Keys: createdAt. Default: -createdAt.
OK
application/json- response
items*array<>page*integerint32pageSize*integerint32totalCount*integerint32totalPages?integerint32hasNextPage?booleancurl -X GET 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages'{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "channel": "string", "priority": "Critical", "status": "Pending", "messageTemplateId": null, "recipientCount": 0, "scheduledAt": null, "isOtp": true, "createdAt": "2019-08-24T14:15:22Z", "templateName": null, "subject": null, "firstRecipient": null } ], "page": 0, "pageSize": 0, "totalCount": 0, "totalPages": 0, "hasNextPage": true}