Skip to Content
Notification APIDocs
Message templates

List templates

GET
/api/v1/companies/{companyId}/projects/{projectId}/templates

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.

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

Query Parameters

serviceProviderId?string

Filter by catalog service provider id.

Formatuuid
channel?string

Filter by channel code (email, sms, push).

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: name, createdAt, updatedAt. 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/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}