Prefill onboarding data through the API

Beta

This feature is in beta. For now it is available only to some users. We will release it gradually to more accounts once testing ends. If you want to use it, ask your JAAK contact for access.

Description

Your system already has the customer's data: name, RFC, address, client number. When you create the send you can pass it to JAAK so the signer receives the document with those fields filled in. The signer only reviews, ticks what is theirs and signs.

This guide applies to templates with form fields, such as those the AI creates from a PDF. For templates written with tags see Templates with tags.

How data relates to fields

Mapping is done by field name. The name of a field is the one it has in the template, for example Nombre, RFC or Numero de cliente. To see the names, read the template (GET /api/v1/templates/{id}) or its AI proposal.

Each signer carries a fields list. Each item has:

FieldDescription
nameExact name of the field in the template.
default_valueThe value the field arrives with. At most 10,000 characters.
readonlyIf true, the field is marked read-only for the signer.

One value fills every field with the same name

If several template fields share a name, a single value fills all of them. This is the case of a data item in a header repeated on many pages: send Numero de cliente once and it appears on every page.

Dates split in day, month and year

If the contract shows the date split in three spaces, the template has three fields. Send three values, one per field. For example, Fecha dia, Fecha mes and Fecha anio with 22, noviembre and 2026. Use the names your template has.

What to send and what not to send

Kind of dataWho defines itHow it is sent
Fixed value of the company (for example legal name and representative)Your companyIt can stay as a default value in the template or be sent on each send.
Data per customer (name, RFC, client number)Your onboarding systemIn fields, with default_value.
Signer's choice (checkboxes ☐, for example Actúa por cuenta propia: Sí)The signerNot sent. The signer ticks the checkboxes while signing.

Read-only fields

A field prefilled with readonly: true appears filled in and the signer cannot change it. The server also rejects any attempt to change it while signing. Use readonly for data your system already validated, such as the RFC.

If you do not send readonly, the signer sees the value and can correct it.

Full example

The send uses POST /api/v1/submissions. The signer EL CLIENTE receives name, RFC and client number. The client number is repeated in the header of several pages and is filled with a single value.

curl -X POST https://signa.sandbox.jaak.ai/api/v1/submissions \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": 1234,
    "send_email": false,
    "submitters": [
      {
        "role": "EL CLIENTE",
        "name": "Ana Ejemplo Pérez",
        "email": "ana.ejemplo@ejemplo.com",
        "fields": [
          { "name": "Nombre", "default_value": "Ana Ejemplo Pérez", "readonly": true },
          { "name": "RFC", "default_value": "XAXX010101000", "readonly": true },
          { "name": "Numero de cliente", "default_value": "000123", "readonly": true },
          { "name": "Fecha dia", "default_value": "22" },
          { "name": "Fecha mes", "default_value": "noviembre" },
          { "name": "Fecha anio", "default_value": "2026" }
        ]
      },
      {
        "role": "INVERSIONES DEMO",
        "name": "Representante Demo",
        "email": "representante@ejemplo.com"
      }
    ]
  }'

send_email: false avoids sending the email while you test in sandbox.

Errors

SituationResponse
A field name does not exist in the template400. The message lists the names once, in order: los campos ["Nombre cliente"] no existen en la plantilla "Demo services contract". The send is not created.
A value is over 10,000 characters400: el valor prellenado del campo "Nombre" excede 10000 caracteres.
The signer tries to change a read-only fieldThe server rejects the change.

Error messages name fields and never include values.

Next steps