Skip to main content

Overview

OpenSail exposes a REST API through FastAPI. All endpoints are served from the Orchestrator backend. Authenticated endpoints require a valid JWT token (via Authorization: Bearer {token} header) or an HTTP-only session cookie. This reference organizes every endpoint by router. For each endpoint, you will find the HTTP method, path, a brief description, and whether authentication is required.
Visit http://localhost:8000/docs (local) or https://your-domain/docs (production) to access the interactive Swagger UI, which includes live request testing and schema documentation.

Auth Endpoints

Authentication, registration, and session management.

User Endpoints

User profile management.

Project Endpoints

Project CRUD, file operations, container management, and assets.

Project Management

Container Lifecycle

File Operations

Assets

Connections and Previews

Snapshots

Chat Endpoints

AI agent chat management and streaming.

Git Endpoints

Git operations executed inside project containers.

Git Provider Endpoints

Multi-provider Git integration (GitHub, GitLab, Bitbucket).

Deployment Endpoints

External deployments to Vercel, Netlify, and Cloudflare.

Deployment Credentials

Deployment OAuth

Marketplace Endpoints

Browse, purchase, and manage AI agents and project templates.

Agents

Bases (Project Templates)

User Library

Billing Endpoints

Subscription management, credits, and usage tracking.

Admin Endpoints

Platform administration (requires superuser role).

Theme Endpoints

Public theme API (no authentication required).

Additional Endpoints

Shell Sessions

Secrets (Environment Variables)

Kanban (Task Board)

Background Tasks

Feedback

Referrals and Creators

Health and Configuration

Common Response Patterns

Common status codes:
  • 400 Bad Request (invalid input, validation errors)
  • 401 Unauthorized (authentication required)
  • 403 Forbidden (insufficient permissions)
  • 404 Not Found (resource does not exist)
  • 422 Unprocessable Entity (Pydantic validation error)
  • 500 Internal Server Error (unexpected server error)
List endpoints support pagination via skip and limit query parameters (or page and limit for marketplace browse endpoints).