Skip to content

/v3/onboarding/{onboardingId}/liveness/retry Retry Liveness Verification ​

Background ​

/v3/onboarding/{onboardingId}/liveness/retry opens the next attempt after the liveness verification has not passed or the link has expired. It can be called only while state is LIVENESS_FAILED or LIVENESS_EXPIRED; on success state returns to AWAITING_LIVENESS, and the livenessUrl from the response is used to complete the verification again.

Before retrying, adjust the shooting conditions first (e.g. remove glasses, move to a well-lit place). Liveness rules are in Onboarding API Overview.

Integration Specifications ​

  • This endpoint requires no authentication headers: during onboarding, no public key has been uploaded to the platform yet.

Endpoint ​

ItemValue
MethodPOST
Path/v3/onboarding/{onboardingId}/liveness/retry
Content-TypeNone (no request body)
PurposeOpen the next liveness attempt after a failure or link expiry

Request Fields ​

FieldLocationTypeLengthRequiredDescription
onboardingIdPathstring22YesRequisition ID.

Request Example ​

http
POST /v3/onboarding/SCM968p7SzK-WXY9QBzDnA/liveness/retry HTTP/1.1

Response Fields ​

FieldTypeLengthAlways returnedDescription
statusint4YesResponse code
msgstring128YesCorresponds to status
dataobject-YesOnboarding requisition object with state as AWAITING_LIVENESS; full fields at Get Onboarding Requisition Status.

Response Example ​

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "onboardingId": "SCM968p7SzK-WXY9QBzDnA",
    "onboardingType": "PF",
    "documentLegalId": "12345678909",
    "representativeDocument": null,
    "state": "AWAITING_LIVENESS",
    "reason": null,
    "livenessUrl": "https://onboarding.adopay.example/l/Zx81Qp",
    "livenessAttemptsLeft": 2,
    "company": null,
    "expiresAt": "2026-10-19T09:00:00Z",
    "submittedAt": null,
    "decidedAt": null,
    "updatedAt": "2026-10-12T09:25:00Z"
  }
}

Response Error Codes ​

Business rules:

  • The link: retrying from LIVENESS_EXPIRED issues a new livenessUrl — the old link becomes invalid and expiresAt is recalculated; retrying from LIVENESS_FAILED while the link has not expired keeps the same link. Always use the livenessUrl from the response.
  • No attempt consumed: calling this endpoint and link expiry do not consume attempts; an attempt is counted only when the verification is actually completed, and livenessAttemptsLeft is then decremented by 1.
  • Attempts used up: when the last attempt fails, the requisition moves directly to REJECTED (LIVENESS_ATTEMPTS_EXHAUSTED) — LIVENESS_FAILED does not appear and this endpoint is not needed. After a cooldown period, a new requisition can be created for the document.
  • Repeated calls: when state is already AWAITING_LIVENESS, the current requisition is returned unchanged; any other state returns INVALID_STATE.
  • Company onboarding: the retry must still be completed in person by the legal representative behind representativeDocument.

Back to Onboarding API Overview