API reference

Autorizo API is a JSON REST API at https://developers.autorizo.es/v1. It creates authorisations for minors, returns signing links and delivers every signature with its evidence chain. The OpenAPI specification is at /openapi.json.

Authentication

Send Authorization: Bearer <token>. There are three kinds of token:

PrefixWhat it isWhat it sees
az_test_…Test key, from POST /v1/test-keysThe authorisations created with that key
az_live_…Live key, by writing to developers@autorizo.esThe authorisations created with that key
azr_…Results token of one authorisation, returned once at creationOnly that authorisation

POST /v1/authorizations with no Authorization header creates the authorisation in free mode. To manage it afterwards, use its results_token as the bearer token. Keys are stored as their SHA-256 hash: if you lose one, get a new one. Test keys do not expire.

The API answers with open CORS (Access-Control-Allow-Origin: *) on /v1 and /mcp. Even so, call it from your server so your key never reaches the browser.

Modes and limits

Free (no key)Test (az_test_…)Live (az_live_…)
How to get itNothing to doPOST /v1/test-keys, instantWrite to developers@autorizo.es
New authorisations3 per day per IP20 per day per keyPer key (500 per day by default)
Signatures per authorisation30302,000
Open forUp to 7 days (default 7)Up to 7 days (default 7)Up to 90 days (default 30)
Deleted3 days after it closes or expires3 days after it closes or expires365 days after it closes or expires, or on DELETE
Links in the textRemovedRemovedKept as plain text
Webhook and metadataNoYesYes
platform verificationNoNoYes, with families
Mark on the signing page"Hecho con Autorizo""Hecho con Autorizo" and "PRUEBA — sin validez", because it is test data from your integration"Hecho con Autorizo"

How the signer is verified

Autorizo never sends invitations. You share the signing link through your own channels. Each authorisation has a verification mode (verification):

  • **email_code** (the default, and the only one in free and test modes). On the signing page, the signer types their email and receives a 6-digit code from codigo@autorizo.app. The code is valid for 10 minutes and allows 5 tries. The email has a fixed subject and carries only the code, the organiser's name and the title, with no links. Once the code is entered, they sign. The signature records verified_by: "email_code" and verified_email.
  • **platform** (live keys only, and only with families). Your platform vouches that the person opening each family's link is its logged-in user, so no code is sent. The signature records verified_by: "platform" and the family's reference. Show each link only to that family's person.

To restrict who can receive a code:

  • With expected_emails (open link), only those addresses can verify.
  • With families[].email (one link per family), only that address can verify on that link.

An address that is not on the list receives nothing and sees an error. Code sending limits: 3 per email per hour, 10 per IP per hour, and per link no more than twice its remaining signatures per hour. The signing page also has an anti-bot check.

Evidence on every signature

Every signature, in every mode, carries the same evidence:

  • The email verified with the code, or the platform's word (verified_by: "platform") with the family's reference.
  • The signer's name and relationship to the child.
  • The drawn signature.
  • The time, the IP address and the user agent.
  • A hash chain: document_hash identifies the exact document, and each signature has an evidence_hash and a previous_hash that links it to the signature before it.

This is a simple electronic signature (eIDAS, article 25.1). Limits change between modes; the evidence does not.

How the hashes are computed

Every hash is the hex SHA-256 of canonical JSON: keys sorted, strings in Unicode NFC, no spaces.

  • document_hash: of the authorisation's {id, organiser_name, title, text, questions, ask_child_name, locale, created_at}.
  • evidence_hash: of {authorization_id, document_hash, signature_id, seq, family_id, reference, decision, signer_name, relationship, child_name, answers, drawing_hash, verified_by, verified_email, ip, user_agent, signed_at, previous_hash}, where drawing_hash is the SHA-256 of the drawn signature's path and seq is the signature's sequence number.
  • previous_hash: the previous signature's evidence_hash. On the first signature it is the authorisation's document_hash.

The results PDF marks each signature "Comprobada" (checked) when its hash still matches.

Endpoints

MethodPathAuthWhat it does
POST/v1/test-keysNone (5 per day per IP)Creates a test key
POST/v1/authorizationsKey or noneCreates an authorisation
GET/v1/authorizationsKeyLists the key's authorisations, newest first
GET/v1/authorizations/{id}Key or results tokenReturns one authorisation
GET/v1/authorizations/{id}/signaturesKey or results tokenLists its signatures
GET/v1/authorizations/{id}/results.pdfKey or results tokenResults PDF
GET/v1/authorizations/{id}/results.csvKey or results tokenResults CSV
POST/v1/authorizations/{id}/closeKey or results tokenStops accepting signatures
DELETE/v1/authorizations/{id}Key or results tokenDeletes everything now

POST /v1/test-keys

Creates a test key instantly, with no sign-up. At most 5 per day per IP.

curl -X POST https://developers.autorizo.es/v1/test-keys

Response 201:

{
  "key": "az_test_…",
  "mode": "test",
  "limits": {
    "creations_per_day": 20,
    "max_signatures": 30,
    "max_open_days": 7,
    "deleted_days_after_close": 3
  },
  "note": "…"
}

limits describes the key's limits: new authorisations per day, signatures per authorisation, maximum days open, and days until deletion after it closes or expires. note is an informative text. Test keys do not expire.

POST /v1/authorizations

Creates an authorisation. With no Authorization header, in free mode; with a key, in the key's mode.

Body:

FieldTypeNotes
organiser_namestring, up to 120Required. Who asks for the authorisation
titlestring, up to 160Required
textstring, up to 4000Required. Plain text: a blank line separates paragraphs and a single newline is a line break. Links are removed in free and test modes
questionsarray, up to 10Optional. Each: label (up to 200), type (yes_no or text), required (boolean, default true)
ask_child_namebooleanDefault true. Asks for the child's name
familiesarray, up to max_signaturesOptional. Each: label (up to 120), reference (up to 120), email. Creates one link per family
expected_emailsarray of emails, up to max_signaturesOptional, open link only. Only these addresses can verify
verificationemail_code or platformDefault email_code. platform only with a live key and families
max_signaturesintegerDefault: the mode's cap; with families, the number of families
open_daysinteger, 1 or moreDefault 7 (free and test) or 30 (live), capped by the mode
localees, ca or enDefault es. Language of the signing page
webhook_urlhttps URLKeys only
metadataobjectKeys only. Up to 20 keys; string values up to 500 characters

Validation:

  • An unknown field returns 400 invalid_request.
  • More families or expected_emails than max_signatures returns 400 invalid_request.
  • max_signatures or open_days above the mode's cap returns 409 limit_reached.
  • webhook_url or metadata in free mode returns 403 forbidden.
  • Going over the daily new authorisations returns 429 rate_limited with Retry-After.
curl https://developers.autorizo.es/v1/authorizations \
  -H "Authorization: Bearer az_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "organiser_name": "Grupo Scout Ejemplo",
    "title": "Salida al Montseny, sábado 13 de diciembre",
    "text": "Autorizo a mi hijo/a a participar en la salida al Montseny del sábado 13 de diciembre.",
    "questions": [{ "label": "¿Puede salir en fotos del grupo?", "type": "yes_no" }],
    "open_days": 7,
    "locale": "es",
    "webhook_url": "https://your-platform.example.com/webhooks/autorizo",
    "metadata": { "event": "montseny-trip" }
  }'

Response 201: the Authorization object (described below) plus results_token and, if you sent webhook_url, webhook_secret. Both appear only in this response. results_url is filled in here as well.

{
  "id": "auz_7KQ2M9X4TB8RJH3N",
  "object": "authorization",
  "mode": "test",
  "status": "open",
  "locale": "es",
  "organiser": { "name": "Grupo Scout Ejemplo" },
  "title": "Salida al Montseny, sábado 13 de diciembre",
  "text": "Autorizo a mi hijo/a a participar en la salida al Montseny del sábado 13 de diciembre.",
  "questions": [
    { "id": "q1", "label": "¿Puede salir en fotos del grupo?", "type": "yes_no", "required": true }
  ],
  "ask_child_name": true,
  "signing": { "type": "open_link", "url": "https://autorizo.app/f/…" },
  "families": null,
  "verification": "email_code",
  "expected_emails": null,
  "max_signatures": 30,
  "signature_count": 0,
  "authorized_count": 0,
  "declined_count": 0,
  "results_url": "https://autorizo.app/r/…",
  "created_at": "2026-12-03T10:00:00.000Z",
  "opens_until": "2026-12-10T10:00:00.000Z",
  "closed_at": null,
  "deletes_at": "2026-12-13T10:00:00.000Z",
  "document_hash": "9c1f…",
  "webhook_url": "https://your-platform.example.com/webhooks/autorizo",
  "metadata": { "event": "montseny-trip" },
  "results_token": "azr_…",
  "webhook_secret": "…"
}

GET /v1/authorizations

Lists the authorisations created with your key, newest first. Keys only.

Parameters:

  • limit: how many to return, 20 by default and up to 100.
  • starting_after: the id of the last authorisation on the previous page, to get the next one.
curl "https://developers.autorizo.es/v1/authorizations?limit=20" \
  -H "Authorization: Bearer az_test_…"
curl "https://developers.autorizo.es/v1/authorizations?limit=20&starting_after=auz_7KQ2M9X4TB8RJH3N" \
  -H "Authorization: Bearer az_test_…"

Response 200: { "object": "list", "data": [...], "has_more": true }. When has_more is true, get the next page with starting_after set to the id of the last authorisation in data. With a key, results_url is null on every authorisation.

GET /v1/authorizations/{id}

Returns one authorisation with its status and counts.

curl https://developers.autorizo.es/v1/authorizations/auz_7KQ2M9X4TB8RJH3N \
  -H "Authorization: Bearer azr_…"

Response 200: the Authorization object, without results_token or webhook_secret. results_url is filled in when you authenticate with the results token, and is null with a key, because the token is stored only as a hash.

GET /v1/authorizations/{id}/signatures

Lists the authorisation's signatures.

curl https://developers.autorizo.es/v1/authorizations/auz_7KQ2M9X4TB8RJH3N/signatures \
  -H "Authorization: Bearer azr_…"

Response 200:

{
  "object": "list",
  "data": [
    {
      "id": "sig_…",
      "object": "signature",
      "authorization_id": "auz_7KQ2M9X4TB8RJH3N",
      "family_id": null,
      "reference": null,
      "decision": "authorize",
      "signer_name": "Laura Pérez",
      "relationship": "madre",
      "child_name": "Martí",
      "answers": { "q1": "yes" },
      "verified_by": "email_code",
      "verified_email": "laura@example.com",
      "signed_at": "2026-12-03T10:05:00.000Z",
      "evidence_hash": "4b7e…",
      "previous_hash": "9c1f…",
      "webhook": "delivered 200"
    }
  ]
}

Each signature's webhook field is the result of the webhook delivery: "delivered 200", "failed <HTTP status>", "failed timeout", "failed network", or null when there is no webhook.

GET /v1/authorizations/{id}/results.pdf

Returns a PDF with the document, a summary and one evidence block per signature.

curl -o results.pdf https://developers.autorizo.es/v1/authorizations/auz_7KQ2M9X4TB8RJH3N/results.pdf \
  -H "Authorization: Bearer azr_…"

GET /v1/authorizations/{id}/results.csv

Returns a CSV with one row per signature.

curl -o results.csv https://developers.autorizo.es/v1/authorizations/auz_7KQ2M9X4TB8RJH3N/results.csv \
  -H "Authorization: Bearer azr_…"

POST /v1/authorizations/{id}/close

Stops accepting signatures. The signatures collected stay until deletes_at, which counts from the close. Response 200: the Authorization object with status: "closed" and closed_at. If it was already closed or expired, it returns 409 closed.

curl -X POST https://developers.autorizo.es/v1/authorizations/auz_7KQ2M9X4TB8RJH3N/close \
  -H "Authorization: Bearer azr_…"

DELETE /v1/authorizations/{id}

Deletes the authorisation, its links and all its signatures right away. Response 204 with no body.

curl -X DELETE https://developers.autorizo.es/v1/authorizations/auz_7KQ2M9X4TB8RJH3N \
  -H "Authorization: Bearer azr_…"

The Authorization object

FieldTypeWhat it is
idstringIdentifier, starts with auz_
objectstringAlways authorization
modestringfree, test or live
statusstringopen while it accepts signatures, closed once closed, expired after opens_until
localestringes, ca or en: language of the signing page
organiserobject{ "name": "…" }, the organiser
titlestringTitle
textstringText of the authorisation, plain text
questionsarrayQuestions: id (key in answers, for example q1), label, type (yes_no or text), required
ask_child_namebooleanWhether the signing page asks for the child's name
signingobject{ "type": "open_link", "url": "…" } for an open link, or { "type": "per_family" } for one link per family
familiesarray or nullWith one link per family: a list of Family objects. Otherwise null
verificationstringemail_code or platform
expected_emailsarray or nullThe expected emails, if you sent them
max_signaturesintegerMaximum number of signatures
signature_countintegerSignatures received
authorized_countintegerSignatures that authorise
declined_countintegerSignatures that do not authorise
results_urlstring or nullResults page. It carries the results token: anyone holding the link sees the results. Filled in on the create response and when you authenticate with the results token; null with a key
created_atstringCreation time (ISO 8601, UTC)
opens_untilstringUntil when it accepts signatures
closed_atstring or nullWhen it was closed
deletes_atstringWhen everything is deleted
document_hashstringHex SHA-256 of the document
webhook_urlstring or nullThe webhook URL, if you sent one
metadataobjectYour key-value pairs (keys only)
results_tokenstringazr_…. Only in the create response
webhook_secretstringWebhook secret. Only in the create response, if you sent webhook_url

The Family object

With families in the request, each family gets its own link, which takes one signature.

{
  "id": "fam_…",
  "label": "Familia García",
  "reference": "your-id-42",
  "email": "garcia@example.com",
  "url": "https://autorizo.app/f/…",
  "signed": false
}
FieldTypeWhat it is
idstringIdentifier, starts with fam_
labelstring or nullThe name you give it, for example "Familia García"
referencestring or nullYour identifier for the family on your platform
emailstring or nullThe only email that can verify on that link, if you sent one
urlstringThat family's signing link
signedbooleanWhether it has signed

The Signature object

FieldTypeWhat it is
idstringIdentifier, starts with sig_
objectstringAlways signature
authorization_idstringThe authorisation signed
family_idstring or nullThe family, if the authorisation has one link per family
referencestring or nullThat family's reference
decisionstringauthorize ("Autorizo") or decline ("No autorizo")
signer_namestringThe signer's name
relationshipstringmadre (mother), padre (father), tutor_legal (legal guardian) or otro (other)
child_namestring or nullThe child's name, if asked
answersobjectAnswers by question id: yes or no for yes_no, text up to 500 characters for text
verified_bystringemail_code or platform
verified_emailstring or nullThe email verified with the code, with email_code. null with platform verification
signed_atstringTime of signing (ISO 8601, UTC)
evidence_hashstringHex SHA-256 of this signature's evidence
previous_hashstringThe previous signature's evidence_hash; on the first signature, the document_hash
webhookstring or nullWebhook delivery result: delivered 200, failed <HTTP status>, failed timeout or failed network; null when there is no webhook

Errors

Errors return this body with the matching HTTP status. Messages are in English:

{
  "error": {
    "code": "invalid_request",
    "message": "title is required"
  }
}
codeHTTPWhen
invalid_request400The body or the parameters are not valid, there is an unknown field, or there are more families or expected_emails than max_signatures
unauthorized401The token is missing or not valid
forbidden403The token has no access to that authorisation, or webhook_url or metadata was sent in free mode
not_found404The authorisation does not exist or has been deleted
closed409The authorisation is closed or expired
limit_reached409max_signatures or open_days above the mode's cap; at signing, the authorisation is full or that family's link is already signed
rate_limited429A request limit was hit, such as the daily new authorisations; wait the seconds in Retry-After
unavailable503This feature is not open on the service yet (for example, email-code signing); write to developers@autorizo.es
internal500Our error; try again and, if it repeats, write to us

Webhook

With a key and webhook_url, every new signature is sent as a JSON POST:

{
  "type": "signature.created",
  "created_at": "2026-12-03T10:05:01.000Z",
  "authorization_id": "auz_7KQ2M9X4TB8RJH3N",
  "data": {
    "id": "sig_…",
    "object": "signature",
    "authorization_id": "auz_7KQ2M9X4TB8RJH3N",
    "family_id": null,
    "reference": null,
    "decision": "authorize",
    "signer_name": "Laura Pérez",
    "relationship": "madre",
    "child_name": "Martí",
    "answers": { "q1": "yes" },
    "verified_by": "email_code",
    "verified_email": "laura@example.com",
    "signed_at": "2026-12-03T10:05:00.000Z",
    "evidence_hash": "4b7e…",
    "previous_hash": "9c1f…",
    "webhook": null
  }
}
  • Header Autorizo-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of "<t>.<raw body>" keyed with your webhook_secret.
  • The URL must be HTTPS on port 443 and resolve to a public address: if it points to a private, local or metadata network, nothing is sent (failed network). Redirects are not followed.
  • A single attempt with a 5-second timeout. The result is kept in the signature's webhook field in GET …/signatures (delivered 200, failed <HTTP status>, failed timeout or failed network).
  • Answer with a 2xx right away. If your server does not answer, read the signatures with GET …/signatures.

Verification code for Node.js and Python is in the quickstart.

MCP server

The same service is available as an MCP server at https://developers.autorizo.es/mcp. See MCP server.