Get a report
/v1/reports/{reportId}Returns one report, as List reports lists it. To read what the report shows, use Get a report's results.
Any user who can see the report can get it. When the API key's user can also admin it, the answer includes permissions: who may see and admin the report. For anyone else, permissions is left out.
POST /v1/reports/{reportId} answers exactly the same. It takes a JSON body and ignores it.
curl "https://api.eu.silktide.com/v1/reports/2" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"report": {
"reportId": 2,
"reportTemplateId": "accessibility-22",
"reportScheduleId": 0,
"contextTypeId": "website",
"name": "Wine Barrel WCAG 2.2",
"thumbnailUrl": "",
"startTime": 0,
"endTime": 0,
"durationInterval": "week",
"durationPeriod": 2,
"created": 1792953607,
"creatorAssigneeId": "u:eu-12",
"context": {
"websiteId": 3,
"sectionId": 0
},
"isLive": true,
"version": 3
},
"permissions": {
"components": [
{
"permissionId": "Report-ReportRead",
"componentType": "assignees",
"label": "Can see this dashboard / snapshot",
"description": null,
"inheritedPermissionIds": [
"Report-ReportAdmin",
"Report-ReportReadAll"
],
"models": []
},
{
"permissionId": "Report-ReportAdmin",
"componentType": "assignees",
"label": "Can admin this dashboard / snapshot",
"description": null,
"inheritedPermissionIds": [
"Report-ReportAdminAll"
],
"models": []
}
],
"componentValues": {
"Report-ReportRead": [
"u:eu-14"
],
"Report-ReportAdmin": []
},
"fixedValues": {
"Report-ReportRead": [],
"Report-ReportAdmin": [],
"Report-ReportReadAll": [
"g:2",
"u:eu-12"
],
"Report-ReportAdminAll": [
"g:2",
"u:eu-12"
]
}
}
}Request
Path parameters
reportIdintegerrequiredat least 1The report.
Response
200JSON.
reportobjectrequiredThe report.
Show 15 fieldsHide fields
reportIdintegerrequiredat least 1The report.
reportTemplateIdstringrequired1 to 16 charactersThe report template it is made from.
reportScheduleIdintegerrequiredThe report schedule that made it.
0when it was not made by a schedule.contextTypeIdstringrequiredWhat kind of thing it covers, copied from its template:
website,websites,accountorproperty.One of
websitewebsitesaccountpropertynamestringrequiredat least 1 charactersIts name.
thumbnailUrlstringrequiredA small screenshot of it. Empty until one is made, a few minutes after a snapshot is created.
startTimeintegerrequiredFor a snapshot, the start of the dates it covers.
0for a live report.endTimeintegerrequiredFor a snapshot, the end of the dates it covers.
0for a live report.durationIntervalstringrequiredThe unit of how far back it looks.
One of
dayweekmonthyeardurationPeriodintegerrequired0 to 90How many
durationIntervals back it looks.weekand4cover the last four weeks.createdintegerrequiredWhen it was created.
creatorAssigneeIdstringrequiredThe assignee who created it: a user (
u:), an API key (a:), orsystemfor those Silktide made itself.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.
isLivebooleanrequiredtruefor a live report (a dashboard), which is built afresh each time it is read.falsefor a snapshot, built once when it is created.versionintegerrequiredat least 1The version of the format it is stored in, which Silktide uses to upgrade older reports. Nothing to act on.
permissionsobjectWho may see and admin the report. Only when the API key's user can admin it.
Show 3 fieldsHide fields
componentslist of objectsrequiredThe permissions a report has: one to see it, one to admin it.
Show 6 fieldsHide fields
permissionIdstringrequiredThe permission, such as
Report-ReportRead.componentTypestringrequiredWhat can be given it.
assigneesfor users and roles.labelstringrequiredIts name, such as
Can see this dashboard / snapshot.descriptionstringrequiredcan be nullWhat it allows. Null for these permissions.
inheritedPermissionIdslist of stringsrequiredPermissions that include this one: anyone with those has this too.
modelslist of any JSONrequiredReserved. Empty for these permissions.
componentValuesmap of list of stringsrequiredWho was given each permission on this report directly, as assignee ids (
u:users,g:roles).fixedValuesmap of list of stringsrequiredWho has each permission from elsewhere, such as account-wide roles. Changed elsewhere, not here.
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. |
| 400 | InvalidRequest | reportId is not a whole number. properties.field is reportId. |
| 404 | ModelNotFound | No report with that id exists in the account. |
| 403 | AccessDenied | The report exists, but the API key's user cannot see it. |
| 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
- Can see this dashboard / snapshot
- 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.