Get Report
GEThttps://api.confident-ai.com/v1/reports/{reportId}
Retrieves a single report by its reportId, with all of its sections.
curl -X GET "https://api.confident-ai.com/v1/reports/{reportId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"report": {
"id": "REPORT-ID",
"reportTemplateId": "REPORT-TEMPLATE-ID",
"status": "COMPLETED",
"error": null,
"metadata": {
"reportTitle": "Weekly Health Check",
"generatedAt": "2024-01-08T00:00:00.000Z"
},
"createdAt": "2024-01-08T00:00:00.000Z",
"updatedAt": "2024-01-08T00:00:00.000Z",
"sections": [
{
"id": "REPORT-SECTION-ID",
"type": "STAT_CARDS",
"heading": null,
"order": 0,
"content": {
"cards": [
{
"label": "Error Rate",
"value": "2.10%"
}
]
},
"error": null,
"startOnNewPage": null
}
]
}
},
"link": "https://app.confident-ai.com/project/PROJECT-ID/reports/REPORT-TEMPLATE-ID?reportId=REPORT-ID",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
reportIdstringRequiredThe id of the report.
Response
The requested report, and a link to read it in Confident AI.
successbooleanIndicates if the request was successful.
dataobjectThe report, including its sections.
Show 1 propertyHide 1 property
reportobjectShow 8 propertiesHide 8 properties
idstringThe id of the report.
reportTemplateIdstringThe report template this report was generated from. Null once that template has been deleted, which leaves the report unreachable.
statusenumThe report's generation state.
Show 3 enum valuesHide 3 enum values
IN_PROGRESSCOMPLETEDERRORED
errorstringWhy generation failed, when it did.
metadataobjectThe report's header information.
Show 4 propertiesHide 4 properties
reportTitlestringThe report's title.
descriptionstringOne line on what the report covers.
dateRangeobjectThe window a report describes, shown in its header.
Show 2 propertiesHide 2 properties
startDatestringThe start of the window, as an ISO 8601 timestamp.
endDatestringThe end of the window, as an ISO 8601 timestamp.
generatedAtstringWhen the report was written. Always set by Confident AI.
createdAtstringWhen the report was created.
updatedAtstringWhen the report was last updated.
sectionslist of objectsThe report's sections, ordered as they render.
Show 7 propertiesHide 7 properties
idstringThe id of the report section.
typeenumWhat this section renders as. Determines the shape of
content.Show 5 enum valuesHide 5 enum values
CONTENTSTAT_CARDSTABLEGRAPHADMONITION
headingstringThe heading rendered above the section.
orderintegerThe section's position in the report, starting at 0.
contentobjectThe section's content. Null when the generator has not authored it yet.
errorstringWhy this section failed to generate, when it did.
startOnNewPagebooleanWhether the section starts on a new page in the exported report.
linkstringThe URL where a person can read this report in Confident AI. Absent once the report's template has been deleted, which leaves it unreachable.
deprecatedbooleanIndicates if this endpoint is deprecated.