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:
| Prefix | What it is | What it sees |
|---|---|---|
az_test_… | Test key, from POST /v1/test-keys | The authorisations created with that key |
az_live_… | Live key, by writing to developers@autorizo.es | The authorisations created with that key |
azr_… | Results token of one authorisation, returned once at creation | Only 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 it | Nothing to do | POST /v1/test-keys, instant | Write to developers@autorizo.es |
| New authorisations | 3 per day per IP | 20 per day per key | Per key (500 per day by default) |
| Signatures per authorisation | 30 | 30 | 2,000 |
| Open for | Up to 7 days (default 7) | Up to 7 days (default 7) | Up to 90 days (default 30) |
| Deleted | 3 days after it closes or expires | 3 days after it closes or expires | 365 days after it closes or expires, or on DELETE |
| Links in the text | Removed | Removed | Kept as plain text |
Webhook and metadata | No | Yes | Yes |
platform verification | No | No | Yes, 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 fromcodigo@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 recordsverified_by: "email_code"andverified_email. - **
platform** (live keys only, and only withfamilies). Your platform vouches that the person opening each family's link is its logged-in user, so no code is sent. The signature recordsverified_by: "platform"and the family'sreference. 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'sreference. - 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_hashidentifies the exact document, and each signature has anevidence_hashand aprevious_hashthat 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}, wheredrawing_hashis the SHA-256 of the drawn signature's path andseqis the signature's sequence number.previous_hash: the previous signature'sevidence_hash. On the first signature it is the authorisation'sdocument_hash.
The results PDF marks each signature "Comprobada" (checked) when its hash still matches.
Endpoints
| Method | Path | Auth | What it does |
|---|---|---|---|
| POST | /v1/test-keys | None (5 per day per IP) | Creates a test key |
| POST | /v1/authorizations | Key or none | Creates an authorisation |
| GET | /v1/authorizations | Key | Lists the key's authorisations, newest first |
| GET | /v1/authorizations/{id} | Key or results token | Returns one authorisation |
| GET | /v1/authorizations/{id}/signatures | Key or results token | Lists its signatures |
| GET | /v1/authorizations/{id}/results.pdf | Key or results token | Results PDF |
| GET | /v1/authorizations/{id}/results.csv | Key or results token | Results CSV |
| POST | /v1/authorizations/{id}/close | Key or results token | Stops accepting signatures |
| DELETE | /v1/authorizations/{id} | Key or results token | Deletes 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:
| Field | Type | Notes |
|---|---|---|
organiser_name | string, up to 120 | Required. Who asks for the authorisation |
title | string, up to 160 | Required |
text | string, up to 4000 | Required. Plain text: a blank line separates paragraphs and a single newline is a line break. Links are removed in free and test modes |
questions | array, up to 10 | Optional. Each: label (up to 200), type (yes_no or text), required (boolean, default true) |
ask_child_name | boolean | Default true. Asks for the child's name |
families | array, up to max_signatures | Optional. Each: label (up to 120), reference (up to 120), email. Creates one link per family |
expected_emails | array of emails, up to max_signatures | Optional, open link only. Only these addresses can verify |
verification | email_code or platform | Default email_code. platform only with a live key and families |
max_signatures | integer | Default: the mode's cap; with families, the number of families |
open_days | integer, 1 or more | Default 7 (free and test) or 30 (live), capped by the mode |
locale | es, ca or en | Default es. Language of the signing page |
webhook_url | https URL | Keys only |
metadata | object | Keys only. Up to 20 keys; string values up to 500 characters |
Validation:
- An unknown field returns
400 invalid_request. - More
familiesorexpected_emailsthanmax_signaturesreturns400 invalid_request. max_signaturesoropen_daysabove the mode's cap returns409 limit_reached.webhook_urlormetadatain free mode returns403 forbidden.- Going over the daily new authorisations returns
429 rate_limitedwithRetry-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: theidof 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
| Field | Type | What it is |
|---|---|---|
id | string | Identifier, starts with auz_ |
object | string | Always authorization |
mode | string | free, test or live |
status | string | open while it accepts signatures, closed once closed, expired after opens_until |
locale | string | es, ca or en: language of the signing page |
organiser | object | { "name": "…" }, the organiser |
title | string | Title |
text | string | Text of the authorisation, plain text |
questions | array | Questions: id (key in answers, for example q1), label, type (yes_no or text), required |
ask_child_name | boolean | Whether the signing page asks for the child's name |
signing | object | { "type": "open_link", "url": "…" } for an open link, or { "type": "per_family" } for one link per family |
families | array or null | With one link per family: a list of Family objects. Otherwise null |
verification | string | email_code or platform |
expected_emails | array or null | The expected emails, if you sent them |
max_signatures | integer | Maximum number of signatures |
signature_count | integer | Signatures received |
authorized_count | integer | Signatures that authorise |
declined_count | integer | Signatures that do not authorise |
results_url | string or null | Results 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_at | string | Creation time (ISO 8601, UTC) |
opens_until | string | Until when it accepts signatures |
closed_at | string or null | When it was closed |
deletes_at | string | When everything is deleted |
document_hash | string | Hex SHA-256 of the document |
webhook_url | string or null | The webhook URL, if you sent one |
metadata | object | Your key-value pairs (keys only) |
results_token | string | azr_…. Only in the create response |
webhook_secret | string | Webhook 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
}
| Field | Type | What it is |
|---|---|---|
id | string | Identifier, starts with fam_ |
label | string or null | The name you give it, for example "Familia García" |
reference | string or null | Your identifier for the family on your platform |
email | string or null | The only email that can verify on that link, if you sent one |
url | string | That family's signing link |
signed | boolean | Whether it has signed |
The Signature object
| Field | Type | What it is |
|---|---|---|
id | string | Identifier, starts with sig_ |
object | string | Always signature |
authorization_id | string | The authorisation signed |
family_id | string or null | The family, if the authorisation has one link per family |
reference | string or null | That family's reference |
decision | string | authorize ("Autorizo") or decline ("No autorizo") |
signer_name | string | The signer's name |
relationship | string | madre (mother), padre (father), tutor_legal (legal guardian) or otro (other) |
child_name | string or null | The child's name, if asked |
answers | object | Answers by question id: yes or no for yes_no, text up to 500 characters for text |
verified_by | string | email_code or platform |
verified_email | string or null | The email verified with the code, with email_code. null with platform verification |
signed_at | string | Time of signing (ISO 8601, UTC) |
evidence_hash | string | Hex SHA-256 of this signature's evidence |
previous_hash | string | The previous signature's evidence_hash; on the first signature, the document_hash |
webhook | string or null | Webhook 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"
}
}
code | HTTP | When |
|---|---|---|
invalid_request | 400 | The body or the parameters are not valid, there is an unknown field, or there are more families or expected_emails than max_signatures |
unauthorized | 401 | The token is missing or not valid |
forbidden | 403 | The token has no access to that authorisation, or webhook_url or metadata was sent in free mode |
not_found | 404 | The authorisation does not exist or has been deleted |
closed | 409 | The authorisation is closed or expired |
limit_reached | 409 | max_signatures or open_days above the mode's cap; at signing, the authorisation is full or that family's link is already signed |
rate_limited | 429 | A request limit was hit, such as the daily new authorisations; wait the seconds in Retry-After |
unavailable | 503 | This feature is not open on the service yet (for example, email-code signing); write to developers@autorizo.es |
internal | 500 | Our 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>, wherev1is the HMAC-SHA256 of"<t>.<raw body>"keyed with yourwebhook_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
webhookfield inGET …/signatures(delivered 200,failed <HTTP status>,failed timeoutorfailed network). - Answer with a
2xxright away. If your server does not answer, read the signatures withGET …/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.