Collio for developers
Your Collio agents — with their instructions, knowledge and tools — can work outside Collio: in Claude, in n8n, Make and Zapier workflows, or in your own code. Every message is an ordinary Collio chat: it appears in your chats and uses your credits exactly as if you typed it in the app.
Get started
- API access is part of the Pro and Business plans.
- In Collio open Settings → API & integrations and create a key. Give it a name (e.g. “n8n”) and only the scopes it needs: read (teams, agents, chats, results), chat (send messages, run scheduled tasks — uses credits), files (add documents).
- Copy the key (collio_sk_…). It is shown once; Collio stores only a hash of it. Revoke it there any time.
- Send it as the header Authorization: Bearer collio_sk_… (or X-API-Key: collio_sk_…).
Claude (MCP)
Collio is an MCP server at https://collio.chat/mcp (Streamable HTTP). Its tools: list_agents, ask_agent, ask_department, get_run, list_threads, get_thread, upload_document, list_scheduled_tasks and run_scheduled_task. Answers include the chat's link in Collio.
Claude.ai (web and desktop) — custom connector: Settings → Connectors → Add custom connector, name it “Collio”, URL https://collio.chat/mcp. Claude opens Collio to sign you in; approve it, and the connector appears under Settings → API & integrations → Connected apps, where you can disconnect it.
Claude Code:
claude mcp add --transport http collio https://collio.chat/mcp \
--header "Authorization: Bearer collio_sk_…"Claude Desktop with an API key (claude_desktop_config.json; needs Node.js):
{
"mcpServers": {
"collio": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://collio.chat/mcp",
"--header", "Authorization: Bearer ${COLLIO_API_KEY}"
],
"env": { "COLLIO_API_KEY": "collio_sk_…" }
}
}
}Then just ask: “Ask my @Marketing Strategist in Collio for three taglines”, or “What did the Sales department say yesterday?”. Cursor, Windsurf, VS Code and other MCP clients use the same URL and header.
n8n
MCP Client node (n8n 1.88+, also as an AI Agent tool):
- Add an “MCP Client Tool” (or “MCP Client”) node. Endpoint: https://collio.chat/mcp, transport: HTTP Streamable.
- Authentication: Bearer, with your collio_sk_… key as the token (or Header Auth: Authorization = Bearer collio_sk_…).
- Tools to include: all, or pick ask_agent and list_agents. An AI Agent node can now call your Collio agents.
HTTP Request node (no AI Agent needed):
- Method POST, URL https://collio.chat/api/v1/messages.
- Authentication: Generic → Header Auth, name Authorization, value Bearer collio_sk_….
- Body: JSON, e.g. {"agent": "@Writer", "message": "{{ $json.text }}"}. The answer is in answer (and replies).
- For long jobs send "async": true and react to the run.completed webhook with a Webhook trigger node.
Make
- Add an HTTP → “Make a request” module: URL https://collio.chat/api/v1/messages, method POST, header Authorization: Bearer collio_sk_…, body type Raw, content type JSON, request content {"agent": "@Writer", "message": "…"}. Turn on “Parse response”.
- To start a scenario when Collio finishes: add a Webhooks → “Custom webhook” trigger, copy its URL, and add it in Collio (Settings → API & integrations → Webhooks, or POST /webhooks). Send a test event from there.
- Make's MCP Client module works too: server URL https://collio.chat/mcp with the same Authorization header.
Zapier
- Action: “Webhooks by Zapier” → Custom Request (or POST): URL https://collio.chat/api/v1/messages, data {"agent": "@Writer", "message": "…"}, headers Authorization: Bearer collio_sk_… and Content-Type: application/json.
- Trigger: “Webhooks by Zapier” → Catch Hook; add the hook URL as a Collio webhook to run a Zap on every run.completed.
- Zapier MCP: to let Claude use your Zaps and Collio together, add Zapier MCP and Collio as two connectors in Claude.
- A native Collio app in the Zapier and Make directories is not available yet; the webhook and HTTP modules above do the same job.
REST API
Base URL https://collio.chat/api/v1. JSON in and out; errors are {"error": {"code", "message"}}. The full contract is the OpenAPI file.
GET /me who the key belongs to
GET /teams teams and departments (read)
GET /agents?team_id=&department_id= agents you can chat with (read)
POST /messages to an agent, department or Collio (chat)
POST /agents/{id}/messages to one agent (chat)
POST /departments/{id}/messages to a department (chat)
GET /runs/{runId} a run's status and answer (read)
GET /threads?team_id=&search= your chats (read)
GET /threads/{id}/messages a chat's messages (read)
POST /departments/{id}/documents add knowledge (RAG) (files)
POST /teams/{id}/documents add team knowledge (files)
GET /scheduled-tasks your scheduled tasks (read)
POST /scheduled-tasks/{id}/run run one now (chat)
GET /webhooks · POST /webhooks · DELETE /webhooks/{id} · POST /webhooks/{id}/testAsk an agent by name (or agent_id / department_id). It waits up to 60 seconds (wait, max 120) for the answer:
curl https://collio.chat/api/v1/messages \
-H "Authorization: Bearer $COLLIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agent": "@Marketing Strategist", "message": "Three taglines for our spring sale"}'The answer is a run. Pass thread_id back to continue the same chat:
{
"id": "run_8Hq…",
"status": "completed",
"threadId": "5f0c…",
"threadUrl": "https://collio.chat/chat/5f0c…",
"replies": [{ "agentId": 42, "agentName": "Marketing Strategist", "content": "1. …" }],
"answer": "1. …"
}If the answer is not ready in time you get 202 with the run; poll it, or send async and wait for the webhook:
# Answer at once with a run id (202), then poll it — or get a webhook
curl https://collio.chat/api/v1/departments/7/messages \
-H "Authorization: Bearer $COLLIO_API_KEY" -H "Content-Type: application/json" \
-d '{"message": "Weekly report from these numbers: …", "async": true}'
curl https://collio.chat/api/v1/runs/run_8Hq… -H "Authorization: Bearer $COLLIO_API_KEY"Add a document to a department (.pdf, .docx, .txt, .md, up to 15 MB; team owners and admins). JSON with filename and text or content_base64 works too:
curl https://collio.chat/api/v1/departments/7/documents \
-H "Authorization: Bearer $COLLIO_API_KEY" \
-F "[email protected]"Webhooks
Register a public https URL; Collio POSTs run.completed (and ping for tests) when a message sent through the API or MCP finishes — completed or failed. Answer with any 2xx; failed deliveries are retried after 1 min, 5 min, 30 min, 2 h and 6 h. Private and local addresses are refused.
{
"id": "evt_…",
"event": "run.completed",
"createdAt": "2026-11-27T10:00:00Z",
"data": { "id": "run_…", "status": "completed", "threadUrl": "…", "answer": "…", "replies": [ … ] }
}Every delivery carries Collio-Signature: t=<unix time>,v1=<HMAC-SHA256 of "<t>.<raw body>" with the webhook's secret>, plus Collio-Event and Collio-Delivery. Verify it before trusting the body:
import crypto from 'node:crypto'
// header: the Collio-Signature header, rawBody: the request body as received
export function verifyCollio(header, rawBody, secret) {
const parts = Object.fromEntries(header.split(',').map(p => p.split('=')))
const age = Math.abs(Date.now() / 1000 - Number(parts.t))
if (!parts.t || !parts.v1 || age > 300) return false
const want = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex')
return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(parts.v1))
}Credits, limits and security
- Messages use your credits exactly like the app, including your plan's model rules and any creator price of a shared agent (confirm that price once in Collio first). With no credits left the API answers 402.
- Each key may make 60 requests a minute (see the X-RateLimit-* headers; 429 with Retry-After beyond it), and up to three messages run at once per account.
- Keys act as you, within what you can do in Collio: the same teams, departments and agents. Scopes limit them further.
- Settings → API & integrations shows every request made with your keys and connected apps (kept 30 days). Revoke a key there and it stops at once.