Browse docs

Reports

Daily summary

GET/reports/daily-summary

dateRequired
In the query: text.
locationId
In the query: id starting with LO_.
curl "http://app.telltailhq.com/api/v1/reports/daily-summary" \
  -H "Authorization: Bearer tt_pat_your_token"

Run

POST/reports/run

reportRequired
In the JSON body: text, up to 80 characters.
params
In the JSON body: object.
curl -X POST "http://app.telltailhq.com/api/v1/reports/run" \
  -H "Authorization: Bearer tt_pat_your_token" \
  -H "Content-Type: application/json" \
  -d '{"report":"…"}'

Export

POST/reports/export

reportRequired
In the JSON body: text, up to 80 characters.
params
In the JSON body: object.
format
In the JSON body: one of csv, xlsx, pdf. Default csv.
sort
In the JSON body: text, up to 80 characters.
curl -X POST "http://app.telltailhq.com/api/v1/reports/export" \
  -H "Authorization: Bearer tt_pat_your_token" \
  -H "Content-Type: application/json" \
  -d '{"report":"…"}'

Values

GET/reports/values

reportRequired
In the query: text, up to 80 characters.
paramRequired
In the query: text, up to 40 characters.
q
In the query: text, up to 80 characters.
ids
In the query: list of text, up to 80 characters, up to 200.
curl "http://app.telltailhq.com/api/v1/reports/values" \
  -H "Authorization: Bearer tt_pat_your_token"

Definitions

GET/reports/definitions

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/reports/definitions" \
  -H "Authorization: Bearer tt_pat_your_token"

Status

GET/reports/status

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/reports/status" \
  -H "Authorization: Bearer tt_pat_your_token"