Skip to main content

List Subaccounts

Returns all subaccounts (including disabled ones) belonging to your master account.

MethodGET
Path/dma/api/v1/master/subaccounts
AuthAuthenticated (master account API key).

Request

from reference_client import sign_request, BASE_URL
import requests

headers, path = sign_request("GET", "/dma/api/v1/master/subaccounts")
r = requests.get(BASE_URL + path, headers=headers)
print(r.json())

Response

{
"message": "success",
"data": {
"subaccounts": [
{
"subaccount_id": 1000,
"is_master": true
},
{
"subaccount_id": 1001,
"is_active": true
},
{
"subaccount_id": 1002,
"is_active": false
}
]
}
}
FieldTypeDescription
subaccount_idinteger (int64)Unique subaccount identifier.
is_masterboolean (nullable)true only for the master account's own entry. Omitted for child subaccounts.
is_activeboolean (nullable)Whether the subaccount is active. Omitted for the master account entry.