Create Session
Authentication
Request
Restricted credentials/parameters to enforce during user login in the widget.
Response
200 OK
Flow Session created successfully
Restricted credentials/parameters to enforce during user login in the widget.
200 OK
Flow Session created successfully
Initialize a Spain Public Administration flow session to access government portals and retrieve public records.
This endpoint starts the flow lifecycle. Upon successful creation, it returns a session_id and a widget_url. Your frontend application must redirect the customer to the widget_url so they can log in and sign the consent form.
Once the customer completes the widget journey, a webhook notification is delivered (if configured), and the decrypted results can be downloaded using the Get Session Results endpoint.
This endpoint needs to be executed with an app secret, so should always be used in server side without exposing the secret to customers.