Skip to main content

Direct SDK Onboarding

Use this route when your own Meta SDK page has already obtained the customer’s authorization result. Read the SDK settings from GET /v1/onboarding/config. Your backend may submit the result with a customer API Key and onboarding:write, identifying the ownership target by exactly one of customerEntityId (recommended) or portfolioId. An authorized portal session remains supported.

Passing customerEntityId needs no Business Portfolio in advance: after authorization, the Portfolio is found or created from the WABA owner. To use that same ownership model on the hosted page, create an invitation with customerEntityId; that page submits the result automatically.

An onboarding run is a persisted, resumable state machine with five fixed steps: exchange_token → subscribe_app → register_phone → sync_resources → persist_assets.

EndpointPurpose
Complete OnboardingSubmit customerEntityId or portfolioId (exactly one), plus code, wabaId and optional phoneNumberId. Returns HTTP 201; inspect the operation status.
List Recent OperationsList recent onboarding operations and their status.
Operation DetailsThe five-step progress, errors and provisioned assets for a single operation.
Resume from Failed StepResume from where it stopped. code is optional: omit it if the old credential is still valid.
Report ES Session EventReport a session event from inside the Embedded Signup popup, to help diagnose where a customer got stuck.
warning

After a failure, call retry to resume the same operation — do not POST to the create endpoint again, which would create a brand-new operation. An operation that completed without registering a phone number at the time can also use retry to run just that registration step later.

For how to choose between the two onboarding routes and what each of the five steps does, see Customer Onboarding.