---
title: "Biocompile API reference: every operation and its scopes"
description: "Every operation in version 1 of the Biocompile public API, grouped by resource, with its method, path, required scopes and parameters."
url: https://www.biocompile.com/docs/api-reference/
section: "API and integrations"
last_updated: 2026-11-20
---

# Biocompile API reference: every operation and its scopes

> Every operation in version 1 of the Biocompile public API, grouped by resource, with its method, path, required scopes and parameters.

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

The Biocompile API reference lists every operation an access token can call in version 1, grouped by resource.
Each row gives the method and path under `https://app.biocompile.com`, the scopes the token needs and the parameters the operation takes.
Path parameters appear in braces, and a field marked (body) must be sent in the JSON body.

An operation that is not listed answers `403` with the code `not_public`, even when the app uses it.
A token never does more than its owner may do in the app, whatever its scopes.

## Authentication endpoints

Authentication endpoints issue and revoke the tokens every other call carries.
They are not called with an access token, so they have no scopes.
The full flow is under [API authentication](https://www.biocompile.com/docs/api-authentication.md).

| Operation | Method and path | Called with |
| --- | --- | --- |
| Exchange a credential for an access token | `POST /api/v1/oauth/token` | Personal access token or service account key |
| Start an OAuth sign-in | `GET /api/v1/oauth/authorize` | A person in a browser |
| Register an AI assistant client | `POST /api/v1/oauth/register` | None |
| Revoke an access or refresh token | `POST /api/v1/oauth/revoke` | The token itself |
| Discover the token endpoint | `GET /.well-known/openid-configuration` | None |
| Discover the OAuth endpoints | `GET /.well-known/oauth-authorization-server` | None |

## Organizations

Organization operations list the organizations you belong to and read one of them. The guide is [API for projects and research records](https://www.biocompile.com/docs/api-projects.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List organizations | `GET /api/v1/organizations/` | `projects:read` | `skip`, `limit` |
| Get organization | `GET /api/v1/organizations/{organization_id}` | `projects:read` | None |

## Research projects

Research project operations list, read, create, rename and archive projects. The guide is [API for projects and research records](https://www.biocompile.com/docs/api-projects.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List research projects | `GET /api/v1/organizations/{organization_id}/research-projects/` | `projects:read` | `skip`, `limit`, `status`, `team_id`, `search`, `cursor` |
| Create research project | `POST /api/v1/organizations/{organization_id}/research-projects/` | `projects:write` | `name` (body) |
| Get research project | `GET /api/v1/organizations/{organization_id}/research-projects/{project_id}` | `projects:read` | None |
| Update research project | `PATCH /api/v1/organizations/{organization_id}/research-projects/{project_id}` | `projects:write` | `expected_updated_at` |
| Get research project at version | `GET /api/v1/organizations/{organization_id}/research-projects/{project_id}/versions/{version}` | `entities:read` | None |

## Research records

Research record operations read hypotheses, observations and the other records of the world model. The guide is [API for projects and research records](https://www.biocompile.com/docs/api-projects.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List world model entities | `GET /api/v1/organizations/{organization_id}/world-model/entities/{entity_type}` | `entities:read` | `project_slug`, `status`, `data_type`, `tags`, `executable_slug`, `skip`, `limit`, `cursor`, `search`, `sort_order` |
| List hypotheses | `GET /api/v1/organizations/{organization_id}/world-model/hypotheses` | `entities:read` | `project_slug`, `review_status`, `include_superseded`, `skip`, `limit`, `cursor`, `search`, `sort_order` |
| Get hypothesis | `GET /api/v1/organizations/{organization_id}/world-model/hypotheses/{slug}` | `entities:read` | None |
| List observations | `GET /api/v1/organizations/{organization_id}/world-model/observations` | `entities:read` | `project_slug`, `review_status`, `include_superseded`, `skip`, `limit`, `cursor`, `search`, `sort_order` |
| Get observation | `GET /api/v1/organizations/{organization_id}/world-model/observations/{slug}` | `entities:read` | None |

## Workbenches

Workbench operations open a workbench, draft changes and files in it, and contribute them to the project, where they merge at once. The guide is [Change a project through the API](https://www.biocompile.com/docs/api-workbenches.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List action types | `GET /api/v1/organizations/{organization_id}/action-types` | `entities:read` | None |
| Get action type | `GET /api/v1/organizations/{organization_id}/action-types/{action_type_id}` | `entities:read` | None |
| List workbenches | `GET /api/v1/organizations/{organization_id}/workbenches` | `entities:read` | None |
| Open workbench | `POST /api/v1/organizations/{organization_id}/workbenches` | `entities:write` | None |
| Get workbench | `GET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}` | `entities:read` | None |
| Update workbench | `PATCH /api/v1/organizations/{organization_id}/workbenches/{workbench_id}` | `entities:write` | None |
| Contribute | `POST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/contributions` | `contributions:write` | `title` (body), `summary` (body), `include` (body), `expected_project_version` (body) |
| Prepare contribution | `POST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/contributions/prepare` | `entities:write` | `title` (body), `summary` (body), `include` (body) |
| List drafts | `GET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/drafts` | `entities:read` | None |
| Write drafts | `POST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/drafts` | `entities:write` | `Idempotency-Key` (header), `intents` (body) |
| Discard draft | `DELETE /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/drafts/{ref}` | `entities:write` | None |
| List workbench files | `GET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files` | `files:read` | None |
| Upload workbench file | `POST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files` | `files:write` | None |
| Update workbench file | `PATCH /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}` | `files:write` | None |
| Delete workbench file | `DELETE /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}` | `files:write` | None |
| Read workbench file content | `GET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}/content` | `files:read` | `revision` |
| Replace workbench file content | `PUT /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}/content` | `files:write` | None |

## Project history

History operations read a project's contributions and every published revision of a record. The guide is [Read a project's history through the API](https://www.biocompile.com/docs/api-contributions.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List an item's revisions | `GET /api/v1/organizations/{organization_id}/items/{slug}/revisions` | `entities:read` | `include_snapshots` |
| List contributions | `GET /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions` | `entities:read` | `status`, `cursor`, `limit` |
| Get contribution | `GET /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}` | `entities:read` | None |
| Get an item revision | `GET /api/v1/organizations/{organization_id}/revisions/{identifier}` | `entities:read` | None |

## Files

File operations read a published file and its content by identifier. Workbench operations change files as drafts. The guide is [Files through the API](https://www.biocompile.com/docs/api-files.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| Get a published file | `GET /api/v1/organizations/{organization_id}/files/{slug}` | `files:read` | `revision` |
| Read a published file's content | `GET /api/v1/organizations/{organization_id}/files/{slug}/content` | `files:read` | `revision` |

## Executables and plans

Executable operations read the catalog, plan an invocation, approve its spending and start it. The guide is [Run analyses and approve spending](https://www.biocompile.com/docs/api-runs-and-spending.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| Invoke invocation plan | `POST /api/v1/organizations/{organization_id}/executable-invocation-plans/{plan_id}/invoke` | `runs:execute` | None |
| Refresh invocation plan | `POST /api/v1/organizations/{organization_id}/executable-invocation-plans/{plan_id}/refresh` | `runs:execute` | None |
| Approve or decline a plan's spending | `POST /api/v1/organizations/{organization_id}/executable-invocation-plans/{plan_id}/spending-approval` | `runs:execute` and `spending:approve` | `binding` (body) |
| List executables | `GET /api/v1/organizations/{organization_id}/executables` | `runs:read` | `kind`, `lifecycle`, `adapter`, `project_slug`, `stage_id`, `search`, `include_internal`, `include_unavailable`, `include_archived`, `skip`, `limit`, `cursor` |
| Get executable | `GET /api/v1/organizations/{organization_id}/executables/{executable_id}` | `runs:read` | `stage_id` |
| Create invocation plan | `POST /api/v1/organizations/{organization_id}/executables/{executable_id}/invocation-plans` | `runs:execute` | None |
| Invoke executable | `POST /api/v1/organizations/{organization_id}/executables/{executable_id}/invoke` | `runs:execute` | None |
| Get executable catalog | `GET /api/v1/organizations/{organization_id}/executables/catalog` | `runs:read` | `surface`, `stage_id`, `search`, `limit`, `include_definitions` |
| List runnable sandboxes | `GET /api/v1/organizations/{organization_id}/sandboxes/runnable` | `runs:execute` | `skip`, `limit` |

## Computes

Compute operations list the machines a Run or a sandbox can use and read each version of one. The guide is [Run analyses and approve spending](https://www.biocompile.com/docs/api-runs-and-spending.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List computes | `GET /api/v1/organizations/{organization_id}/computes` | `runs:read` | `purpose` |
| Get compute | `GET /api/v1/organizations/{organization_id}/computes/{identifier}` | `runs:read` | None |
| List compute versions | `GET /api/v1/organizations/{organization_id}/computes/{identifier}/versions` | `runs:read` | None |

## Runs

Run operations follow a Run, read its logs, download its artifacts and cancel it. The guide is [Run analyses and approve spending](https://www.biocompile.com/docs/api-runs-and-spending.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List runs | `GET /api/v1/organizations/{organization_id}/runs` | `runs:read` | `status`, `executable_slug`, `project_slug`, `conversation_id`, `include_archived`, `holding`, `skip`, `limit`, `cursor` |
| Get run | `GET /api/v1/organizations/{organization_id}/runs/{run_slug}` | `runs:read` | `include_task_attempts` |
| Download run artifact | `GET /api/v1/organizations/{organization_id}/runs/{run_slug}/artifacts/{artifact_id}/download` | `runs:read` | None |
| Cancel run | `POST /api/v1/organizations/{organization_id}/runs/{run_slug}/cancel` | `runs:execute` | None |
| Get run logs | `GET /api/v1/organizations/{organization_id}/runs/{run_slug}/logs` | `runs:read` | `after`, `limit` |

## Conversations

Conversation operations open a conversation with the assistant, send messages and poll the answers. The guide is [Talk to the assistant through the API](https://www.biocompile.com/docs/api-conversations.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List conversations | `GET /api/v1/organizations/{organization_id}/conversations` | `agent:converse` | `cursor`, `limit` |
| Create conversation | `POST /api/v1/organizations/{organization_id}/conversations` | `agent:converse` | None |
| Get conversation | `GET /api/v1/organizations/{organization_id}/conversations/{conversation_id}` | `agent:converse` | `cursor`, `limit`, `include` |
| Send conversation turn | `POST /api/v1/organizations/{organization_id}/conversations/{conversation_id}/turns` | `agent:converse` | `Idempotency-Key` (header), `message` (body) |
| Get conversation turn | `GET /api/v1/organizations/{organization_id}/conversations/{conversation_id}/turns/{turn_id}` | `agent:converse` | `after`, `include` |
| Respond to conversation turn | `POST /api/v1/organizations/{organization_id}/conversations/{conversation_id}/turns/{turn_id}/respond` | `agent:converse` | `action_id` (body), `decision` (body) |

## Webhooks

Webhook operations manage subscriptions, rotate their secrets and read the delivery log. The guide is [Webhooks for runs and contributions](https://www.biocompile.com/docs/api-webhooks.md).

| Operation | Method and path | Scopes | Parameters |
| --- | --- | --- | --- |
| List webhooks | `GET /api/v1/organizations/{organization_id}/webhooks` | `webhooks:manage` | None |
| Create webhook | `POST /api/v1/organizations/{organization_id}/webhooks` | `webhooks:manage` | `url` (body), `events` (body) |
| Get webhook | `GET /api/v1/organizations/{organization_id}/webhooks/{webhook_id}` | `webhooks:manage` | None |
| Update webhook | `PATCH /api/v1/organizations/{organization_id}/webhooks/{webhook_id}` | `webhooks:manage` | None |
| Delete webhook | `DELETE /api/v1/organizations/{organization_id}/webhooks/{webhook_id}` | `webhooks:manage` | None |
| List webhook deliveries | `GET /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/deliveries` | `webhooks:manage` | `cursor`, `limit` |
| Redeliver webhook delivery | `POST /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/deliveries/{delivery_id}/redeliver` | `webhooks:manage` | None |
| Rotate webhook secret | `POST /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/rotate-secret` | `webhooks:manage` | None |
| Send webhook test | `POST /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/test` | `webhooks:manage` | None |

## Common questions

### Which operations can an API token call?

Only the operations in the Biocompile API reference.
Any other endpoint answers `403` with the code `not_public`, including endpoints the app itself uses.

### What happens when a token lacks a scope?

The API answers `403` with the code `insufficient_scope`.
The `WWW-Authenticate` header names the missing scope, so you can add it to the credential and exchange it again.

### Will these operations change?

Only by addition while the API is version 1.
Operations, optional fields and response fields can be added, but nothing is removed or made required.

## Related

- [API authentication](https://www.biocompile.com/docs/api-authentication.md)
- [API scopes and permissions](https://www.biocompile.com/docs/api-scopes.md)
- [API errors and rate limits](https://www.biocompile.com/docs/api-errors-and-limits.md)
- [API versioning and stability](https://www.biocompile.com/docs/api-versioning.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-reference.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/.
