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",
    "resources": ["expenses", "incomes"],
    "formats": ["csv", "xls"],
    "accounts": ["43"],
    "categories": ["44"],
    "from": "2020-10-01",
    "to": "2020-10-31",
    "modified": "2020-10-04T13:55:15Z",
    "status": "generated",
    "data": {
      "path": "https://export.toshl.com",
      "files": [
        {
          "filename": "export.csv",
          "format": "csv",
          "filesize": 356271
        },
        {
          "filename": "export.xls",
          "format": "xls",
          "filesize": 673281678
        }
      ]
    },
    "type": "export"
  }
]