post
https://api.adopay.com.br/v3/onboarding//liveness/refresh
Asks the API to re-check the liveness verdict and pick it up when the status endpoint still reports PENDING after the end user has already finished the proof of life. Use it as a reconciliation escape hatch, not as a polling mechanism.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Endpoint
POST /v3/onboarding/{onboarding_requisition_id}/liveness/refresh
Headers
| Parameter | Type | Description | Required or Optional | Example |
|---|---|---|---|---|
| X-Onboarding-Token | String | The access_token returned when the onboarding requisition was created. It authorizes every call made for that requisition. | required | kR4tX0pQ7sV9nL2mB6yH8wZ3cJ1fA5dE7gT0uI9oP4s |
This endpoint has no request body, so noContent-Typeheader is required. Keep the access token on your server side and never expose it in the end user's browser.
Path Parameters
| Parameter | Type | Description | Required | Example |
|---|---|---|---|---|
| onboarding_requisition_id | Integer | Identifier of the onboarding requisition, returned when it was created. | Yes | 12345 |
Request Examples
Reconcile the liveness verdict of a requisition:
POST /v3/onboarding/12345/liveness/refresh
X-Onboarding-Token: kR4tX0pQ7sV9nL2mB6yH8wZ3cJ1fA5dE7gT0uI9oP4sAnother requisition:
POST /v3/onboarding/67890/liveness/refresh
X-Onboarding-Token: bN8vK2rM5tQ7wE1yU3iO6pA9sD4fG0hJ2lZ5xC7vB1nResponse Details
A final verdict was found and is being applied:
{
"worked": true,
"enqueued": true
}There is nothing new yet:
{
"worked": true,
"enqueued": false
}| Field | Type | Description |
|---|---|---|
| worked | Boolean | Always returns true when the request is successful |
| enqueued | Boolean | true when a final liveness verdict was found and picked up for processing — poll the status endpoint shortly after to read it. false when there is nothing new to apply yet. |
Error Responses
| HTTP Code | Error Message | Description |
|---|---|---|
| 404 | Onboarding requisition not found. | The requisition does not exist, or the X-Onboarding-Token header is missing or does not match the access token issued for this requisition. |
| 422 | Validation error | The requisition identifier in the path is not a valid integer. |
Business Rules
What This Endpoint Is For:
- The end user finished the proof of life, but the onboarding status endpoint (
GET /v3/onboarding/12345) still reportsliveness_statusasPENDING. - This call asks us to re-check the verdict and pick it up, so the requisition catches up with what the end user already did.
- It is a reconciliation escape hatch for a verdict that seems stuck on
PENDING— it is not part of the normal flow, which resolves on its own.
Reading the Response:
"enqueued": true— a final verdict was found and is being applied. The result is applied asynchronously, so poll the onboarding status endpoint shortly after this call to read the newliveness_status(PASSEDorFAILED) andcurrent_step."enqueued": false— there is nothing new to apply. The final verdict has not been produced yet, it has already been applied, or the re-check could not be completed this time. Keep polling the status endpoint normally, and retry this call later if the liveness is stillPENDING.
No-Op Conditions:
- The call returns
"enqueued": falseand changes nothing whenliveness_statusis notPENDING— an alreadyPASSEDorFAILEDliveness is never re-checked or overwritten. - It also returns
"enqueued": falsewhen the liveness journey has not produced a final verdict yet, or when it never started. - This endpoint never opens a new liveness journey and never consumes a liveness attempt. To start a new attempt after a
FAILEDliveness, use the liveness retry endpoint.
Usage Limits:
- The request carries no body. Any body sent is ignored.
- Call it sparingly and only after a reasonable wait — allow the normal flow at least a couple of minutes to resolve before reconciling.
- Do not use this endpoint as a polling loop. Poll the onboarding status endpoint to follow the journey, and call this endpoint only when the liveness stays
PENDINGfar longer than expected. - The call is safe to repeat: it either finds a final verdict or reports that there is none.
Access:
- Every call for a requisition must carry the
X-Onboarding-Tokenheader with the access token issued when that requisition was created. - A missing or incorrect token returns
404with the same message as an unknown requisition — the API does not reveal whether the requisition exists.
404Onboarding requisition not found, or the access token is missing or incorrect
