API Reference
Retrieve All Templates
Retrieves all templates belonging to the authenticated user, with optional sorting by fields such as updatedAt
.
GET
Note: This operation does not consume any account credits, but rate limits apply.
Retrieve All Templates
This endpoint retrieves all templates belonging to the authenticated user. You can optionally sort the results by fields such as updatedAt
.
Request
- Endpoint:
GET /templates/all
- Authorization: Bearer token required
Query Parameters
sort
(string, optional): Sort behavior, either by the date the template was created (createdAt
) or when it was last updated (updatedAt
). Defaults toupdatedAt
.order
(string, optional): Sort order, either ascending (asc
) or descending (desc
). Defaults todesc
.
Response
A successful response will return an array of templates.
Example Response
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Sort behavior, either by the date the template was created (createdAt
) or when it was last updated (updatedAt
).
Sort order, either ascending ('asc') or descending ('desc').
Available options:
asc
, desc