{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "/schemas/3.0.18/account/list-accounts-request.json",
  "title": "List Accounts Request",
  "description": "Request parameters for listing accounts accessible to the authenticated agent",
  "type": "object",
  "properties": {
    "adcp_major_version": {
      "type": "integer",
      "description": "The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.",
      "minimum": 1,
      "maximum": 99
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "pending_approval",
        "rejected",
        "payment_required",
        "suspended",
        "closed"
      ],
      "description": "Filter accounts by status. Omit to return accounts in all statuses."
    },
    "pagination": {
      "$ref": "/schemas/3.0.18/core/pagination-request.json"
    },
    "sandbox": {
      "type": "boolean",
      "description": "Filter by sandbox status. true returns only sandbox accounts, false returns only production accounts. Omit to return all accounts. Primarily used with explicit accounts (require_operator_auth: true) where sandbox accounts are pre-existing test accounts on the platform."
    },
    "context": {
      "$ref": "/schemas/3.0.18/core/context.json"
    },
    "ext": {
      "$ref": "/schemas/3.0.18/core/ext.json"
    }
  },
  "required": [],
  "additionalProperties": true
}
