API
Data API
Categories
Methods allow you to get a list of portal brands or information on a specific brand.

Return a list of categories.
Request example
GET /categories
GET
https://instance_name/api/data/v1.0/categories/
curl –i –X GET
https://test.eyrene.com/api/data/v1.0/categories/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
–F "offset=30"Response parameters​

count integer
The number of categories.

next string (uri) Nullable
Next page.

previous string (uri) Nullable
Previous page.

results array of objects
An array of objects with information about categories.
- id integer Category ID.
- name string [ 1 .. 255 ] characters Category name.



Returns information about the category by ID.
Request example
GET /categories/{id}
GET
https://instance_name/api/data/v1.0/categories/{id}
curl –i –X GET
https://test.eyrene.com/api/data/v1.0/categories/19765/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
–F "limit=3" \
–F "offset=0" Response parameters​

id integer
Category ID.

name string [ 1 .. 255 ] characters
Category name.