Skip to main content
PATCH an existing link to change its redirects, allowed browser origins, theme, language, connection types, provisioning settings, or expiry:
meta_billing_mode is the one field you cannot change after creation. Set status to revoked to kill a link before it expires:
You cannot set status to used. Creating a new link also revokes the previous one, since only one link can be active per customer.

Expiration

Links expire 30 days after creation. Check expires_at, or set it with PATCH to expire a link sooner or later.

Reconnect existing numbers

When a customer’s WhatsApp connection breaks (token revoked, Meta de-auth, password change), generate a setup link scoped to a specific phone number they already have on Kapso:
Kapso looks up the customer’s existing WhatsApp config matching that number, then forces the setup flow to refresh credentials for the same WABA + phone number. Behavior:
  • The number must already exist on a production WhatsApp config for this customer.
  • provision_phone_number is forced to false. Passing true returns 422.
  • allowed_connection_types is locked to ["dedicated"] or ["coexistence"] to match the existing config. Passing a different value returns 422.
  • During Meta’s embedded signup, the phone number selector is constrained to the matching number — if the customer connects a different account or number, setup fails.
If no config matches, the API returns 422 with reconnect_phone_number must match an existing WhatsApp config for this customer. If multiple configs match the same display number, the API returns 422 and you’ll need to resolve the duplicates first.

List setup attempts

Use GET /platform/v1/customers/{customer_id}/setup_attempts to see retained attempts across a customer’s setup links, including revoked links. Add setup_link_id to filter to one link. Fetch older attempts using paging.next as the after parameter. Terminal attempts are retained for 90 days after their last update. Each row has its own id, status, current_step, and timestamps. oauth_callback_at records when the browser observed an authorization callback. queued_at records when Kapso accepted the authorization for processing. A browser callback can be present while queued_at is null. A completed_with_recovery attempt saved a connection that requires attention. Read blocker_codes for the blockers recorded at completion. meta_missing_whatsapp_permissions calls for reauthorization before creating templates. managed_billing_attention calls for reviewing Kapso-managed funding. An empty array means no blockers were recorded at completion. null means no snapshot was stored. Subscribe to setup attempt webhooks to receive live updates.