Messages
Get a message
GET
Gets a message with dispatch status counts.
Required permission: messages.read. See the guide for details.
Error codes:
- 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.
ApiKeyheader
X-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).
Format
uuidprojectId*stringId of the project the API key belongs to.
Format
uuidmessageId*stringFormat
uuidOK
application/json- response
message*content*stringMessage-level content (template body or the request content).
subject*null|stringvariables*idempotencyKey*null|stringapiKeyId*|The API key that sent the message, if any.
Format
uuiddispatches*Number of dispatches per status; statuses with no dispatch are left out.
attachments*array<>data*|Provider-specific JSON object, or null.
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'Example Response
{ "message": { "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 }, "content": "string", "subject": null, "variables": { "property1": "string", "property2": "string" }, "idempotencyKey": null, "apiKeyId": null, "dispatches": { "property1": 0, "property2": 0 }, "attachments": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "fileName": "string", "contentType": "string", "sizeBytes": 0, "source": "Template" } ], "data": null}