Docs

Type a word or a question. Esc closes the search.

Sign in Start free

Export a report

Downloads the selected report as CSV, JSON, PDF or XLSX for a chosen reporting window.

GET https://app.upfour.io/v1/reports/export
GET https://app.upfour.io/v1/reports/export
Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs report.read.
Query

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope report.read stable returns 200

Parameters

FieldTypeDescription
type optional string one ofmonitorssummarytrendsincidentsslaresponse-timedowntime-ledger default "monitors" query parameter · Which report to render.
format optional string one ofcsvjsonpdfxlsx default "csv" query parameter · File format of the download (default csv).
preset optional string one of24h7d30d90dmtdlast_monthqtdytd query parameter · Reporting window; period is accepted as an alias. Without preset, from and to the window is the last 30 days. The window is cut to the plan's history.
from optional string query parameter · Start of the window: an RFC 3339 timestamp or a date (YYYY-MM-DD, in tz). Replaces preset.
to optional string query parameter · End of the window, same formats as from; a date means the end of that day. Defaults to now.
tz optional string query parameter · IANA time zone for calendar presets and dates. Defaults to the Company's report time zone.
lang optional string one ofende default "en" query parameter · Language of the report text.
monitor_id optional uuid query parameter · Only this monitor; repeat the parameter or send a comma-separated list for several.
severity optional string query parameter · Incident reports only: keep incidents of this severity; repeat the parameter or send a comma-separated list for several.
q optional string query parameter · Case-insensitive text: keeps monitors whose name, or incidents whose title, contains it.
business_hours optional string query parameter · Count only these hours in SLA and response-time reports, for example mon-fri,09:00-17:00 (several groups separated by ;). The hours are read in tz, or in UTC when tz is not sent.
client_id optional uuid query parameter · Report on one client.
all_clients optional boolean query parameter · true includes all clients; without client_id the report covers the Company level.
target optional number 0–100 query parameter · Only for type=sla: replaces every monitor's SLA target (percent, 0 to 100).

Returns

A successful request returns 200 with application/json, application/pdf, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv.

Response fields 1 top-level fields
FieldTypeDescription
(body) object free-form keys

Errors

Only the errors this operation can return. Every error uses the same envelope.

Status Code Meaning
400 bad_request The request is malformed or fails validation.
403 permission_denied The credentials do not permit this action.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.