List scheduled reports

Prev Next
Get
/v1alpha/scheduled_reports

Lists the workspace's scheduled reports, newest first by default. Reports of dashboards the API key cannot see are left out, as described in List dashboards.

Security
HTTP
Type bearer
Query parameters
dashboard_id
string

Return only the reports of this dashboard. A dashboard the API key cannot see returns an empty list.

enabled
boolean

Set to true to return only enabled reports, or false to return only disabled reports. By default, both are returned.

order
string

The order of the results by creation time. The possible values are: asc for oldest first, and desc for newest first. Default is desc.

Default"desc"
page_size
integer (int32)

The maximum number of reports to retrieve per page. Default is 100. Maximum is 100. If the number of results exceeds the defined page size, use pagination to retrieve the next page of results.

Default100
page_token
string

The token received from a previous List scheduled reports request. Provide this to retrieve the next page of results. Send the same dashboard_id, enabled and order as the request that returned it.

include_recipients
boolean

Whether each report includes its recipients. Default is false; recipient_count is always returned.

Responses
200

A successful response.

Expand All
object
reports
Array of object (v1alphaScheduledReportSummary)

The reports that match the request.

object

A scheduled report as listed. Use Get scheduled report for its time range, filters, PDF setting and creator. If the report's schedule was set in Torq in a form this API cannot express, schedule is not returned.

id
string

The report ID.

Example8b1e6c2a-3f4d-4e5b-9a6c-7d8e9f0a1b2c
dashboard_id
string

The ID of the dashboard the report is based on.

Example0f8fad5b-d9cb-469f-a165-70867728950e
title
string

The report title.

ExampleWeekly SOC summary
enabled
boolean

Whether the report is sent.

schedule
object (v1alphaScheduledReportSchedule)

Contains the schedule that determines when a scheduled report is sent.

frequency
string

How often the report is sent. The possible values are: weekly, monthly, quarterly.

Exampleweekly
days
Array of string

The days of the week the report is sent. Required when frequency is weekly, and not allowed otherwise. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.

Example[ "monday" ]
string
occurrence
string

The day of the month the report is sent, in the months it runs. Required when frequency is monthly or quarterly, and not allowed otherwise. Quarterly reports run in January, April, July, and October. The possible values are: first_day, first_monday, first_sunday.

Examplefirst_monday
time_of_day
string

The time of day the report is sent, in 24-hour HH:MM format, in the time zone set in timezone.

Example09:00
timezone
string

The IANA time zone of the schedule.

ExampleAsia/Jerusalem
next_run_at
string (date-time)

When the report is scheduled to run next. Unset when the report is disabled.

last_run
object (v1alphaScheduledReportLastRun)

Contains the status and timing of a scheduled report's most recent run.

status
string

The run's status. The possible values are: running, success, failure.

Examplesuccess
started_at
string (date-time)

When the run started.

finished_at
string (date-time)

When the run finished. Unset while the run is in progress.

recipient_count
integer (int32)

How many recipients the report has.

Example2
recipients
Array of object (v1alphaScheduledReportRecipient)

Who receives the report. Returned only when include_recipients is true.

object

Contains a recipient of a scheduled report: an email address or a group.

type
string

The kind of recipient. The possible values are: email for an email address, and group for a group ID. Reports created outside this API can also return user, for a workspace user's email address.

Exampleemail
value
string

The email address or group ID, depending on type.

Examplesoc-leads@example.com
next_page_token
string

When a token is returned it indicates there is another page of results to retrieve. Pass this token in the page_token parameter in a subsequent List scheduled reports request to retrieve the next page of results. If this field is not returned, there are no additional pages to retrieve.

401

Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.

object
403

You don't have permission to access this resource.

object