rt_partner_…) authenticates the Partner API. It is an organization credential: it reaches every customer project you created. Treat it as an administrator credential.
Partner key and project key
A partner key on a data route responds
401 api_key_invalid. A project key on a /v1/partner/* route responds 401 partner_key_invalid.
Scopes
A new key only hasprojects:read and projects:write. The other scopes are opt-in: ask for each one on purpose.
Without the required scope, the response is
403 insufficient_scope.
Address restriction and expiry
expires_at. The key stops being valid from that moment.ip_allowlist. Lists the addresses the key can be used from. IPv4 accepts an exact address or a CIDR range. IPv6 is compared by the exact string only, with no ranges. An empty list means no restriction.
401 partner_key_invalid.
Restrict the key to the addresses of your servers and set an expiry. You set these options in the dashboard, where the key is issued.
Rotation and revocation
- Rotation. The dashboard issues a new key before you revoke the old one, so both values work during the swap.
- Revoking deletes the key. Once revoked, the key no longer exists. Revoking it again says it does not exist.
What a partner key reaches
Only projects the Partner API itself created, that is, projects with anexternal_ref. Projects you created in the dashboard respond 404 project_not_found on these routes. The exception is GET /v1/partner/webhook, which belongs to the organization.
The key never reads an existing secret (secrets are shown only once) and never sends messages. Everything it does is recorded in the audit log, with the key as the author.
Delete a disabled channel
DELETE /v1/partner/projects/{project_id}/channels/{channel_id} deletes a channel. Required scope: channels:write.
disabled channel can be deleted. Any other responds 409 channel_not_disabled. The deletion removes the channel, its credential and its templates, and frees the number. Messages, usage and events remain and keep referring to the channel. Nothing changes on WhatsApp.
A project or channel that does not belong to your organization responds 404.
Use this when a customer’s project cannot be deleted because of a disabled channel: delete the channel and then the project. See Onboard a customer.
Rate limit
All/v1/partner/* routes share one limit per organization: 10 requests per second, with a burst of up to 30. Above it, the API responds 429 with the Retry-After header.