Skip to main content
GET
/
users
/
{userId}
/
categories
Get categories
curl --request GET \
  --url https://east.sandbox.spade.com/users/{userId}/categories \
  --header 'X-Api-Key: <api-key>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "icon": "<string>",
    "fullCategoryHierarchy": [
      {
        "id": "<string>",
        "name": "<string>",
        "icon": "<string>"
      }
    ]
  }
]

Authorizations

X-Api-Key
string
header
required

Path Parameters

userId
string
required

The userId of the relevant user.

Response

Successful operation

id
string

A unique identifier for this category.

name
string

The category's name

icon
string<url> | null

The category's icon, potentially inherited from the parent category.

fullCategoryHierarchy
object[]

Array with increasingly specific category information.