{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recruitmcp-com/json-schema/recruitmcp-com-customer-list-schema.json",
  "title": "CustomerList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recruitmcp-com-customers-api-openapi.yml#/components/schemas/CustomerList",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Customer"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as cursor for the next page. Null on the last page."
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "object",
    "data",
    "next_cursor",
    "has_more"
  ],
  "$defs": {
    "Customer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "object": {
          "type": "string",
          "enum": [
            "customer"
          ]
        },
        "name": {
          "type": "string"
        },
        "external_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Your id for this tenant."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "daily_cap_credits": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Credits this customer may spend per UTC day."
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "disabled"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "object",
        "name",
        "status"
      ],
      "description": "A sub-workspace for one of your own customers: its own seen register, lists, suppressions, and cap. Credits come from your account."
    }
  }
}