Your scheduled reports
GET
/api/v1/analytics/reports/schedules
const url = 'https://digize.com/api/v1/analytics/reports/schedules';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/analytics/reports/schedules \ --header 'x-api-key: <x-api-key>'The reports the member has emailed to them on a schedule, each with when it goes next, when it last went and why it didn’t if it failed.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
report
required
string
name
required
The report’s name, such as Traffic.
string
input
required
What the report reads, as its page or operation takes it.
object
key
additional properties
frequency
required
string
hour
required
The hour it goes, 0 to 23, on the workspace’s clock.
number
weekday
required
Weekly: 1 (Monday) to 7.
number | null
monthDay
required
Monthly: the day, 1 to 28.
number | null
paused
required
boolean
lastError
required
string | null
createdAt
required
string format: date-time
Example
{ "data": [ { "report": "traffic", "frequency": "daily" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}