Skip to main content
POST
Python SDK

Credits and plans

PAYG is Pay-as-you-go. AYCE is All-you-can-eat.

When to use this endpoint

Use this when replacing the account’s default integration key. Rotation changes credentials; it does not reset credits, allowances, or job ownership.
The previous default key stops working immediately. Save the returned key securely and update every integration that used the old default key.

Example

Set REVENUEBASE_API_KEY to your API key.

Read the response

api_key is the new plaintext key. Capture it from this response and store it in your secret manager. Avoid logging it or including it in shared examples. This rotates the default key slot; separately named keys are managed in your account.

Retries and recovery

Do not automatically repeat a rotation after a lost response: another successful rotation replaces the key again. Check your account’s key controls to recover access, then update your integrations. Use the new key in X-Key for subsequent requests. Read the authentication guide for setup.

Authorizations

x-key
string
header
required

Response

200 - application/json

Successful Response

api_key
string
required