---
title: "Biocompile API for research projects and records"
description: "Create, rename and archive Biocompile research projects through the API, and read their hypotheses, observations and other research records."
url: https://www.biocompile.com/docs/api-projects/
section: "API and integrations"
last_updated: 2026-11-20
app_url: https://app.biocompile.com/research-hub
---

# Biocompile API for research projects and records

> Create, rename and archive Biocompile research projects through the API, and read their hypotheses, observations and other research records.

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

The Biocompile API reads and manages research projects and the research records inside
them. With `projects:write` a token creates, renames and archives projects, and with
`entities:read` it reads hypotheses, observations and the other records a project holds.

A Biocompile project is the home of one line of research: its questions, hypotheses,
evidence, plans and decisions, next to the files and results that produced them.

Project operations live under `/api/v1/organizations/{organization_id}/research-projects/`.
Each one applies the same checks as the app, so a token reaches only the projects you can
open there.

## List and read projects

`GET .../research-projects/` lists the projects you can see, with `limit`, `skip`, `status`,
`team_id` and `search` to filter. `GET .../research-projects/{project_id}` reads one. Both
need `projects:read`.

```bash
curl -s "https://app.biocompile.com/api/v1/organizations/$ORG_ID/research-projects/?status=active&limit=50" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

## Create a project

`POST .../research-projects/` creates a project and answers with it:

```bash
curl -s --request POST "https://app.biocompile.com/api/v1/organizations/$ORG_ID/research-projects/" \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"name": "Kinase inhibitor screen", "description": "Phase 1 hits from the March plate run", "tags": ["screening"]}'
```

A token may set these fields when it creates a project:

| Field | Meaning |
|---|---|
| `name` | Required, 1 to 255 characters, unique in the organization |
| `description`, `motivation` | Free text |
| `status` | `draft` (the default), `active`, `completed` or `archived` |
| `tags` | A list of strings |
| `visible_to_teams` | The teams that can see the project. Empty means everyone in the organization. |

Any member can create a project, as in the app. A service account cannot, because it sees
only projects an admin granted it. Ask an admin to create the project and grant it to the
service account.

## Rename, describe or archive a project

`PATCH .../research-projects/{project_id}` changes only the fields you send: `name`,
`description`, `motivation`, `status` and `tags`. Add a `reason` of at least 10 characters to
keep why you made the change in the project's history.

Archive a project by setting its status, exactly as the app's status menu does:

```bash
curl -s --request PATCH "https://app.biocompile.com/api/v1/organizations/$ORG_ID/research-projects/$PROJECT_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"status": "archived", "reason": "Screen finished after the third replicate."}'
```

Archiving keeps everything in the project. Set another status, such as `active`, to restore
it. If your organization requires approval before a project reaches a final status, the
change answers `422` until it is approved.

## Settings that stay in the app

Some project settings can be changed only by a person in Biocompile. A token that sends one
gets `403` with the code `field_not_writable`:

- Who can see an existing project.
- Whether the assistant and the API may change the project.
- The weekly project watch and its e-mail frequency.

No API operation deletes a project, because the app does not offer it either. A project whose
change policy is observe only refuses every change through the API with `403` and the code
`project_read_only`.

## Read research records

Research records are the hypotheses, observations and other entries that make up a project's
world model. Reading them needs `entities:read`:

| Operation | What it returns |
|---|---|
| `GET .../world-model/hypotheses` | Hypotheses, filtered by `project_slug`, `review_status` or `search` |
| `GET .../world-model/hypotheses/{slug}` | One hypothesis |
| `GET .../world-model/observations` | Observations, with the same filters |
| `GET .../world-model/observations/{slug}` | One observation |
| `GET .../world-model/entities/{entity_type}` | Records of any other type, filtered by project, status or tags |

The paths start with `/api/v1/organizations/{organization_id}`. Lists page with `limit` and
`cursor`. To change records, propose the change through a workbench, as described in
[Propose changes to a project through the API](https://www.biocompile.com/docs/api-workbenches.md).

## Common questions

### Can I delete a research project through the Biocompile API?

No. Archive it with `PATCH` and `"status": "archived"`. Archiving keeps every record, and
setting another status restores the project.

### Can a service account create projects?

No. A service account sees only the projects an admin grants it. An admin creates the project
and grants it, or you use a personal access token.

### Can the API write hypotheses directly?

No. Changes to research records are drafted in a workbench, and merge into the project when a
person contributes them.

## Related

- [Propose changes to a project through the API](https://www.biocompile.com/docs/api-workbenches.md)
- [Read a project's history through the API](https://www.biocompile.com/docs/api-contributions.md)
- [API scopes and permissions](https://www.biocompile.com/docs/api-scopes.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-projects.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/.
