Verification API
After a user completes KYC, you receive verification results via webhooks or by polling GET /v1/verifications/{sessionId} with your secret key — see Direct API → Getting the result.
Verification Object
GET /v1/verifications/{sessionId} returns the session and its latest attempt:
{"sessionId": "cm5abc123def456","status": "completed","testMode": false,"clientMetadata": { "email": "user@example.com", "userId": "user_123" },"createdAt": "2026-01-15T12:00:00.000Z","expiresAt": "2026-01-15T12:30:00.000Z","updatedAt": "2026-01-15T12:05:00.000Z","redactedAt": null,"verification": {"id": "atm_1a2b3c4d5e","status": "success","confidence": 0.98,"documentType": "id_card","faceMatchStatus": "MATCHED","faceMatchScore": 0.82,"poaStatus": null,"failureReason": null,"isReused": false,"extractedData": {"fullName": "John Doe","firstName": "John","lastName": "Doe","dateOfBirth": "1990-05-15","documentNumber": "L01X00T47","nationality": "DE","sex": "M","issueDate": "2019-05-15","expiryDate": "2029-05-14","placeOfBirth": "BERLIN"},"aml": null,"createdAt": "2026-01-15T12:04:00.000Z"}}
verification is null until processing has produced an attempt. aml is always present inside it: null when AML screening did not run, otherwise the summary (status, provider, checkedAt, totalHits, matchedHits, clearedHits, confirmedHits, categories). Hit details are available only in the dashboard. The full field list and the polling flow are in Direct API → Getting the result.
redactedAt is null while the personal data is kept. After you delete the data it holds the time of deletion, and clientMetadata and verification.extractedData are null. The status, dates, documentType, scores and the AML summary counts are still returned.
Delete Verification Data
DELETE /v1/verifications/{sessionId}
Deletes the personal data of one decided verification, for example when your user asks you to erase it. Authenticate with your secret key, like the GET above. The same action is available in the dashboard as Delete data on the verification page (Owner and Admin roles).
curl -X DELETE https://api.flonk.id/v1/verifications/cm5abc123def456 \-H "Authorization: Bearer $FLONK_SECRET_KEY"
Response
{"id": "cm5abc123def456","status": "completed","redactedAt": "2026-11-19T12:00:00.000Z"}
What is deleted
- Document images, the selfie and any proof-of-address file
- Extracted document data (name, date of birth, document number, address and the rest)
clientMetadatayou sent when creating the session- AML screening hit details
- The stored copies of the webhook payloads sent for this verification, and the response texts your endpoint returned to them (the HTTP status code stays). Deliveries that were not sent yet are cancelled and cannot be resent
- A Flonk.id vault entry created from this verification: it is revoked immediately and can no longer be reused. Its stored files are removed when no other verification that reused it remains. If other verifications still use it, the files go when the data of the last of them is deleted
What stays
- The verification record: its
id,status, dates anddocumentType - Scores and statuses of each check (
confidence,faceMatchStatus,poaStatus) - AML summary counts
- Billing and usage records
- In the dashboard, the history of actions on the verification, with a
data_erasedentry. The API does not return this history.
Deletion cannot be undone. The status does not change and no webhook is sent.
After deletion
The verification is frozen. On the public API these calls are refused with 409:
| Call | Error |
|---|---|
POST /v1/verifications/{sessionId}/documents | KYC_046 |
POST /v1/verifications/{sessionId}/face | KYC_046 |
POST /v1/verifications/{sessionId}/submit | KYC_046 |
POST /v1/verifications/{sessionId}/device-data | KYC_046 |
PATCH /v1/sessions/{sessionId} | { "code": "verification_erased", "errorCode": "KYC_046", "message": "…" } |
GET /v1/verifications/{sessionId} and GET /v1/sessions/{sessionId} still answer, without personal data. The dashboard also stops all changes to the verification.
Repeating the call
The call is idempotent. Deleting data that is already deleted returns 200 with the original redactedAt. It deletes again anything written late by work that was still running at the first call, and finishes any file cleanup an earlier call could not complete, so it is safe to retry.
Errors
| Code | HTTP | Meaning |
|---|---|---|
KYC_001 | 404 | Session not found in your project |
KYC_045 | 409 | Verification is still in progress. You can delete its data once it is finished |
KYC_047 | 503 | The data was deleted, but some files could not be removed yet. Call DELETE again in a few minutes |
| — | 429 | Too many requests. Deletion is limited per environment to about 30 calls a minute; wait and retry |
You can delete the data when the status is completed, failed, rejected, expired or superseded. A verification in manual_review must be approved or rejected first; until then the call answers KYC_045.
Session Statuses
Decide on the session status: pending, connected, processing, completed, failed, expired, manual_review, action_required, rejected or superseded. Meanings: Sessions.
Extracted Data Fields
| Field | Description |
|---|---|
fullName | Complete name from document |
firstName | First/given name |
lastName | Last/family name |
dateOfBirth | Date of birth (YYYY-MM-DD) |
documentNumber | Document ID number |
nationality | Nationality code (ISO 3166-1 alpha-2) |
sex | Sex: M, F, or X |
issueDate | Document issue date |
expiryDate | Document expiry date |
placeOfBirth | Place of birth |
Confidence Score
The confidence field (0.0 - 1.0) indicates verification reliability:
| Score | Meaning |
|---|---|
| 0.95 - 1.0 | High confidence |
| 0.80 - 0.94 | Medium confidence |
| < 0.80 | Low confidence |
Webhook Events
verification.completed
When automated verification completes, you receive:
{"type": "verification.completed","data": {"object": {"id": "ver_xxxxxxxxxxxxxxxx","status": "completed","confidence": 0.98,"extracted_data": { ... },"duplicate_verification": {"is_duplicate": true,"previous_verification_id": "cmohkbzfq000686fezoudgcuc","previous_verified_at": "2026-04-27T19:01:03.000Z","match_type": "document_number","similarity_score": 1},"client_metadata": { ... }}}}
duplicate_verification is optional. It is included only when Flonk detects that the same document or person was already successfully verified in the same project. The verification still completes normally; use this signal for your own fraud prevention, manual review, or account-linking logic. See Webhooks for field details.
verification.status_changed
When a verification is approved or rejected — by an admin from the dashboard, or when a manual review is rejected (a manual-review approval fires verification.completed instead). For a rejected manual-review session previous_status is manual_review:
{"type": "verification.status_changed","data": {"object": {"id": "ver_xxxxxxxxxxxxxxxx","status": "approved", // or "rejected""confidence": 0.98,"extracted_data": { ... },"previous_status": "completed","rejection_reason": "...", // only for rejected"reviewed_by": "admin@company.com"}}}
verification.updated
When an admin manually edits verification data (document fields, file uploads):
{"type": "verification.updated","data": {"object": {"id": "ver_xxxxxxxxxxxxxxxx","status": "completed","document_type": "passport","extracted_data": {"full_name": "John Doe","issue_date": "2020-01-01","expiry_date": "2030-01-01"},"updated_at": "2026-03-31T12:00:00.000Z","updated_by": "admin@company.com"}}}
Webhook payloads never include document_number; the authenticated GET above does. Every event has an id and a livemode flag (false for test mode). See Webhooks for full setup, signatures and retries.