Partner Accounts (v2)
Rotate API Key
Replace a child’s API key with a new one. The old key is revoked immediately.
POST
Mints a replacement key with the same scope and constraints as the original, then revokes the old key immediately — there is no grace window on this surface. Use your parent key with
accounts.write. A sandbox key is re-minted as a sandbox key (trk_test_ prefix).
Path Parameters
integer
required
The child account’s
accountId.string
required
The
id of the key to rotate.Examples
Error Codes
This rotates the API key. To rotate a webhook endpoint’s signing secret (which keeps a 24-hour grace window), see Webhook Signing.