Page options
Biocompile API reference: every operation and its scopes
Last updated
On this page
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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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
Was this page helpful?
Something wrong or missing?