Create a validation and the link the customer opens
Changed onCreate a pending validation from the caller's own configuration and return its link.
The organization's own surface, reached server-to-server with an api-key, and the only one where the caller chooses validator_config — there the caller is the organization, so configuring its validation is its call.
The execution starts PENDING and nothing runs here, so the front begins from zero. The customer may open the link hours later, and a session token minted now would already be expired.
Idempotent while the execution is active, so a retried call hands back the same link rather than minting a second one — and a repeat is a 200 while only the first call is a 201.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/public/risk-flow-validator-executions
- AuthAPI key in header x-api-key
Request body
Example request
{
"external_reference_id": "order-99213",
"portal_url": "https://pagos.example.com",
"validator": "identity"
}Response
An execution was already active for that reference, so this call returned it and its link instead of minting a second one. The link is the frozen one: two calls that differ only in portal_url cannot produce two places to send the same customer, who may already be looking at the first link.
Example response
{
"expires_at": "2026-08-09T14:22:31Z",
"id_validator_execution": "rve_8f3kd0aQR7yA2sVpLmZ4wE1n",
"url": "https://pagos.example.com/identity-validator/rve_8f3kd0aQR7yA2sVpLmZ4wE1n"
}Changes
- info
endpoint added
- info