{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentbookable-com/json-schema/agentbookable-com-availability-result-schema.json",
  "title": "AvailabilityResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentbookable-com-availability-api-openapi.yml#/components/schemas/AvailabilityResult",
  "type": "object",
  "properties": {
    "businessId": {
      "type": "string"
    },
    "serviceId": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Pass as slotId to POST /bookings"
          },
          "serviceId": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "description": "ISO-8601 with business-timezone offset"
          },
          "end": {
            "type": "string"
          },
          "staffId": {
            "type": [
              "string",
              "null"
            ]
          },
          "fetchedAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "description": "Slots are temporary; book before this time or re-fetch"
          }
        }
      }
    }
  }
}