Charter Captain Availability API

The Availability API from Charter Captain — 2 operation(s) for availability.

Operations 2

GET /api/v1/availability/dates Get available dates #
GET /api/v1/availability/slots Get time slots for a date #

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/chartercaptain-com:chartercaptain-com-availability-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

chartercaptain-com-availability-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Charter Captain Availability API
  version: 1.0.0
  description: REST API for the Charter Captain iOS apps
servers:
- url: http://localhost:3002
  description: Development
security:
- bearerAuth: []
tags:
- name: Availability
paths:
  /api/v1/availability/dates:
    get:
      operationId: getAvailabilityDates
      summary: Get available dates
      description: Returns available booking dates for the captain within the specified look-ahead window, with pricing category per date.
      tags:
      - Availability
      parameters:
      - schema:
          type: integer
          minimum: 1
          maximum: 365
          default: 90
          description: Number of days to look ahead (1–365, default 90)
        required: false
        description: Number of days to look ahead (1–365, default 90)
        name: daysAhead
        in: query
      - schema:
          type: string
          description: Comma-separated list of day-of-week numbers to filter (0=Sun … 6=Sat)
          example: 5,6
        required: false
        description: Comma-separated list of day-of-week numbers to filter (0=Sun … 6=Sat)
        name: filterDays
        in: query
      responses:
        '200':
          description: Available dates with pricing categories
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          format: date
                          example: '2026-07-04'
                        pricingCategory:
                          type: string
                          enum:
                          - weekday
                          - weekend
                          - peak
                          - holiday
                      required:
                      - date
                      - pricingCategory
                required:
                - data
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /api/v1/availability/slots:
    get:
      operationId: getAvailabilitySlots
      summary: Get time slots for a date
      description: Returns the resolved bookable slots for a given date. A date is bookable when at least one slot is not taken and offers ≥1 duration.
      tags:
      - Availability
      parameters:
      - schema:
          type: string
          format: date
          description: Date in YYYY-MM-DD format
          example: '2026-07-04'
        required: true
        description: Date in YYYY-MM-DD format
        name: date
        in: query
      responses:
        '200':
          description: Resolved slots for the date
          content:
            application/json:
              schema:
                type: object
                properties:
                  date:
                    type: string
                    format: date
                    example: '2026-07-04'
                  available:
                    type: boolean
                    description: True when some slot is not taken and offers ≥1 duration
                  slots:
                    type: array
                    items:
                      type: object
                      properties:
                        slotKey:
                          type: string
                          example: morning
                        label:
                          type: string
                          example: Morning
                        anchorTime:
                          type:
                          - string
                          - 'null'
                          description: HH:mm anchor for the slot, or null
                          example: 08:00
                        anchorDirection:
                          type: string
                          enum:
                          - START
                          - END
                          description: Whether anchorTime marks the slot's start or end
                        offeredDurations:
                          type: array
                          items:
                            type: object
                            properties:
                              hours:
                                type: integer
                                example: 4
                              startTime:
                                type: string
                                example: 08:00
                              endTime:
                                type: string
                                example: '12:00'
                              priceCents:
                                type: integer
                                example: 60000
                            required:
                            - hours
                            - startTime
                            - endTime
                            - priceCents
                        defaultDurationHours:
                          type:
                          - integer
                          - 'null'
                          description: Default duration to preselect, or null
                          example: 4
                        taken:
                          type: boolean
                          description: True when the slot's window is occupied by a reservation
                      required:
                      - slotKey
                      - label
                      - anchorTime
                      - anchorDirection
                      - offeredDurations
                      - defaultDurationHours
                      - taken
                required:
                - date
                - available
                - slots
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    ValidationError:
      description: Request body or query parameters failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication required, or the bearer token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
          required:
          - message
          - code
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT token