Skip to main content

Resume from Failed Step

POST/v1/onboarding/embedded-signup/{operationId}/retry

Resume from a failed step; phone registration uses the platform's automatically generated, encrypted default PIN.

Authentication

Send Authorization: Bearer <API_KEY> in the request headers, with scope onboarding:write. Which resources an API Key can reach is determined by its current authorization scope.

Request​

Base URL: https://api.bluehola.com

Parameters​

NameInRequiredType / constraintsDescription
operationIdpathYesstringThe onboarding operation ID, onb_...

Request body​

A request body is required.

Request body fields​

FieldTypeRequiredDescription
codestringNoProvide this if the OAuth code has expired

Content-Type: application/json Schema:

{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "string · optional — provide this if the OAuth code has expired"
}
}
}

Response​

StatusDescription
201Created
4xxClient error

For the common error envelope and how to handle it, see Error Codes.

Notes​

Internally this first performs an atomic claim to switch the operation's state to "processing"; when the claim fails (for example it is already running, or another concurrent request claimed it first) it simply returns the current state rather than erroring or re-triggering the orchestration — which turns "a jittery finger clicking retry several times" into a safe operation instead of a source of concurrency bugs.

When to send code​

  • Omit code: reuses the encrypted customer token saved from the first authorization to keep going. Suited to cases where only the phone registration step failed and a fresh Meta OAuth authorization is not needed.
  • Provide a new code: use this once the old token has expired or been revoked, to re-authorize before resuming.
  • Neither a new code nor a saved token exists (for example it was never successfully authorized): this returns a clear error asking for re-authorization, rather than failing ambiguously.

An operation that completed overall but did not request phone registration at the time can also use this endpoint to run just the registration step, without redoing the whole flow.