API and AI assistants
Your procedures, reachable from every system and AI assistant you use.
Your WMS can put the receiving check in the dock crew's queue the moment a truck is booked. A supervisor can ask Claude how cycle counts are done here and get the version the team runs today. Both use the same workflows, runs and flags your managers see in OpsBrain.
Queue a run from your WMS
curl https://app.opsbrain.io/api/v1/runs \
-H "Authorization: Bearer $OPSBRAIN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: po-77821-receive" \
-d '{
"workflow_id": "0199...",
"team_id": "0199...",
"name": "Receive PO-77821",
"external_ref": "PO-77821",
"priority": "high",
"answers": [
{ "step_id": "0199...", "value": "12", "mode": "confirm" }
]
}'What connects
Five ways in and out of OpsBrain
Pick the one that fits who's connecting. They all work with the same workflows and teams.
REST API
Your systems read workflows, runs, flags and insights, and queue runs for a team.
MCP server
Claude, Cursor, VS Code or your own agent look up procedures and results for you.
Webhooks
OpsBrain tells your systems when a run finishes or someone raises a flag.
Zapier
Start Zaps from OpsBrain events without writing code.
External triggers
Send events from any system and let your rules decide which run to queue.
Getting started
From a key to your first queued run
- 1
Create a key
A manager creates an API key in Integrations and chooses what it can do. Read only is a good first key.
- 2
Check it works
Call /me with the key. It answers with your organization's name and the key's scopes.
- 3
Connect something real
Point your ERP at the runs endpoint, or add the MCP server to your assistant.
Examples
Work that starts somewhere else and finishes in OpsBrain
Safeguards
A key only does what you allow
- Scopes
- Each key gets its own scopes, like reading runs or queueing them. A read-only key can't change anything.
- One organization
- A key sees one organization. An id from anywhere else answers as not found.
- Managers decide
- Nothing through the API or the MCP server publishes a workflow, deletes data, or changes members, billing or settings.
- Stop it any time
- Rotate a key with time to switch over, or revoke it and it stops on its next request.
- Limits and records
- Every key has rate limits, and each change it makes is recorded with its name.
FAQ
Questions developers ask
- Which plans include the API?
- All of them, Free included. The plan sets how many requests all your keys can make together: 60 a minute on Free, 300 on Growth, and 600 on Business and Enterprise.
- Is there an SDK?
- Not yet. The API is plain JSON over HTTPS, and the OpenAPI 3.1 file lets you generate a client in most languages or import every endpoint into Postman.
- Which AI assistants can connect?
- Claude, Claude Code, Cursor, VS Code, and any MCP client that can send a header. ChatGPT needs a sign-in flow (OAuth) that OpsBrain doesn't offer yet.
- Can the API change our procedures?
- It can start a draft from a written description. A manager reviews and publishes it in OpsBrain, like any other draft. The API can't publish or edit a live workflow.
- Where is the full reference?
- In the OpsBrain docs, with every endpoint, error code and example in curl, JavaScript and Python. The docs are public, so you can read them before you sign up.