API Reference
API Overview
HeadlessOps REST API reference overview
API Reference
The HeadlessOps REST API provides programmatic access to all platform resources.
Base URL
https://app.headlessops.ai/apiAuthentication
API Key (Recommended for programmatic access)
Include your API key in the Authorization header:
Authorization: Bearer iter_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAPI keys are scoped to a workspace — the workspace is resolved automatically. Use the flat paths (e.g. /api/integrations) with API key auth.
Session Cookie (Browser / web app)
Sign in to get a session cookie:
curl -X POST https://app.headlessops.ai/api/auth/sign-in/email \
-H "Content-Type: application/json" \
-d '{ "email": "you@example.com", "password": "your-password" }'The response sets a Set-Cookie header. Subsequent requests with this cookie are authenticated.
Session auth is required for workspace-management endpoints (/api/workspaces/:workspaceId/...).
API Endpoint Groups
| Group | Description |
|---|---|
| Workspaces | Create and manage workspaces and members |
| Integrations | CRUD operations on integrations |
| Integration Files | Upload, download, push, and deploy integration files |
| Runs | Trigger and monitor integration runs |
| Credentials | Manage API keys and OAuth2 connections |
| Data Stores | Create and query data stores |
| Knowledge Base | Workspace documentation |
Machine-Readable API Docs
The full API specification is available as a JSON endpoint (no auth required):
curl https://app.headlessops.ai/api/docsThis is the same endpoint consumed by AI agents and MCP clients.