{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentbill-dev/json-schema/agentbill-dev-post-events-request-schema.json",
  "title": "PostEventsRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/agentbill-dev-openapi-generated.yml#/components/schemas/PostEventsRequest",
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The client this call is for"
    },
    "event_type": {
      "type": "string",
      "description": "Agent label (agent_id)"
    },
    "idempotency_key": {
      "type": "string",
      "description": "Unique per call"
    },
    "reservation_id": {
      "type": "string"
    },
    "units": {
      "type": "integer"
    },
    "task_ref": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    },
    "metadata": {
      "type": "object"
    },
    "usage_missing": {
      "type": "boolean"
    }
  },
  "required": [
    "customer_id",
    "event_type",
    "idempotency_key"
  ]
}