HeadlessOps
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/api

Authentication

Include your API key in the Authorization header:

Authorization: Bearer iter_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

API keys are scoped to a workspace — the workspace is resolved automatically. Use the flat paths (e.g. /api/integrations) with API key auth.

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

GroupDescription
WorkspacesCreate and manage workspaces and members
IntegrationsCRUD operations on integrations
Integration FilesUpload, download, push, and deploy integration files
RunsTrigger and monitor integration runs
CredentialsManage API keys and OAuth2 connections
Data StoresCreate and query data stores
Knowledge BaseWorkspace documentation

Machine-Readable API Docs

The full API specification is available as a JSON endpoint (no auth required):

curl https://app.headlessops.ai/api/docs

This is the same endpoint consumed by AI agents and MCP clients.