Send with a template
Find a template, then send it with per-recipient variables.
Find the template
List the templates of the channel and pick the one you need. Lists do not include the body; read a template to see its content, subject and the variables it expects.
curl -X GET 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/COMPANY_ID/projects/PROJECT_ID/templates?channel=email&search=welcome' \ -H 'X-Api-Key: YOUR_API_KEY'{
"items": [
{
"id": "0197a5f0-2b1c-7e44-8a55-1c2d3e4f5a6b",
"serviceProviderId": "0197a000-0000-7000-8000-000000000001",
"name": "Welcome email",
"description": "Sent after sign-up",
"thumbnailUrl": null,
"contentType": "Html",
"createdAt": "2026-10-02T08:00:00+00:00",
"updatedAt": null
}
],
"page": 1,
"pageSize": 20,
"totalCount": 1,
"totalPages": 1,
"hasNextPage": false
}Template ids rarely change: store them in your configuration instead of looking them up for every message.
Send with variables
Pass templateId and the values of its placeholders. Message-level variables apply to everyone; recipient
variables override them for one recipient.
curl -X POST 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/COMPANY_ID/projects/PROJECT_ID/messages' \ -H 'X-Api-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "channel": "email", "templateId": "0197a5f0-2b1c-7e44-8a55-1c2d3e4f5a6b", "variables": { "productName": "Acme Cloud" }, "recipients": [ { "type": "Email", "value": "jane@example.com", "variables": { "firstName": "Jane" } }, { "type": "Email", "value": "john@example.com", "variables": { "firstName": "John" } } ], "idempotencyKey": "welcome-batch-2026-11-23"}'Things to know
- The template must belong to the request's
channel, otherwise404 message.template_not_found. - Every placeholder needs a value for every recipient, otherwise
422 message.missing_variableslists the missing keys and nothing is sent. content,subjectanddatain the request override the template's values for this message only.- The template's attachments are always included (email).
Details: Templates and variables.