For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact us
DocumentationAPI Reference
DocumentationAPI Reference
  • Authentication
    • GETVerify API key
  • Documents
    • POSTUpload document
    • POSTUpload document into folder
    • GETList documents
    • GETList documents in folder
    • GETGet document
    • POSTCreate folder
    • DELDelete folder
    • POSTMove documents between folders
    • DELDelete documents
  • Workspaces
    • GETGet workspace
    • DELDelete workspace
    • POSTUpdate workspace
    • POSTAdd or remove workspace embeddings
    • GETList workspace tools
    • POSTAttach tool to workspace
    • DELDetach tool from workspace
  • Number Requests
    • GETList number requests
    • POSTRequest a phone number
    • GETGet number request
  • Numbers
    • GETList phone numbers
    • GETList phone numbers in organization
  • Organizations
    • GETList organizations
    • POSTCreate organization
    • GETGet organization
    • DELDelete organization
    • POSTUpdate organization
    • GETList workspaces in organization
    • POSTCreate workspace
    • GETList organization tools
    • POSTCreate organization tool
    • DELDelete organization tool
    • PATCHUpdate organization tool
  • Accounts
    • GETList accounts
    • POSTCreate account
  • Voice Integration
    • GETGet voice assistant config
    • PATCHUpdate voice assistant config
    • GETGet voice integration catalog
    • POSTProvision voice integration
    • GETList voice call logs
    • GETList workspace voice call logs
  • Whats App Integration
    • POSTMint a WhatsApp Business connect page token
    • GETRender WhatsApp Business connect iframe page
    • POSTFinalize WhatsApp Business onboarding (iframe-initiated)
    • DELDisconnect WhatsApp Business integration
Contact us
LogoLogo
Whats App Integration

Finalize WhatsApp Business onboarding (iframe-initiated)

POST
https://staging-app.lumenia.net/api/v1/workspace/:slug/whatsapp/onboard
POST
/api/v1/workspace/:slug/whatsapp/onboard
$curl -X POST https://staging-app.lumenia.net/api/v1/workspace/slug/whatsapp/onboard \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "token": "a1b2c3...",
> "code": "<facebook oauth code>",
> "waba_id": "1234567890",
> "phone_number_id": "0987654321",
> "business_id": "5544332211"
>}'
1{
2 "success": true,
3 "waba_status": "connected",
4 "phone_status": "registered"
5}
Called from the connect-page iframe with the page token + X-Account-Id. Atomically reserves the token, exchanges the OAuth code for an access token, subscribes the app to the WABA, persists the WABA-side fields, then best-effort registers the phone number if provided. Phone registration is non-fatal: on failure the workspace stays WABA-connected and the response carries phone_status="registration_failed".
Was this page helpful?
Previous

Disconnect WhatsApp Business integration

Next
Built with

Called from the connect-page iframe with the page token + X-Account-Id. Atomically reserves the token, exchanges the OAuth code for an access token, subscribes the app to the WABA, persists the WABA-side fields, then best-effort registers the phone number if provided. Phone registration is non-fatal: on failure the workspace stays WABA-connected and the response carries phone_status=“registration_failed”.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

slugstringRequired

Hex-encoded workspace slug

Headers

X-Account-IdstringRequired

Account UUID (baked into the iframe page at GET connect-page time)

Request

This endpoint expects any.

Response

WABA connected. phone_status reports whether phone registration succeeded.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error