Skip to main content
Version: FINAL-1.0.0

Get Categories

getapi.bunnystudio.com/categories

This endpoint returns all the available categories on the API.

Requirements

Authentication

Request example

 curl --request GET \ 
--url https://api.bunnystudio.com/categories \
--header "x-access-token: YOUR_TOKEN" \

Response format

id
string
Category ID
name
string
Name of the category
subCategories
array
Subcategories that component the category

Response example

  [
{
"id": "voice_over",
"name": "voice",
"subCategories": [
{
"id": "voice_over",
"brandName": "Voice over",
"formats": ["mp3", "wav"],
}
]
}
]

Error responses

500 Not categories info

  {
status: 500,
type: 'NOT_CATEGORIES_INFO',
message: 'There was an error getting all the categories available, please talk with our support team',
}

403 Forbidden

  {
status: 403,
type: 'FORBIDDEN',
message: 'You do not have permission to do this action',
}