Toshl Developer

Create export

Create a new export.

POST /exports

Required scope:

Parameters

emails
optional
array

An array of emails to send the export file. If not set users default email is used.

resources *
required
array

An array of resources to export.

Possible values: expenses, incomes, budgets, summary
formats *
required
array

An array of export formats.

Possible values: csv, xls, pdf, gdoc, qif, ofx, qfx, evernote
accounts
optional
array

An array of accounts to export. Default is to export all accounts.

!accounts
optional
array

An array of accounts to not export. Default is to export all accounts.

categories
optional
array

An array of categories to export. Default is to export all categories.

!categories
optional
array

An array of categories to not export. Default is to export all categories.

tags
optional
array

An array of tags to export. Default is to export all tags.

!tags
optional
array

An array of tags to not export. Default is to export all tags.

from *
required
string

Used to define date range, in YYYY-MM-DD format.

Format: date
to *
required
string

Used to define date range, in YYYY-MM-DD format.

Format: date

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/exports \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{json}'

Response

HTTP/1.1 201 Created
Location: https://api.toshl.com/exports/42