Page options
Biocompile API: scripts, AI assistants and partner apps
Last updated
On this page
The Biocompile public API lets your own software do what you do in the app: read projects and research records, propose changes, manage Knowledge Atlas files, run analyses and talk to the assistant. Scripts call it with tokens, AI assistants connect to it over MCP, and partner apps act for the people who connect them.
Every call passes the same permission checks as the app. A token never does more than the person or service account behind it, and its scopes can only narrow that further.
Ways to connect
Each kind of client uses its own credential, and each credential acts as someone:
| Client | Credential | Acts as | Set up in |
|---|---|---|---|
| Your scripts and notebooks | Personal access token | You | Settings → API tokens |
| Pipelines and scheduled jobs | Service account key | A service account of your organization | Organization → Service accounts |
| AI assistants such as Claude, Cursor or VS Code | OAuth sign-in over MCP | You, within the permissions you approve | The assistant’s MCP settings |
| Partner apps such as a LIMS or an ELN | OAuth app | Each person who connects the app | Organization → OAuth apps |
A personal access token is the quickest start. A service account suits automation that must keep working when people change roles or leave. The details are under API authentication.
What the API covers
The public API covers a research workflow from start to finish:
- Read, create, rename and archive research projects.
- Read hypotheses, observations and the other research records of a project.
- Propose changes to a project, and accept or send back proposed changes.
- List, download, upload and organize Knowledge Atlas files.
- Plan analyses, approve their spending, start them and download the results.
- Hold a conversation with the AI research assistant.
- Receive a webhook when a Run finishes or a contribution needs review.
Organization settings stay in the app: members, security policy, service accounts and OAuth apps. So do the project settings that decide who sees a project and whether the assistant may change it. The Biocompile API reference lists every operation.
Billing for API use
API calls are not billed. The work a call starts, such as an analysis, an assistant turn or a paid tool, is charged exactly as if you had started it in the app. It draws on the same plan and credits, under the same spending limits and approvals.
Decisions that stay with a person
Two decisions need a person in the app unless you hand them to a token on purpose:
spending credits, and accepting changes into a project. A token can make them only with the
sensitive scopes spending:approve and contributions:review. Grant those only to
credentials you would trust to make the decision for you. The risks are explained under
Sensitive scopes.
Audit trail
Every change made through the API is recorded in your organization’s history, like a change made in the app. The record names the person or service account, the credential used and, for an AI assistant or partner app, the app that acted for the person.
Common questions
Does the Biocompile API cost extra?
No. API calls themselves are free. The analyses, assistant work and paid tools they start are charged like the same work started in the app.
Can an API token see more than I can see in the app?
No. A token is checked against your own permissions on every call, and its scopes only narrow them. If you leave an organization, your tokens lose access to it at once.
Which credential should I use?
A personal access token for your own scripts, a service account for shared automation, and an MCP connection for an AI assistant. A partner app uses OAuth and is registered by an organization admin.
Related
Was this page helpful?
Something wrong or missing?