Charter Captain Calendar API
The Calendar API from Charter Captain — 3 operation(s) for calendar.
The Calendar API from Charter Captain — 3 operation(s) for calendar.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/chartercaptain-com:chartercaptain-com-calendar-api"
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.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Charter Captain Calendar 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: Calendar
paths:
/api/v1/calendar/{year}/{month}:
get:
operationId: getCalendarMonth
summary: Calendar month view
description: Returns bookings and availability exceptions for a given calendar month.
tags:
- Calendar
parameters:
- name: year
in: path
description: 4-digit year
required: true
schema:
type: integer
example: 2026
- name: month
in: path
description: Month number (1–12)
required: true
schema:
type: integer
minimum: 1
maximum: 12
example: 7
responses:
'200':
description: Calendar month data
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
bookings:
type: array
items:
$ref: '#/components/schemas/Booking'
exceptions:
type: array
items:
$ref: '#/components/schemas/AvailabilityException'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/calendar/blocks:
post:
operationId: postCalendarBlock
summary: Create availability block
description: Blocks or overrides availability for a specific date.
tags:
- Calendar
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- date
properties:
date:
type: string
format: date
example: '2026-07-04'
isBlocked:
type: boolean
default: true
reason:
type: string
overrideStart:
type: string
example: '10:00'
overrideEnd:
type: string
example: '16:00'
responses:
'201':
description: Availability block created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/AvailabilityException'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/calendar/blocks/{id}:
delete:
operationId: deleteCalendarBlock
summary: Delete availability block
description: Removes an availability exception (block) by ID.
tags:
- Calendar
parameters:
- name: id
in: path
description: Availability exception ID
required: true
schema:
type: string
responses:
'200':
description: Block deleted
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
deleted:
type: boolean
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
components:
responses:
NotFound:
description: The requested resource does not exist (existence is not leaked).
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'
ValidationError:
description: Request body or query parameters failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
AvailabilityException:
type: object
properties:
id:
type: string
captainId:
type: string
date:
type: string
format: date-time
isBlocked:
type: boolean
reason:
type:
- string
- 'null'
overrideStart:
type:
- string
- 'null'
overrideEnd:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
required:
- id
- captainId
- date
- isBlocked
WeatherCheck:
type: object
properties:
id:
type: string
bookingId:
type: string
checkedAt:
type: string
format: date-time
hasAdvisory:
type: boolean
advisoryType:
type: string
nullable: true
windSpeed:
type: number
nullable: true
waveHeight:
type: number
nullable: true
forecast:
type: string
nullable: true
Error:
type: object
properties:
error:
type: object
properties:
message:
type: string
code:
type: string
required:
- message
- code
required:
- error
Payment:
type: object
required:
- id
- amount
- type
- status
properties:
id:
type: string
bookingId:
type: string
amount:
type: number
type:
type: string
enum:
- DEPOSIT
- BALANCE
- TIP
- REFUND
status:
type: string
enum:
- PENDING
- SUCCEEDED
- FAILED
- REFUNDED
createdAt:
type: string
format: date-time
Notification:
type: object
properties:
id:
type: string
bookingId:
type: string
type:
type: string
sentAt:
type: string
format: date-time
status:
type: string
Booking:
type: object
required:
- id
- captainId
- date
- status
properties:
id:
type: string
captainId:
type: string
date:
type: string
format: date-time
startTime:
type: string
nullable: true
endTime:
type: string
nullable: true
status:
type: string
enum:
- PENDING_DEPOSIT
- DEPOSIT_PAID
- CONFIRMED
- COMPLETED
- CANCELLED
- WEATHER_CANCELLED
totalPrice:
type: number
nullable: true
notes:
type: string
nullable: true
createdAt:
type: string
format: date-time
customer:
$ref: '#/components/schemas/Customer'
harbor:
$ref: '#/components/schemas/Harbor'
duration:
$ref: '#/components/schemas/Duration'
payments:
type: array
items:
$ref: '#/components/schemas/Payment'
weatherChecks:
type: array
items:
$ref: '#/components/schemas/WeatherCheck'
notifications:
type: array
items:
$ref: '#/components/schemas/Notification'
Customer:
type: object
required:
- id
- firstName
- lastName
- email
properties:
id:
type: string
firstName:
type: string
lastName:
type: string
email:
type: string
format: email
phone:
type: string
nullable: true
notes:
type: string
nullable: true
createdAt:
type: string
format: date-time
Duration:
type: object
properties:
id:
type: string
hours:
type: integer
label:
type: string
isActive:
type: boolean
sortOrder:
type: integer
required:
- id
- hours
- label
Harbor:
type: object
properties:
id:
type: string
name:
type: string
city:
type:
- string
- 'null'
state:
type:
- string
- 'null'
lat:
type:
- number
- 'null'
lng:
type:
- number
- 'null'
sortOrder:
type: integer
isActive:
type: boolean
required:
- id
- name
- isActive
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Clerk JWT token