Toshl Developer

Get export

Get export details.

GET /exports/{id}

Required scope:

Parameters

id *
required
string

Export id.

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/exports/42-export \
  -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"
}