Developers
API Overview
Call Forge from your own software with your API key, REST, and WebSockets.
Everything you can do in the Forge screens can also be done from your own software. Every user has an API key in Settings → API Key. It acts with that user's permissions in their company. Treat it like a password. There is no button to rotate it, so never paste it into a public page. Use an embed token instead.
Send the key on every request in the solomon-consumer-key header. Add active-workspace-id to act inside a specific workspace. Ownership checks do not depend on that header.
The live API reference is published by the Forge backend at /docs, with the OpenAPI document at /openapi.json and /openapi.yaml. That generated spec is the contract. The current platform is /api/v3. /api/v2 remains for account sign-in and for vector stores. WebSocket routes are documented there as well.
What you can call
- Chat and conversations.
/api/v3/chat,/api/v3/sessions, shared sessions, and sub-agent tasks. - Agents.
/api/v3/agents, folders, sharing, guardrails, skills, and classifiers. - Knowledge and tools.
/api/v3/memories, documents, the MCP catalog, API actions, and the agents catalog. - Automation.
/api/v3/schedulerand events. - Channels and voice.
/api/v3/channels, WhatsApp, voice, phone numbers, and meetings. - Computers.
/api/v3/agent-workspacesand/api/v3/devices. - Company. Workspaces, users, and usage.
Chat can be synchronous at POST /api/v3/chat/send, a one-way stream at POST /api/v3/chat/stream, or bidirectional at WS /api/v3/chat/ws. All three require permission to send messages and run the same agent.
Embeds
Mint a short-lived embed token on your server with POST /api/v3/embed/tokens. The lifetime is from one minute to 24 hours, one hour by default. Only a token with a permissions cap can last longer, up to 30 days. The browser receives the token, never the API key. Views include chat, workspace, agent detail, the marketplaces, channels, devices, classifiers, memories, and agent computers. Users, sharing, account keys, and Forge's MCP server are never reachable with an embed token.
A website embed key, pk_embed_…, is for a public page. It is exchanged at POST /api/v3/embed/visitor-sessions for a one-hour visitor token limited to one agent. Manage those keys from the agent's Developer section. The agent must be in a workspace.
Partners who received a provisioning key can create accounts with POST /api/v3/provider/accounts and sign those users in with POST /api/v3/provider/login. Each new account is its own company.
