GET
/
v1
/
subaccounts
/
{subaccount_id}
curl --request GET \
  --url https://api.bland.ai/v1/subaccounts/{subaccount_id} \
  --header 'authorization: <authorization>'
{
    "status": "success",
    "subaccount": {
        "subaccount_id": "1234567890",
        "first_name": "John",
        "last_name": "Doe",
        "balance": 150,
        "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.

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": {
        "subaccount_id": "1234567890",
        "first_name": "John",
        "last_name": "Doe",
        "balance": 150,
        "api_key": "sub-sk-1234567890"
    }
}