> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Find Available Slots

- Component: `appmixer.calcom.core.FindAvailableSlots`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.calcom 1.0.0](https://connectors.appmixer.com/connector/appmixer.calcom/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.calcom/1.0.0/component/appmixer.calcom.core.FindAvailableSlots>

Find the free time slots of an event type in a time range. Each slot has a start and an end time.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Event Type (`eventTypeId`) | text | Pick the event type, or type its Event Type ID. |
| From (`start`) | date-time | Look for slots starting from this time (sent in UTC). |
| To (`end`) | date-time | Look for slots until this time (sent in UTC). |
| Time Zone (`timeZone`) | text | IANA time zone in which the slot times are returned, for example `Europe/Rome`. Defaults to UTC. |
| Duration (Minutes) (`duration`) | number | Only for event types that offer several lengths: the length to find slots for. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/calcom/core/FindAvailableSlots?outPort=out&ignoreAuth=true`.

### Port `notFound`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.calcom.core.FindAvailableSlots",
  "label": "Find Available Slots",
  "description": "Find the free time slots of an event type in a time range. Each slot has a start and an end time.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:calcom"
  },
  "quota": {
    "manager": "appmixer:calcom",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "eventTypeId": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "timeZone": {
            "type": "string"
          },
          "duration": {
            "type": "integer"
          },
          "outputType": {
            "type": "string",
            "default": "array"
          }
        },
        "required": [
          "eventTypeId",
          "start",
          "end"
        ]
      },
      "inspector": {
        "inputs": {
          "eventTypeId": {
            "type": "text",
            "index": 1,
            "label": "Event Type",
            "tooltip": "Pick the event type, or type its Event Type ID.",
            "source": {
              "url": "/component/appmixer/calcom/core/ListEventTypes?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./ListEventTypes#toSelectArray"
              }
            }
          },
          "start": {
            "type": "date-time",
            "index": 2,
            "label": "From",
            "tooltip": "Look for slots starting from this time (sent in UTC)."
          },
          "end": {
            "type": "date-time",
            "index": 3,
            "label": "To",
            "tooltip": "Look for slots until this time (sent in UTC)."
          },
          "timeZone": {
            "type": "text",
            "index": 4,
            "label": "Time Zone",
            "tooltip": "IANA time zone in which the slot times are returned, for example <code>Europe/Rome</code>. Defaults to UTC."
          },
          "duration": {
            "type": "number",
            "index": 5,
            "label": "Duration (Minutes)",
            "tooltip": "Only for event types that offer several lengths: the length to find slots for."
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 6,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file.",
            "options": [
              {
                "label": "First Item Only",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "Store to CSV file",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/calcom/core/FindAvailableSlots?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/eventTypeId": "dummy",
            "in/start": "2026-01-01T00:00:00.000Z",
            "in/end": "2026-01-02T00:00:00.000Z"
          }
        }
      }
    },
    {
      "name": "notFound"
    }
  ],
  "icon": "(data URI omitted)"
}
```
