POST
/
v1
/
subaccounts
/
{subaccount_id}
/
transfer
curl --request POST \
  --url https://api.bland.ai/v1/subaccounts/{subaccount_id}/transfer \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "amount": 123
}'
{
    "status": "success",
    "new_parent_balance": 1200,
    "new_subaccount_balance": 500
}

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.

Body

amount
integer
required

This many of your API credits will be transferred to the subaccount.

The balance must be a positive integer that is at least 1, and less than your current account balance.

Response

status
string

Whether the subaccount creation succeeded.

new_parent_balance
number

The new balance of your account after the transfer.

new_subaccount_balance
number

The new balance of the subaccount after the transfer.