{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentbookable-com/json-schema/agentbookable-com-mandate-create-schema.json",
  "title": "MandateCreate",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentbookable-com-openapi.json#/components/schemas/MandateCreate",
  "type": "object",
  "required": [
    "actorRef",
    "action",
    "instruction"
  ],
  "properties": {
    "actorRef": {
      "type": "string",
      "description": "Stable identifier for who is acting on the user's behalf (e.g. your agent/session id). Used in the audit trail."
    },
    "action": {
      "type": "string",
      "enum": [
        "create_booking",
        "reschedule_booking",
        "cancel_booking"
      ]
    },
    "businessId": {
      "type": "string",
      "description": "Bind the mandate to this business. Strongly recommended; a bound mandate cannot be replayed elsewhere."
    },
    "serviceId": {
      "type": "string",
      "description": "Optionally bind to a specific service."
    },
    "instruction": {
      "type": "string",
      "description": "The user's exact words. Do not paraphrase or invent. This is the consent evidence."
    }
  }
}