Skip to content

API Reference

The Qelos platform exposes a RESTful HTTP API that powers all platform functionality. Every operation available through the TypeScript SDK maps directly to an API endpoint documented here.

New: Gateway endpoint reference — all major gateway paths in one place, with curl and SDK snippets (entities, auth, workspaces, AI, roles, events) and a routing overview aligned with apps/gateway/server/services/proxy-middleware/config.ts.

Base URL

All endpoints are relative to your Qelos application URL:

https://your-qelos-app.com/api/...

Authentication

Most endpoints require authentication. Qelos supports three authentication mechanisms:

MethodHeader / MechanismDescription
Session cookieCookie (set by POST /api/signin)Browser-based session authentication
OAuth tokensAuthorization: Bearer <accessToken>Token-based authentication with automatic refresh
API tokenx-api-key: <apiToken>Long-lived tokens for scripts, CI/CD, and plugins

See the Authentication API for details on obtaining credentials.

SDK equivalent: SDK Authentication

Common Patterns

Request Format

  • Content-Type: application/json for all request bodies
  • Query parameters use standard URL encoding
  • Path parameters are indicated with {paramName} in endpoint paths

Response Format

All responses return JSON. Successful responses return the resource directly or wrapped in a standard envelope. Error responses follow this structure:

json
{
  "error": "Error message describing what went wrong"
}

Common HTTP Status Codes

CodeMeaning
200Success
201Resource created
400Bad request (invalid parameters)
401Unauthorized (missing or invalid credentials)
403Forbidden (insufficient permissions)
404Resource not found
500Internal server error

Query Parameters

Many list endpoints support common query parameters:

ParameterTypeDescription
$limitnumberMaximum number of results to return
$skipnumberNumber of results to skip (for pagination)
$sortstringSort field (prefix with - for descending)
$flatbooleanReturn flat entity structure. Default true for blueprint entity endpoints; pass $flat=false (or 0) to receive the wrapped shape with metadata nested under metadata.
$populatebooleanPopulate related references

API Sections

Gateway (all services, one entry point)

  • Gateway endpoint reference — Route map, common headers, and per-domain curl + SDK for entities, auth, workspaces, AI, roles, and events

Core

  • Authentication — Sign in, sign up, token management, and user profile
  • Workspaces — Multi-tenant workspace operations
  • Invites — Workspace invitation handling

Data

Execution

Payments

  • Payments — Plans, subscriptions, invoices, and checkout

AI

  • AI Threads — Conversation thread management
  • AI Chat — Chat completions and streaming
  • AI RAG — Vector storage for Retrieval-Augmented Generation

SDK ↔ API Mapping

Every SDK method corresponds to an API endpoint. Each API page links back to the relevant SDK documentation, and vice versa.

SDK ModuleAPI Section
sdk.authenticationAuthentication API
sdk.workspacesWorkspaces API
sdk.invitesInvites API
sdk.blueprintsBlueprints API
sdk.blueprints.entitiesOf()Blueprint Entities API
sdk.blocksBlocks API
sdk.appConfigurationsConfigurations API
sdk.lambdasWebhooks / Lambdas API
sdk.paymentsPayments API
sdk.ai.threadsAI Threads API
sdk.ai.chatAI Chat API
sdk.ai.ragAI RAG API

Build SaaS Products Without Limits.