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 |
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 stage proposed changes to a project and submit them for review. The guide is Propose changes to 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 |
| Open workbench | POST /api/v1/organizations/{organization_id}/workbenches | entities:write | project_slug (body) |
| Get workbench | GET /api/v1/organizations/{organization_id}/workbenches/{workbench_id} | entities:read | None |
| Stage workbench actions | POST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/actions | entities:write | Idempotency-Key (header), expected_revision_id (body), intents (body) |
| List workbench changes | GET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/changes | entities:read | None |
| Submit workbench | POST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/submit | entities:write | expected_revision_id (body), title (body), summary (body) |
Contributions
Contribution operations read a project’s review queue and accept, decline or send back a contribution. The guide is Review contributions through the API.
| Operation | Method and path | Scopes | Parameters |
|---|---|---|---|
| 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 |
| Accept contribution | POST /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}/accept | contributions:review | None |
| Request contribution revision | POST /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}/request-revision | contributions:review | instructions (body) |
| Withdraw contribution | POST /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}/withdraw | contributions:review | None |
Files
File operations list, download, upload and organize your Knowledge Atlas files in the token’s organization. The guide is Knowledge Atlas files through the API.
| Operation | Method and path | Scopes | Parameters |
|---|---|---|---|
| List files | GET /api/v1/kh/files/ | files:read | page, per_page, sort_by, sort_order, file_type, experiment_id, path, absolute_path, search, location_type, workspace_id |
| Get a file’s metadata | GET /api/v1/kh/files/{file_id} | files:read | None |
| Change a file’s description or tags | PATCH /api/v1/kh/files/{file_id} | files:write | None |
| Delete file | DELETE /api/v1/kh/files/{file_id} | files:write | None |
| Download file | GET /api/v1/kh/files/{file_id}/download | files:read | version |
| Rename or move a file or folder | PATCH /api/v1/kh/files/{file_id}/move | files:write | new_path (body) |
| Create folder | POST /api/v1/kh/files/folders | files:write | name (body) |
| Start a resumable upload | POST /api/v1/kh/files/uploads | files:write | filename (body), file_size (body) |
| Read an upload’s status | GET /api/v1/kh/files/uploads/{upload_id} | files:write | None |
| Cancel an upload | DELETE /api/v1/kh/files/uploads/{upload_id} | files:write | None |
| Upload one chunk | PUT /api/v1/kh/files/uploads/{upload_id}/chunks/{chunk_index} | files:write | None |
| Complete an upload | POST /api/v1/kh/files/uploads/{upload_id}/complete | files:write | None |
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 |
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?