List Categories
GET/v1/categories
List Categories
Responses​
- 200
- 400
- 401
Successfully retrieved a list of Categories
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
id string
Example:
category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
name string
Example:
Environmental
imageUrl stringnullable
Example:
categories/3.png
createdAt date-time
Example:
2020-10-13T17:46:54.000Z
totalResults integer
Example:
33
pageSize integer
Example:
25
_links
object
current string
Example:
https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D
next string
Example:
https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D
prev string
Example:
https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D
object string
Example:
Category
{
"data": [
{
"id": "category_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Environmental",
"imageUrl": "categories/3.png",
"createdAt": "2020-10-13T17:46:54.000Z"
}
],
"totalResults": 33,
"pageSize": 25,
"_links": {
"current": "https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D",
"next": "https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D",
"prev": "https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D"
},
"object": "Category"
}
Bad request
- application/json
- Schema
- Example (from schema)
- IncorrectParams
- CursorError
Schema
error
object
code string
title string
message string
reasons string[]nullable
{
"error": {
"code": "string",
"title": "string",
"message": "string",
"reasons": [
"string"
]
}
}
400 Incorrect Parameters
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Error in cursor parameter
{
"error": {
"code": "pagination/cursor_error",
"title": "Bad request",
"message": "Unable to find the next page"
}
}
Unauthorized
Loading...