Retrieves a list of either main categories or subcategories. If an 'id' query parameter is not provided, it returns all main categories. If an 'id' query parameter is provided, it returns all subcategories related to the main category of the given 'id'.
Request
Query Params
id
integer
optional
ID of a main category - to retrieve its subcategories.
Header Params
Authorization
string
required
Authorization token for the sandbox environment.
Default:
Token <here-paste-your-token>
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://sandbox.useme.com/api/1.0/categories/' \
--header'Authorization;'
Responses
🟢200A list of categories. The type of categories returned (main or sub) depends on the 'id' query parameter presence.