Get document dashboard
Get document dashboard. See the OpenAPI-defined parameters, request body, and responses below.
/Document/dashboardGet document dashboard. See the OpenAPI-defined parameters, request body, and responses below.
OpenAPI description: Este endpoint retorna informações resumidas e estatísticas dos documentos para exibição em dashboard. Permite filtrar por período (createdAtStart e createdAtEnd).
Authentication
Authentication required. Send your user API key in the X-API-Key header.
Parameters
| Name | Location | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
CreatedAtStart | query | string · date-time | No | — | — |
CreatedAtEnd | query | string · date-time | No | — | — |
Request body
This operation does not accept a request body.
Example request
curl --request GET \
--url 'https://api.zild.ai/Document/dashboard?CreatedAtStart={CreatedAtStart}&CreatedAtEnd={CreatedAtEnd}' \
--header 'X-API-Key: YOUR_USER_API_KEY'
Responses
| Status | Description | Response body |
|---|---|---|
200 | Sucesso ao retornar o dashboard | application/json · DocumentDashboardDto |
Example response (200):
{
"total": 0,
"new": 0,
"inProgress": 0,
"approved": 0,
"rejected": 0,
"completed": 0,
"cancelled": 0,
"quantityPagesProcessed": 0,
"successRate": 0,
"dailyExecutions": [
{
"date": "string",
"total": 0,
"new": 0,
"inProgress": 0,
"textExtracted": 0,
"error": 0,
"completed": 0,
"cancelled": 0
}
]
}
Data models
DocumentDailyCountDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
date | string | No | — | nullable |
total | integer · int32 | No | — | — |
new | integer · int32 | No | — | — |
inProgress | integer · int32 | No | — | — |
textExtracted | integer · int32 | No | — | — |
error | integer · int32 | No | — | — |
completed | integer · int32 | No | — | — |
cancelled | integer · int32 | No | — | — |
DocumentDashboardDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
total | integer · int32 | No | — | — |
new | integer · int32 | No | — | — |
inProgress | integer · int32 | No | — | — |
approved | integer · int32 | No | — | — |
rejected | integer · int32 | No | — | — |
completed | integer · int32 | No | — | — |
cancelled | integer · int32 | No | — | — |
quantityPagesProcessed | integer · int32 | No | — | — |
successRate | number · double | No | — | — |
dailyExecutions | array<DocumentDailyCountDto> | No | — | nullable |
How to interpret the metrics
Filters use document creation dates. The start uses the beginning of the supplied day; the end includes the entire supplied day, up to the exclusive start of the next day. The daily series groups by creation date, not by processing completion time.
quantityPagesProcessedsumsQuantityPagesfor all filtered records regardless of status. It does not represent completed pages alone and does not replace a zero count with one page.approvedcorresponds to text-extracted documents (TextExtracted); it does not establish human, legal or financial approval.rejectedcorresponds to the error state (Error).successRate= (text extracted + completed) ÷ (text extracted + errors + completed + cancelled) × 100, rounded to two decimals. New and in-progress records do not enter this ratio. With no records in those four states, the result is zero.
Synthetic example: two text-extracted documents, one completed, one with an error and one cancelled produce a 60% success rate. A sixth, new document does not change that rate, but its recorded pages enter the page total. Do not treat the rate as an assessment of extracted-content quality or as an ROI metric.