Toshl Developer

List categories

Get all users categories.

GET /categories

Required scope:

Parameters

page
optional
integer

Page to display, used for pagination.

Minimum: >= 0
Default value: 0
per_page
optional
integer

Number of resource objects to return.

Minimum: >= 10
Maximum: =< 500
Default value: 200
since
optional
string

Return all categories that were modified since timestamp.

Format: date-time
type
optional
string

Category type

Possible values: expense, income
search
optional
string

Used to search categories.

include_deleted
optional
boolean

Include deleted categories.

ids
optional
string

A comma separated list of category ids to return.

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/categories \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"

Response

HTTP/1.1 200 OK
Content-Type: application/json

[
  {
    "id": "42",
    "name": "Entertainment",
    "modified": "2012-09-04T13:55:15Z",
    "type": "expense",
    "deleted": false,
    "counts": {
      "entries": 21,
      "tags": 5
    }
  }
]