{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/porkbun-com/json-schema/porkbun-com-list-all-request-schema.json",
  "title": "ListAllRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/porkbun-com-openapi.json#/components/schemas/ListAllRequest",
  "type": "object",
  "required": [
    "apikey",
    "secretapikey"
  ],
  "properties": {
    "apikey": {
      "type": "string"
    },
    "secretapikey": {
      "type": "string"
    },
    "start": {
      "type": "integer",
      "default": 0,
      "description": "Zero-based offset for pagination (default: 0). Returns up to 1000 domains per call."
    },
    "includeLabels": {
      "type": "string",
      "enum": [
        "yes",
        "no"
      ],
      "description": "Return label metadata for each domain. Defaults to no."
    },
    "domain": {
      "type": "string",
      "description": "Exact domain name match. Returns 0 or 1 result. Useful as an alternative to `/domain/get/{domain}`."
    },
    "nameContains": {
      "type": "string",
      "description": "Substring match against the full domain name. Case-insensitive."
    },
    "expiringWithinDays": {
      "type": "integer",
      "description": "Filter to domains expiring within this many days (relative to now)."
    },
    "addedAfter": {
      "type": "string",
      "description": "Only domains added to this account at Porkbun (registered or transferred in) at or after this date or date-time, UTC. Compare `addedDate` in the response. To sync only new domains, pass the newest `addedDate` you have seen."
    },
    "addedBefore": {
      "type": "string",
      "description": "Only domains added to this account at Porkbun before this date or date-time, UTC."
    },
    "createdAfter": {
      "type": "string",
      "description": "Only domains whose registry creation date (`createDate`) is at or after this date or date-time, UTC. A transferred-in domain keeps its original creation date, so use `addedAfter` for \"new in my account\"."
    },
    "createdBefore": {
      "type": "string",
      "description": "Only domains whose registry creation date is before this date or date-time, UTC."
    },
    "expiresAfter": {
      "type": "string",
      "description": "Only domains expiring at or after this date or date-time, UTC."
    },
    "expiresBefore": {
      "type": "string",
      "description": "Only domains expiring before this date or date-time, UTC."
    },
    "tlds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Limit to these TLDs (without leading dot)."
    },
    "autoRenew": {
      "type": "string",
      "enum": [
        "yes",
        "no"
      ],
      "description": "Filter to domains with auto-renew on or off."
    },
    "apiAccess": {
      "type": "string",
      "enum": [
        "yes",
        "no"
      ],
      "description": "Filter to domains opted in to API access (yes) or not (no). Useful for finding domains an API key can actually operate on."
    },
    "sortName": {
      "type": "string",
      "enum": [
        "domain",
        "tld",
        "create_date",
        "added_date",
        "expire_date"
      ],
      "description": "Field to sort by. Default: `expire_date` ascending. `added_date` sorts by `addedDate`."
    },
    "sortDirection": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Sort direction. Default: asc."
    }
  }
}