Accounts & UsersList accounts

List accounts

Retrieves the accounts visible to the API token. Results are scoped to the token's level: an account-level access key only ever sees its own account. To enumerate every account in a tenant, authenticate with a tenant-level access key and set parent_id to the tenant id.

curl -X GET "https://api.rad.security/accounts?parent_id=example_string&exclude_parent=true" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "accounts": [
    {
      "children_count": 10,
      "created_at": "example_string",
      "deleted_at": "example_string",
      "description": "example_string",
      "id": "example_string",
      "name": "John Doe",
      "onboarded_at": "example_string",
      "parent_id": "example_string",
      "type": "example_string",
      "updated_at": "example_string"
    }
  ]
}
GET
/accounts
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer token - just enter the token, "Bearer" prefix will be added automatically

query
parent_idstring

Parent account id - when set, returns that account and its children

query
exclude_parentboolean

Exclude the parent account from the list

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Authentication token required.

Query Parameters

parent_idstring

Parent account id - when set, returns that account and its children

exclude_parentboolean

Exclude the parent account from the list

Responses

accountsarray