Astrocal Event Type Hosts API

The Event Type Hosts API from Astrocal — 2 operation(s) for event type hosts.

Operations 3

POST /v1/event-types/{id}/hosts Add a host to an event type #
GET /v1/event-types/{id}/hosts List hosts for an event type #
DELETE /v1/event-types/{id}/hosts/{member_id} Remove a host from an event type #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/astrocal-dev:astrocal-dev-event-type-hosts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

astrocal-dev-event-type-hosts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Astrocal Event Type Hosts API
  version: 1.0.0
  description: Scheduling API for AI agents and developers
servers:
- url: https://api.astrocal.dev
  description: Production
- url: https://api.astrocal.dev
  description: Local development
security:
- BearerAuth: []
tags:
- name: Event Type Hosts
paths:
  /v1/event-types/{id}/hosts:
    post:
      tags:
      - Event Type Hosts
      summary: Add a host to an event type
      description: Adds a team member as a host for round-robin assignment.
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                member_id:
                  type: string
                  format: uuid
                priority:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 50
              required:
              - member_id
      responses:
        '201':
          description: Host added
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  event_type_id:
                    type: string
                    format: uuid
                  member_id:
                    type: string
                    format: uuid
                  member_email:
                    type: string
                    nullable: true
                  priority:
                    type: integer
                  total_bookings:
                    type: integer
                  last_booking_at:
                    type: string
                    nullable: true
                  has_calendar:
                    type: boolean
                  created_at:
                    type: string
                required:
                - id
                - event_type_id
                - member_id
                - member_email
                - priority
                - total_bookings
                - last_booking_at
                - has_calendar
                - created_at
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '404':
          description: Event type not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '409':
          description: Conflict — member is already a host
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: postV1EventTypesByIdHosts
      x-operation-id-source: derived
    get:
      tags:
      - Event Type Hosts
      summary: List hosts for an event type
      description: Returns all hosts with booking stats and calendar connection status.
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Hosts list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        event_type_id:
                          type: string
                          format: uuid
                        member_id:
                          type: string
                          format: uuid
                        member_email:
                          type: string
                          nullable: true
                        priority:
                          type: integer
                        total_bookings:
                          type: integer
                        last_booking_at:
                          type: string
                          nullable: true
                        has_calendar:
                          type: boolean
                        created_at:
                          type: string
                      required:
                      - id
                      - event_type_id
                      - member_id
                      - member_email
                      - priority
                      - total_bookings
                      - last_booking_at
                      - has_calendar
                      - created_at
                required:
                - data
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '404':
          description: Event type not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1EventTypesByIdHosts
      x-operation-id-source: derived
  /v1/event-types/{id}/hosts/{member_id}:
    delete:
      tags:
      - Event Type Hosts
      summary: Remove a host from an event type
      description: Removes a team member from the event type's host rotation. Future bookings will no longer be assigned to this host.
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      - schema:
          type: string
          format: uuid
        required: true
        name: member_id
        in: path
      responses:
        '204':
          description: Host removed
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '404':
          description: Event type or host not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: deleteV1EventTypesByIdHostsByMemberId
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your API key as the bearer token.