Message templates
List templates
GET
Lists templates without content.
Required permission: templates.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.
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
uuidserviceProviderId?stringFilter by catalog service provider id.
Format
uuidchannel?stringFilter by channel code (email, sms, push).
page?integerPage number, 1 or more. Default 1.
Format
int32pageSize?integerItems per page, 1 to 100. Default 20.
Format
int32search?stringCase-insensitive search term.
sort?stringUp to 2 comma-separated keys, '-' prefix for descending. Keys: name, createdAt, updatedAt. Default: -createdAt.
OK
application/json- response
items*array<>page*integerFormat
int32pageSize*integerFormat
int32totalCount*integerFormat
int32totalPages?integerFormat
int32hasNextPage?booleancurl -X GET 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/templates'Example Response
{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "serviceProviderId": "3568af81-f13a-4d5b-9ffd-a82aa179f2bc", "name": "string", "description": null, "thumbnailUrl": null, "contentType": "Html", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": null } ], "page": 0, "pageSize": 0, "totalCount": 0, "totalPages": 0, "hasNextPage": true}