Skip to main content
The Whilst API is a RESTful API built with Next.js 14 App Router. All endpoints are under /api.

Base URLs

Response Format

All endpoints return JSON. Successful responses include the data directly. Errors follow a consistent structure:

Authentication

Most endpoints require authentication via session cookies. After logging in through WorkOS, a session cookie (whilst_session) is set automatically. Public endpoints (no auth required):
  • GET /api/health
  • POST /api/auth/*
  • GET /api/oauth/*

Rate Limiting

  • MCP Server API keys: 100 requests/minute
  • Session-based: no explicit limit (protected by WorkOS session management)

OpenAPI Specification

The full OpenAPI 3.1 spec is available at openapi/openapi.yaml in the repository.