Toshl Developer

List exports

List all exports.

GET /exports

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
status
optional
string

Filter by export status.

Possible values: sending, sent, error, generating, generated
type
optional
string

Filter by export type.

Possible values: export, attachments, user_data

* denotes required field/parameter.

Request

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

Response

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

[
  {
    "id": "42-export",
    "resources": ["expenses", "incomes"],
    "formats": ["csv", "xls"],
    "filters": {
      "accounts": ["1","2","3"],
      "expenses": {
        "categories": ["42"],
        "tags": ["44"]
      },
      "incomes": {
        "!categories": ["43"],
        "!tags": ["45"]
      },
      "!locations": ["123"]
    },
    "from": "2020-10-01",
    "to": "2020-10-31",
    "created": "2020-10-04T13:55:15Z",
    "modified": "2020-10-04 13:55:15.324",
    "status": "generated",
    "data": {
      "path": "https://export.toshl.com",
      "filename": "export.zip",
      "filesize": 356271
    },
    "seen": false,
    "type": "export"
  }
]