> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rotate Subaccount API Key

> Replace the API key of a subaccount with a new one.

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="subaccount_id" type="string" required>
  The unique identifier of the subaccount to which you want to transfer credits.
</ParamField>

### Response

<ResponseField name="status" type="string">
  Whether the subaccount creation succeeded.
</ResponseField>

<ResponseField name="subaccount_id" type="string">
  The affected subaccount's unique identifier.
</ResponseField>

<ResponseField name="api_key" type="string">
  The new API key for the subaccount.
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
      "status": "success",
      "subaccount_id": "1234567890",
      "api_key": "sub-sk-1234567890"
  }
  ```
</ResponseExample>
