get
https://api.duodeal.app/api/templates
Retrieves a paginated list of all templates.
Templates are used for emails, legal notices, and terms & conditions in quotations and deals.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number for pagination (default: 1) |
limit | integer | No | Number of items per page (default: 50) |
order | string | No | Field to sort by (default: id) |
direction | string | No | Sort direction: asc or desc (default: desc) |
type | string | No | Filter by template type |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Template unique identifier |
title | string | Template title/name |
type | string | Template type (see below) |
content | string | Template content (HTML) |
subject | string | Email subject (for email templates) |
byDefaultSendDeal | boolean | Default template for sending quotations |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Template Types
| Type | Description |
|---|---|
email | Email template for sending quotations |
notice | Legal notice template |
cgv | Terms and conditions (CGV) template |
Filtering
This endpoint supports advanced filtering. See the Filter System Documentation for the complete list of operators and usage examples.
Quick examples:
?filters[type][eq]=email
?filters[title][contains]=Welcome
?filters[byDefaultSendDeal][eq]=true
Response
200 OK: Returns paginated list of templates401 Unauthorized: Invalid or missing API key
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Successful response
401Unauthorized
