POST
/
v1
/
subaccounts
/
{subaccount_id}
/
disable
Disable Subaccount
curl --request POST \
  --url https://api.bland.ai/v1/subaccounts/{subaccount_id}/disable \
  --header 'authorization: <authorization>'
{
    "status": "success",
    "subaccount_id": "1234567890",
    "transferred_amount": 1000,
    "new_parent_balance": 5000
}

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 was successfully disabled.
subaccount_id
string
The affected subaccount’s unique identifier.
transferred_amount
number
The amount of credits transferred back to the parent account.
new_parent_balance
number
The new balance of the parent account after the transfer.
{
    "status": "success",
    "subaccount_id": "1234567890",
    "transferred_amount": 1000,
    "new_parent_balance": 5000
}