Skip to content
Constaia

Templates

Set it up once. Reuse it everywhere.

Save which document you expect, which rules it must meet and how long it is kept. Use it in the API, in verification links and in the widget.

Fewer mistakes

Your whole team and your code use the same rules.

Changes without code

Adjust a rule in the dashboard and it applies from the next document onwards.

Ready to go

Your account includes sample templates for the most common cases.

What a template stores

  1. Which document you expect

    One or more types: ID card, passport, medical certificate…

  2. Which rules it must meet

    In date, less than 6 months old, in this person's name, over 18…

  3. What is kept

    Nothing, a few hours or until you delete it. And which data is stored.

  4. Who reviews

    Whether valid documents are approved automatically and which cases go to the review inbox.

Sample templates included

  • Valid ID card, holder over 18For sign-ups, rentals and age-restricted purchases.
  • Sports medical certificate less than 6 months oldFor licences and registrations.
  • Criminal record certificate with no recordsFor safeguarding checks on coaches and volunteers who work with children.
  • Bank transfer receiptAmount, payee and date of the payment.
  • InvoiceTax details, and net amount, VAT and total that add up.

Create templates through the API

And use them in any request with their identifier.

POST /v1/templates
curl https://api.constaia.com/v1/templates \
  -H "Authorization: Bearer $CONSTAIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Certificado médico deportivo < 6 meses",
    "expect": "medical_certificate_sport",
    "checks": { "max_age_days": 180, "fit_for_sport": true },
    "storage": "none",
    "review": { "require_human_for": ["review"] }
  }'

# Úsala en cualquier análisis, enlace o widget:
# { "template": "tpl_…" }  (las opciones de la petición mandan sobre la plantilla)

Frequently asked questions

What if a request comes with options that differ from the template?

The request's options take priority. The template sets the defaults.

How many templates can I have?

As many as you need, on every plan.

And for the record…

Create your free account and validate your first document in five minutes. No card required.