List report schedules
/v1/report-schedulesReturns every report schedule the API key's user can see, with no paging.
Each schedule lists the users and roles it emails as assigneesIds, but not the other email addresses it sends to. For those, and for who may see and admin a schedule, use Get a report schedule, which returns the same users and roles as subscribers.assigneeIds.
assigneesIds and creatorAssigneeId are assignee ids. The snapshots a schedule has made are in List reports, with its reportScheduleId.
A schedule with a non-null skipped did not run when it was last due, and says why. It needs nothing from you: it runs again by itself once the reason has gone.
curl "https://api.eu.silktide.com/v1/report-schedules" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"reportSchedules": [
{
"reportScheduleId": 1,
"name": "Broken links report for Wine Barrel",
"reportTemplateId": "broken-links",
"context": {
"websiteId": 3,
"sectionId": 0
},
"emailSubject": "Monthly broken links",
"emailMessage": "Fix these first.",
"scheduleInterval": "month",
"schedulePeriod": 1,
"scheduleFromDate": 1793577600,
"durationInterval": "day",
"durationPeriod": 30,
"created": 1793520000,
"lastRun": 1796169600,
"nextDue": 1798761600,
"creatorAssigneeId": "u:eu-12",
"assigneesIds": [
"u:eu-12",
"g:4"
],
"skipped": null
}
]
}Request
No parameters.
Response
200JSON.
reportScheduleslist of objectsrequiredEvery report schedule the API key's user can see.
Show 17 fieldsHide fields
reportScheduleIdintegerrequiredat least 1The report schedule.
namestringrequiredat least 1 charactersIts name. The snapshots it makes are named from their template, not from this.
reportTemplateIdstringrequired1 to 16 charactersThe report template each snapshot is built from.
contextobject or map of any JSON or empty listrequiredWhat it covers, in the shape its
contextTypeIdtakes:{"websiteId": 3, "sectionId": 0}for one website,{"criteria": {...}}for several.[]when it has none.Show 2 fieldsHide fields
websiteIdintegerrequiredat least 1The website.
sectionIdintegerrequiredOne of its sections.
0for the whole website.
emailSubjectstringrequiredup to 255 charactersThe subject of the email subscribers get. Empty for the default, the snapshot's name followed by "is ready".
emailMessagestringrequiredup to 4096 charactersText at the top of the email subscribers get. Can be empty.
scheduleIntervalstringrequiredThe unit of how often it runs.
One of
dayweekmonthyearschedulePeriodintegerrequired1 to 90How many
scheduleIntervals apart runs are.weekand2runs every two weeks.scheduleFromDateintegerrequiredWhen the schedule counts from. Each run falls a whole number of periods after it.
durationIntervalstringrequiredThe unit of how far back each snapshot looks.
One of
dayweekmonthyeardurationPeriodintegerrequired1 to 90How many
durationIntervals back each snapshot looks, from when it runs.createdintegerrequiredWhen it was created.
lastRunintegerrequiredWhen it last made a snapshot.
0if never.nextDueintegerrequiredWhen it next runs. In the past when a run is waiting to be picked up.
creatorAssigneeIdstringrequiredThe assignee who created it: a user (
u:), an API key (a:), orsystemfor those Silktide made itself.skippedobjectrequiredcan be nullNull, or why its last due run made no snapshot and sent no email. It runs again by itself once the reason has gone.
Show 3 fieldsHide fields
atintegerrequiredWhen the run was due.
reasonstringrequiredWhy it was skipped, as a stable id:
no-platform-accesswhen the account has no active plan.messagestringrequiredcan be nullThe reason, in the API user's language. Null for a reason without one.
assigneesIdslist of stringsrequiredUsers and roles emailed when it runs, as assignee ids. Note the spelling:
assigneesIds, with an s.
Errors
| Status | Type | When |
|---|---|---|
| 403 | EditionNotAvailable | The account does not have Silktide 4. Reports, report schedules and report templates are Silktide 4's, so an account with only Silktide 5 cannot use them. |
| 401 | NotLoggedIn | No API key was sent, or it is not a key for this region.(any operation) |
| 429 | TooManyRequests | Too many requests to this path in five seconds. Retry after the number of seconds in the Retry-After header, which properties.retryAfter repeats.(any operation) |
| 503 | - | Silktide is busy. Retry after the number of seconds in the Retry-After header.(any operation) |
Every error has the same body. See Errors.
Access
- Permission
- Any user of the account
- Plan feature
- None
- Edition
- Silktide 4 only
- Cost
- Free
- Available since
- v1.0.0
Try it
Sends a real request to your account from this browser. Your key stays in this tab and goes only to the Silktide API.