Skip to content
Constaia
generic

Any other document

Any document, with your own extraction schema.

Category
Other
Country
International
Extracted fields
0 fields
Cost
1 credit
genericspecimen

If your document is not in the catalogue, use the generic type and pass a JSON Schema in extract. Constaia returns the fields with confidence and their position in the document.

What it checks

No type-specific deterministic validators: your checks apply (required fields, dates, holder).

Extracted fields

    Sample request

    curl https://api.constaia.com/v1/analyze \
      -H "Authorization: Bearer $CONSTAIA_API_KEY" \
      -F "file=@document.pdf" \
      -F 'options={
        "expect": "generic",
        "checks": {},
        "storage": "none"
      }'

    Sample response

    Fictitious data. Shortened response.

    200 OK · application/json
    {
      "id": "an_01J9Z3K8QW4T6Y2B7N5M1R0PXC",
      "object": "analysis",
      "status": "completed",
      "livemode": false,
      "document": {
        "type": "generic",
        "label": "Any other document",
        "confidence": 0.97
      },
      "verdict": {
        "expected": [
          "generic"
        ],
        "match": true,
        "status": "valid",
        "reasons": [
          {
            "code": "type_match",
            "severity": "info",
            "message": "The document is: Any other document."
          }
        ]
      },
      "fields": {
        "title": {
          "value": "Acta de la asamblea general",
          "confidence": 0.99,
          "validated": true
        },
        "date": {
          "value": "2026-06-20",
          "confidence": 0.98,
          "validated": null
        }
      },
      "checks": [],
      "warnings": [],
      "storage": {
        "mode": "none",
        "file_deleted_at": "2026-09-29T10:00:02Z",
        "expires_at": null
      },
      "usage": {
        "credits": 1,
        "pages": 1
      }
    }

    FAQ

    Does Constaia prove the document is authentic?

    No. It checks the type, data consistency and your rules, and flags signals such as a possible edit or a screen photo. That does not prove authenticity.

    Is a copy of the document kept?

    No, unless you ask for it. With storage "none" (the default) the file is deleted when the analysis ends.

    And for the record…

    Create your account, copy the test key and validate your first document in five minutes.