Skip to main content

After the First Authorization Attempt Fails

POST/v1/onboarding/invitations/{token}/retry

[Customer-side, unauthenticated] After the first authorization attempt fails, continue the same operation with a new Meta code (no new onboarding task is created). Only code is accepted: wabaId/phoneNumberId are already recorded on the operation, and pointing at different target assets on retry is not allowed. Only a failed, unexpired invitation can be retried; a completed one returns 409.

Authentication

This endpoint does not require an API Key.

Request​

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

Parameters​

NameInRequiredType / constraintsDescription
tokenpathYesstringThe one-time token from the invitation link

Request body​

A request body is required.

Request body fields​

FieldTypeRequiredDescription
codestringYesA new, one-time Meta OAuth authorization code

Content-Type: application/json Example:

{
"code": "<FRESH_META_OAUTH_CODE>"
}

Schema:

{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "string · required — a new, one-time Meta OAuth authorization code"
}
},
"required": [
"code"
],
"example": {
"code": "<FRESH_META_OAUTH_CODE>"
}
}

Response​

StatusDescription
202Accepted
4xxClient error

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

Notes​

Diagnostics when the claim fails​

The claim condition is stricter than for complete: it requires the invitation status to be exactly failed, the link to be unexpired, and an operationId to already be bound. When the claim fails, this does not return a generic error — it diagnoses the specific reason first and returns the matching message:

  • completed → "no retry needed"
  • pending (never successfully submitted) → "not submitted yet, please complete authorization first"
  • running (currently processing) → "processing, please wait", marked with retryable:true for the landing page to poll on
  • failed but the link has expired → equivalent to "the invitation is no longer valid"

Resume semantics​

Under the hood this reuses retryEmbeddedSignup, resuming from the step that last failed — subscription or phone registration steps that already succeeded are not re-run. If this retry throws again, the invitation is put back to failed (rather than pending, as a failure inside complete would be) — deliberately preserving the "already submitted once" semantics, so the next attempt still goes through this endpoint rather than mistakenly falling back to the first-submission complete endpoint.