{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recruitmcp-com/json-schema/recruitmcp-com-event-schema.json",
  "title": "Event",
  "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/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"
  ]
}