Get document dashboard

Get document dashboard. See the OpenAPI-defined parameters, request body, and responses below.

GET /Document/dashboard

Get 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

NameLocationTypeRequiredDescriptionConstraints
CreatedAtStartquerystring · date-timeNo——
CreatedAtEndquerystring · date-timeNo——

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

StatusDescriptionResponse body
200Sucesso ao retornar o dashboardapplication/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
PropertyTypeRequiredDescriptionConstraints
datestringNo—nullable
totalinteger · int32No——
newinteger · int32No——
inProgressinteger · int32No——
textExtractedinteger · int32No——
errorinteger · int32No——
completedinteger · int32No——
cancelledinteger · int32No——
DocumentDashboardDto
PropertyTypeRequiredDescriptionConstraints
totalinteger · int32No——
newinteger · int32No——
inProgressinteger · int32No——
approvedinteger · int32No——
rejectedinteger · int32No——
completedinteger · int32No——
cancelledinteger · int32No——
quantityPagesProcessedinteger · int32No——
successRatenumber · doubleNo——
dailyExecutionsarray<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.

  • quantityPagesProcessed sums QuantityPages for all filtered records regardless of status. It does not represent completed pages alone and does not replace a zero count with one page.
  • approved corresponds to text-extracted documents (TextExtracted); it does not establish human, legal or financial approval.
  • rejected corresponds 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.