{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recruitmcp-com/json-schema/recruitmcp-com-event-list-schema.json",
  "title": "EventList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recruitmcp-com-events-api-openapi.yml#/components/schemas/EventList",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    },
    "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": {
    "Event": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "object": {
          "type": "string",
          "enum": [
            "event"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "job.completed",
            "job.failed",
            "contacts.completed",
            "enrollment.created",
            "enrollment.completed",
            "enrollment.failed",
            "action.sent",
            "action.failed",
            "action.awaiting_approval",
            "reply.received",
            "invite.accepted",
            "account.connected",
            "account.paused",
            "account.disconnected",
            "outreach.cap_reached",
            "credits.low",
            "credits.expiring",
            "credits.purchased",
            "credits.granted",
            "credits.used",
            "credits.payg_alert"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "customer_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "data": {
          "type": "object",
          "additionalProperties": {},
          "description": "The object the event is about. Fields depend on type."
        }
      },
      "required": [
        "id",
        "object",
        "type",
        "created_at",
        "data"
      ]
    }
  }
}