API Reference
Retrieve All Templates
Retrieves all templates belonging to the authenticated user, with optional sorting by fields such as updatedAt
.
GET
/
templates
/
all
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
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
sort
string
default: updatedAtSort behavior, either by the date the template was created (createdAt
) or when it was last updated (updatedAt
).
order
enum<string>
default: descSort order, either ascending ('asc') or descending ('desc').
Available options:
asc
, desc
Response
200 - application/json
id
string
The ID of the template
name
string
The name of the template
createdAt
string
The date and time when the template was created
updatedAt
string
The date and time when the template was last updated