Data models
A Spain Public Administration session reads what the administrations hold about your customer, and what it returns is their public position: the customer profile and one family per source you asked for — Social Security, the Banco de España, the DGT, the tax agency, the Cadastre, the education registries. A family you did not ask for is absent. These pages lay each model out flat, field by field, rendered from the live API specification.
Where the data arrives
The same models reach you by two routes:
- Get Session Results — whenever you ask, behind your application secret.
- The webhooks —
es-public-administration:endedwhen the session ends, andes-public-administration:partialwith what has arrived so far if your customer leaves while a source is still answering. Both are encrypted with the session’saes_key; without one, they carry no data and tell you to fetch it. Webhooks has the details.
The public position
Driver & vehicles family
The session envelope
The position travels as data inside the session results — the same object the partial and ended webhooks deliver — beside the consent your customer gave and the messages the session raised:
What the session has to say about itself and about the data it read, oldest first.
Most sessions say nothing and the list is empty. When it is not, each entry is a situation that
was detected while the session ran: an error or a warning about a read, an info note, or a
flag — the type raised for you. A flag never means something of ours failed; it means the
session found something worth a decision on your side, and location points at the part of this
document it is about.
A situation is reported ONCE however many times it occurred, so this list is a set of facts and
not a log: automate on message_id, which is stable, and treat message as text for a person.