List Templates
Get a list of all your templates, including their keys, names, usage statistics, and more.
Endpoint
You can get your list of templates by sending a GET request to the following endpoint:
GET https://docubloom.com/api/template/list
Headers
All requests must include your API key in the Authorization
header. If you don’t have an API key yet, you can create one in your organization settings .
Authorization: Bearer YOUR_API_KEY
Request Parameters
Definition of fields
No additional parameters are required for this endpoint.
Example Request
POST https://docubloom.com/api/template/list
Response
If the request is successful, you will receive a 200 OK
status code along with the list of templates in the response body as a JSON array.
The Content-Type
header will be application/json
.
Example Response:
[
{
"key": "my-template-key",
"name": "My Template",
"usage": 271,
"createdAt": "2025-01-01T15:31:10.021Z",
"updatedAt": "2025-01-01T21:48:56.425Z",
"lastUsed": "2025-04-07T09:12:34.712Z"
},
{
"key": "another-template-key",
"name": "My Other Template",
"usage": 52,
"createdAt": "2025-01-03T14:00:00.000Z",
"updatedAt": "2025-01-03T14:00:00.000Z",
"lastUsed": "2025-04-08T14:00:00.000Z"
}
]
Status Codes
The API will return different HTTP status codes based on the outcome of your request.
Status | Description |
---|---|
200 | List of templates retrieved successfully |
400 | Invalid request parameters |
401 | Unauthorized – missing or invalid API key |
500 | Internal server error |
Last updated on