List all categories
Returns a list of your categories. The categories are returned sorted by creation date, with the most recently created categories appearing first.
Parameters
No parameters.
Returns
Return a paginated response that contains an array of up to the specified limit of categories.
get
/api/categories
curl https://{workspace}.documocu.com/api/categories \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"data": [
{
"created_at": "2024-05-14T12:35:40+00:00",
"id": "cat_7vd1kynnir8fxdg6qgtgvuom",
"name": "Occaecati",
"updated_at": "2024-05-14T12:35:40+00:00"
}
],
"links": {
"first": "https://{workspace}.documocu.com/api/categories?page=1",
"last": "https://{workspace}.documocu.com/api/categories?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/categories?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://{workspace}.documocu.com/api/categories",
"per_page": 20,
"to": 1,
"total": 1
}
}