List Reports
GEThttps://api.confident-ai.com/v1/reports
Lists the generated reports in your Confident AI project, newest first, without their section content.
curl -X GET "https://api.confident-ai.com/v1/reports" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"reports": [
{
"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"
}
],
"nextCursor": null
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
reportTemplateIdstringOnly return reports generated from this report template.
statusenumOnly return reports with this status.
limitintegerHow many reports to return, between 1 and 100. Defaults to 20.
cursorstringThe
nextCursorreturned by a previous page.startDatestringOnly return reports created at or after this ISO 8601 timestamp.
endDatestringOnly return reports created at or before this ISO 8601 timestamp.
Response
A page of report overviews.
successbooleanIndicates if the request was successful.
dataobjectA page of report overviews.
Show 2 propertiesHide 2 properties
reportslist of objectsThe reports, newest first, without their section content.
Show 7 propertiesHide 7 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.
nextCursorstringPass as
cursorto fetch the next page. Null when there are no more.
deprecatedbooleanIndicates if this endpoint is deprecated.