POST
/
v1
/
subaccounts
/
{subaccount_id}
/
rotate
curl --request POST \
  --url https://api.bland.ai/v1/subaccounts/{subaccount_id}/rotate \
  --header 'authorization: <authorization>'
{
    "status": "success",
    "subaccount_id": "1234567890",
    "api_key": "sub-sk-1234567890"
}

Headers

authorization
string
required

Your API key for authentication.

Path Parameters

subaccount_id
string
required

The unique identifier of the subaccount to which you want to transfer credits.

Response

status
string

Whether the subaccount creation succeeded.

subaccount_id
string

The affected subaccount’s unique identifier.

api_key
string

The new API key for the subaccount.

{
    "status": "success",
    "subaccount_id": "1234567890",
    "api_key": "sub-sk-1234567890"
}