# List accounts

Retrieves all accounts accessible to the user associated with the API key.

Endpoint: GET /v1/accounts
Version: v1
Security: x-api-key

## Response 200 fields (application/json):

  - `requestId` (string)
    Unique identifier for the request.
    Example: "b0eac937-c25c-47a5-bb7e-552f6b860458"

  - `status` (string)
    Indicates the status of the request.
    Example: "success"

  - `accounts` (array)
    List of accounts.

  - `accounts.id` (integer)
    Account ID.
    Example: 123456

  - `accounts.name` (string)
    Name of the account.
    Example: "Acme Corp"

  - `accounts.accountType` (string)
    Type of account.
    Enum: "organization", "agency", "client"

## Response 401 fields (application/json):

  - `requestId` (string)
    Unique identifier for the request.
    Example: "b0eac937-c25c-47a5-bb7e-552f6b860458"

  - `status` (string)
    Indicates the status of the request.
    Example: "error"

  - `errors` (array)

  - `errors.code` (string,null)
    A machine-readable error code that identifies the type of error.
    Example: "invalid_input"

  - `errors.message` (string)
    A human-readable message explaining the error.
    Example: "The provided parameter is invalid."

  - `errors.field` (string)
    The name of the request field associated with the error, if applicable.
    Example: "datasetId"

  - `errors.type` (string)
    The category or context of the error, such as validation or permission.
    Example: "validation"


