/api. Most endpoints need a JWT from POST /api/auth/login. Responses are JSON unless the endpoint streams events or returns a file.
Base URL
Get a token
Post your username and password toPOST /api/auth/login, then send the token on later requests:
?token=<access_token>. You can also sign in with OIDC or an invite link — see Authentication.
Interactive API docs
Octop ships the Scalar interface for trying endpoints in the browser. It is off by default.1
Enable it
Set
"enable_api_docs": true in ~/.octop/config.json, or set OCTOP_ENABLE_API_DOCS=1.2
Restart Octop
Restart
octop run.3
Open the docs
Visit
http://127.0.0.1:8088/api/docs. The raw schema is always at /api/openapi.json.Who can call what
Administrators can do everything. Regular users only get extra settings access if you grant it.
Check that the server is up
Explore the API
Authentication
Log in, renew tokens, and sign in with OIDC or an invite.
Users and admin
Create accounts, send invites, and read audit data.
Agents
Create, share, and run agents.
Chat
Stream turns and manage threads.
Knowledge
Create knowledge bases and upload documents.

