DELETEhttps://core-api.heysadie.ai/whatsapp/onboarding-sessions/{id}
id success data status metadata timestamp version path error code message details fieldCancel onboarding session
Cancel / reset an onboarding session (reseller self-service recovery). Behaviour by current status: - `pending` / `authorized` / `verifying` — **cancellable**: the number's WhatsApp link is cleared and the session becomes `abandoned` (a subsequent `GET` reports `failureReason: "cancelled"`). The number can immediately be re-onboarded. - `failed` / `abandoned` / `name_rejected` — already terminal: **idempotent no-op**, returns the current status (`200`). - `tier_pending` / `completed` / `live` — a verified/registered or live number is **not** cancelled here → `409 WHATSAPP_ONBOARDING_NOT_CANCELLABLE`. Cross-tenant / unknown ids return `404` (anti-enumeration). DB-only: no Meta call is made (the number may remain attached at Meta; a re-onboard idempotently re-attaches it) and **no webhook fires** (you initiated the cancel).
Try it in the API ExplorerExample request
curl -X DELETE "https://core-api.heysadie.ai/whatsapp/onboarding-sessions/ONBOARDING_SESSION_ID" \
-H "Authorization: ApiKey YOUR_API_KEY"Authentication
Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.
AuthorizationstringrequiredAPI key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.
X-Tenant-Idstring (uuid)optionalRequired when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.
Request
Path parameters
idstringrequiredThe resource's UUID.
Responses
successbooleanrequireddataobjectoptionalShow 1 child properties
statusstringrequiredResulting status. A cancellable in-flight session (`pending`/`authorized`/`verifying`) becomes `abandoned`; an already-terminal session echoes its current status (idempotent).
metadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional400
successbooleanrequirederrorobjectoptionalShow 3 child properties
codeenumrequired"VALIDATION_ERROR"messagestringrequireddetailsobject[]optionalShow 2 item properties
fieldstringrequiredmessagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional401
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"UNAUTHORIZED"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional403
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"FORBIDDEN"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional404
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"RESOURCE_NOT_FOUND"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional500
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"INTERNAL_SERVER_ERROR"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional