{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-callback-schedules-response-schema.json",
  "title": "CallbackSchedulesResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-callbacks-api-openapi.yml#/components/schemas/CallbackSchedulesResponse",
  "type": "object",
  "properties": {
    "meta": {
      "$ref": "#/$defs/CallbackScheduleMetadata"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CallbackSchedule"
      }
    }
  },
  "$defs": {
    "CallbackSchedule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the scheduled callback."
        },
        "customerName": {
          "type": "string",
          "description": "Name of the customer requesting the callback."
        },
        "callbackNumber": {
          "type": "string",
          "description": "Phone number provided for the callback."
        },
        "timezone": {
          "type": "string",
          "description": "Timezone in which the callback is scheduled."
        },
        "scheduleDate": {
          "type": "string",
          "format": "date",
          "description": "Date for the callback in ISO format (YYYY-MM-DD)."
        },
        "startTime": {
          "type": "string",
          "format": "time",
          "description": "Scheduled start time in ISO 8601 format (HH:mm:ss), local to the specified timezone."
        },
        "endTime": {
          "type": "string",
          "format": "time",
          "description": "Scheduled end time in ISO 8601 format (HH:mm:ss), local to the specified timezone."
        },
        "queueId": {
          "type": "string",
          "description": "Identifier for the queue to route the callback request."
        },
        "callbackReason": {
          "type": "string",
          "description": "Reason provided for the callback request."
        },
        "sourceInteraction": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the source interaction."
        },
        "callbackOrigin": {
          "type": "string",
          "description": "Origin of the callback request, such as 'livecall' or 'api'."
        },
        "createdTimestamp": {
          "type": "integer",
          "format": "int64",
          "description": "Unix timestamp in milliseconds when the callback was created."
        },
        "lastUpdatedTimestamp": {
          "type": "integer",
          "format": "int64",
          "description": "Unix timestamp in milliseconds when the callback was last updated."
        },
        "assigneeAgent": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the agent assigned to handle the callback."
        },
        "assignedTime": {
          "type": "integer",
          "format": "int64",
          "description": "Unix timestamp in milliseconds when the assigneeAgent was last updated."
        },
        "orgId": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the organization."
        }
      },
      "required": [
        "id",
        "customerName",
        "callbackNumber",
        "timezone",
        "scheduleDate",
        "startTime",
        "endTime",
        "queueId",
        "callbackOrigin",
        "createdTimestamp",
        "lastUpdatedTimestamp",
        "orgId"
      ]
    },
    "CallbackScheduleMetadata": {
      "type": "object",
      "properties": {
        "orgId": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the organization."
        },
        "page": {
          "type": "integer",
          "description": "Current page number."
        },
        "pageSize": {
          "type": "integer",
          "description": "Number of items per page."
        },
        "totalPages": {
          "type": "integer",
          "description": "Total number of pages."
        },
        "totalRecords": {
          "type": "integer",
          "description": "Total number of items."
        },
        "links": {
          "$ref": "#/$defs/PaginationLinks"
        }
      },
      "required": [
        "orgId",
        "page",
        "pageSize",
        "totalPages",
        "totalRecords",
        "links"
      ]
    },
    "PaginationLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to the current page."
        },
        "first": {
          "type": "string",
          "description": "Link to the first page."
        },
        "last": {
          "type": "string",
          "description": "Link to the last page."
        },
        "next": {
          "type": "string",
          "description": "Link to the next page."
        },
        "prev": {
          "type": "string",
          "description": "Link to the previous page."
        }
      },
      "required": [
        "self"
      ]
    }
  }
}