List all links
Update a link
PATCH an existing link to change its redirects, theme, language, connection types, provisioning settings, or expiry:
meta_billing_mode is the one field you cannot change after creation.
Revoke a link
Setstatus to revoked to kill a link before it expires:
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. Checkexpires_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:- The number must already exist on a production WhatsApp config for this customer.
provision_phone_numberis forced tofalse. Passingtruereturns422.allowed_connection_typesis locked to["dedicated"]or["coexistence"]to match the existing config. Passing a different value returns422.- 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.
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.
