List all templates
Returns a list of your templates. The templates are returned sorted by creation date, with the most recently created templates appearing first.
Parameters
state
enum
The state of templates to return. The default is active. One of
all
, active
, trashed
.Returns
Return a paginated response that contains an array of up to the specified limit of templates.
get
/api/templates
curl https://{workspace}.documocu.com/api/templates \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"data": [
{
"archived_at": null,
"cover_page": null,
"created_at": "2024-05-14T13:26:20+00:00",
"deleted_at": null,
"id": "doc_5boql6lglq69lto2bhwso88d",
"name": "Est explicabo ut sed officia.",
"updated_at": "2024-05-14T13:26:20+00:00"
}
],
"links": {
"first": "https://{workspace}.documocu.com/api/templates?page=1",
"last": "https://{workspace}.documocu.com/api/templates?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://{workspace}.documocu.com/api/templates?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://{workspace}.documocu.com/api/templates",
"per_page": 10,
"to": 1,
"total": 1
}
}