API Overview

The Slotflow API is a REST API that lets AI agents check availability, book appointments, and manage the full booking lifecycle.

Base URL

All API requests should be made to:

https://api.slotflow.dev/v1

Authentication

Every request requires an API key passed as a Bearer token:

Authorization: Bearer sk_live_your_api_key

Get your API key from the Slotflow Dashboard. See the Authentication guide for security best practices.

Request format

  • Use Content-Type: application/json for request bodies
  • All timestamps are ISO 8601 UTC (e.g. 2026-03-15T14:00:00.000Z)
  • Dates are YYYY-MM-DD format (e.g. 2026-03-15)

Response format

Successful responses return JSON with the resource data:

{
"id": "bk_a1b2c3",
"human_id": "hu_x1y2z3",
"starts_at": "2026-03-15T14:00:00.000Z",
"ends_at": "2026-03-15T14:30:00.000Z",
"status": "confirmed"
}

Error format

All errors follow a consistent structure:

{
"error": {
"code": "SLOT_UNAVAILABLE",
"message": "This time slot has already been booked.",
"status": 409
}
}

Always switch on error.code (stable), not error.message (may change).

CodeStatusMeaning
UNAUTHORIZED401Missing or invalid API key
LIMIT_REACHED402Booking or resource limit hit
NOT_FOUND404Resource does not exist
SLOT_UNAVAILABLE409Time slot already booked
OUTSIDE_WORKING_HOURS422Requested time is outside availability
INVALID_DURATION422Duration not in allowed meeting durations
SCHEDULE_BLOCKED422Time is blocked by a schedule override
VALIDATION_ERROR422Missing or invalid request fields

See Error Handling for detailed agent strategies for each error.

SDKs