On Flow Ended

View as Markdown
Triggered when the verification flow finishes. If an `aes_key` was provided during [Create Session](api:POST/es-public-administration/v1/manager/init), the extraction results inside the `data` payload will be delivered encrypted in `aes::Base64(IV + Ciphertext + Tag)` format. <Card title="Encrypted Payload" icon="fa-solid fa-key" href="/payload-encryption"> If you configured an `aes_key`, this payload is encrypted. View step-by-step decryption walkthrough and code templates in the **Payload Encryption** guide. </Card> If no `aes_key` was specified, the `data` payload is omitted (null), and you must retrieve the results manually using the session API. <Note title="This is the one that means finished"> The payload of this event carries **`is_closed: true`**. That field — not the arrival of any webhook, not the widget closing, not a `WAITING` status — is what tells you a session is over and its results are final. If you also subscribe to [On Partial Results](api:POST/es-public-administration:partial), you will have seen the same session earlier with `is_closed: false`. Branch on that field and you cannot get it wrong. </Note>