---
title: "Biocompile API: scripts, AI assistants and partner apps"
description: "Use Biocompile from Python scripts, pipelines, Claude and other MCP assistants or partner apps, with scoped tokens and the same permissions as the app."
url: https://www.biocompile.com/docs/api-overview/
section: "API and integrations"
last_updated: 2026-11-20
app_url: https://app.biocompile.com/settings
---

# Biocompile API: scripts, AI assistants and partner apps

> Use Biocompile from Python scripts, pipelines, Claude and other MCP assistants or partner apps, with scoped tokens and the same permissions as the app.

Source: https://www.biocompile.com/docs/api-overview/. Index of all Biocompile documentation: https://www.biocompile.com/docs/index.md

The Biocompile public API lets your own software do what you do in the app: read projects
and research records, change projects through workbenches, work with 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](https://www.biocompile.com/docs/api-authentication.md).

## 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.
- Draft changes in a workbench and contribute them to a project, where they merge at once.
- Read a project's history: its contributions, versions and the revisions of each record.
- Read published files, and upload and change files as drafts in a workbench.
- 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 merges.

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](https://www.biocompile.com/docs/api-reference.md) 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 contributing changes to a project. A token can make them only with the
sensitive scopes `spending:approve` and `contributions:write`. Grant those only to
credentials you would trust to make the decision for you. The risks are explained under
[Sensitive scopes](https://www.biocompile.com/docs/api-scopes.md#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

- [Biocompile API quick start](https://www.biocompile.com/docs/api-quickstart.md)
- [API authentication](https://www.biocompile.com/docs/api-authentication.md)
- [API scopes and permissions](https://www.biocompile.com/docs/api-scopes.md)
- [Connect AI assistants over MCP](https://www.biocompile.com/docs/mcp-ai-assistants.md)
- [Biocompile API reference](https://www.biocompile.com/docs/api-reference.md)

## Get access to Biocompile

Biocompile is used in the browser at https://app.biocompile.com. It is free to start and no payment method is required: sign up at https://app.biocompile.com/signup?mc_cta=docs-md&mc_path=/docs/api-overview.md. If your team already uses Biocompile, ask an organization admin to invite you. Research teams that want hands-on setup can apply for the founder-led pilot at https://www.biocompile.com/pilot/. Questions: https://www.biocompile.com/contact/.
