Skip to content

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.

OperationMethod and pathCalled with
Exchange a credential for an access tokenPOST /api/v1/oauth/tokenPersonal access token or service account key
Start an OAuth sign-inGET /api/v1/oauth/authorizeA person in a browser
Register an AI assistant clientPOST /api/v1/oauth/registerNone
Revoke an access or refresh tokenPOST /api/v1/oauth/revokeThe token itself
Discover the token endpointGET /.well-known/openid-configurationNone
Discover the OAuth endpointsGET /.well-known/oauth-authorization-serverNone

Organizations

Organization operations list the organizations you belong to and read one of them. The guide is API for projects and research records.

OperationMethod and pathScopesParameters
List organizationsGET /api/v1/organizations/projects:readskip, limit
Get organizationGET /api/v1/organizations/{organization_id}projects:readNone

Research projects

Research project operations list, read, create, rename and archive projects. The guide is API for projects and research records.

OperationMethod and pathScopesParameters
List research projectsGET /api/v1/organizations/{organization_id}/research-projects/projects:readskip, limit, status, team_id, search, cursor
Create research projectPOST /api/v1/organizations/{organization_id}/research-projects/projects:writename (body)
Get research projectGET /api/v1/organizations/{organization_id}/research-projects/{project_id}projects:readNone
Update research projectPATCH /api/v1/organizations/{organization_id}/research-projects/{project_id}projects:writeexpected_updated_at
Get research project at versionGET /api/v1/organizations/{organization_id}/research-projects/{project_id}/versions/{version}entities:readNone

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.

OperationMethod and pathScopesParameters
List world model entitiesGET /api/v1/organizations/{organization_id}/world-model/entities/{entity_type}entities:readproject_slug, status, data_type, tags, executable_slug, skip, limit, cursor, search, sort_order
List hypothesesGET /api/v1/organizations/{organization_id}/world-model/hypothesesentities:readproject_slug, review_status, include_superseded, skip, limit, cursor, search, sort_order
Get hypothesisGET /api/v1/organizations/{organization_id}/world-model/hypotheses/{slug}entities:readNone
List observationsGET /api/v1/organizations/{organization_id}/world-model/observationsentities:readproject_slug, review_status, include_superseded, skip, limit, cursor, search, sort_order
Get observationGET /api/v1/organizations/{organization_id}/world-model/observations/{slug}entities:readNone

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.

OperationMethod and pathScopesParameters
List action typesGET /api/v1/organizations/{organization_id}/action-typesentities:readNone
Get action typeGET /api/v1/organizations/{organization_id}/action-types/{action_type_id}entities:readNone
List workbenchesGET /api/v1/organizations/{organization_id}/workbenchesentities:readNone
Open workbenchPOST /api/v1/organizations/{organization_id}/workbenchesentities:writeNone
Get workbenchGET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}entities:readNone
Update workbenchPATCH /api/v1/organizations/{organization_id}/workbenches/{workbench_id}entities:writeNone
ContributePOST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/contributionscontributions:writetitle (body), summary (body), include (body), expected_project_version (body)
Prepare contributionPOST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/contributions/prepareentities:writetitle (body), summary (body), include (body)
List draftsGET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/draftsentities:readNone
Write draftsPOST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/draftsentities:writeIdempotency-Key (header), intents (body)
Discard draftDELETE /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/drafts/{ref}entities:writeNone
List workbench filesGET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/filesfiles:readNone
Upload workbench filePOST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/filesfiles:writeNone
Update workbench filePATCH /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}files:writeNone
Delete workbench fileDELETE /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}files:writeNone
Read workbench file contentGET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}/contentfiles:readrevision
Replace workbench file contentPUT /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/files/{file_ref}/contentfiles:writeNone

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.

OperationMethod and pathScopesParameters
List an item’s revisionsGET /api/v1/organizations/{organization_id}/items/{slug}/revisionsentities:readinclude_snapshots
List contributionsGET /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributionsentities:readstatus, cursor, limit
Get contributionGET /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}entities:readNone
Get an item revisionGET /api/v1/organizations/{organization_id}/revisions/{identifier}entities:readNone

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.

OperationMethod and pathScopesParameters
Get a published fileGET /api/v1/organizations/{organization_id}/files/{slug}files:readrevision
Read a published file’s contentGET /api/v1/organizations/{organization_id}/files/{slug}/contentfiles:readrevision

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.

OperationMethod and pathScopesParameters
Invoke invocation planPOST /api/v1/organizations/{organization_id}/executable-invocation-plans/{plan_id}/invokeruns:executeNone
Refresh invocation planPOST /api/v1/organizations/{organization_id}/executable-invocation-plans/{plan_id}/refreshruns:executeNone
Approve or decline a plan’s spendingPOST /api/v1/organizations/{organization_id}/executable-invocation-plans/{plan_id}/spending-approvalruns:execute and spending:approvebinding (body)
List executablesGET /api/v1/organizations/{organization_id}/executablesruns:readkind, lifecycle, adapter, project_slug, stage_id, search, include_internal, include_unavailable, include_archived, skip, limit, cursor
Get executableGET /api/v1/organizations/{organization_id}/executables/{executable_id}runs:readstage_id
Create invocation planPOST /api/v1/organizations/{organization_id}/executables/{executable_id}/invocation-plansruns:executeNone
Invoke executablePOST /api/v1/organizations/{organization_id}/executables/{executable_id}/invokeruns:executeNone
Get executable catalogGET /api/v1/organizations/{organization_id}/executables/catalogruns:readsurface, stage_id, search, limit, include_definitions
List runnable sandboxesGET /api/v1/organizations/{organization_id}/sandboxes/runnableruns:executeskip, 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.

OperationMethod and pathScopesParameters
List computesGET /api/v1/organizations/{organization_id}/computesruns:readpurpose
Get computeGET /api/v1/organizations/{organization_id}/computes/{identifier}runs:readNone
List compute versionsGET /api/v1/organizations/{organization_id}/computes/{identifier}/versionsruns:readNone

Runs

Run operations follow a Run, read its logs, download its artifacts and cancel it. The guide is Run analyses and approve spending.

OperationMethod and pathScopesParameters
List runsGET /api/v1/organizations/{organization_id}/runsruns:readstatus, executable_slug, project_slug, conversation_id, include_archived, holding, skip, limit, cursor
Get runGET /api/v1/organizations/{organization_id}/runs/{run_slug}runs:readinclude_task_attempts
Download run artifactGET /api/v1/organizations/{organization_id}/runs/{run_slug}/artifacts/{artifact_id}/downloadruns:readNone
Cancel runPOST /api/v1/organizations/{organization_id}/runs/{run_slug}/cancelruns:executeNone
Get run logsGET /api/v1/organizations/{organization_id}/runs/{run_slug}/logsruns:readafter, 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.

OperationMethod and pathScopesParameters
List conversationsGET /api/v1/organizations/{organization_id}/conversationsagent:conversecursor, limit
Create conversationPOST /api/v1/organizations/{organization_id}/conversationsagent:converseNone
Get conversationGET /api/v1/organizations/{organization_id}/conversations/{conversation_id}agent:conversecursor, limit, include
Send conversation turnPOST /api/v1/organizations/{organization_id}/conversations/{conversation_id}/turnsagent:converseIdempotency-Key (header), message (body)
Get conversation turnGET /api/v1/organizations/{organization_id}/conversations/{conversation_id}/turns/{turn_id}agent:converseafter, include
Respond to conversation turnPOST /api/v1/organizations/{organization_id}/conversations/{conversation_id}/turns/{turn_id}/respondagent:converseaction_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.

OperationMethod and pathScopesParameters
List webhooksGET /api/v1/organizations/{organization_id}/webhookswebhooks:manageNone
Create webhookPOST /api/v1/organizations/{organization_id}/webhookswebhooks:manageurl (body), events (body)
Get webhookGET /api/v1/organizations/{organization_id}/webhooks/{webhook_id}webhooks:manageNone
Update webhookPATCH /api/v1/organizations/{organization_id}/webhooks/{webhook_id}webhooks:manageNone
Delete webhookDELETE /api/v1/organizations/{organization_id}/webhooks/{webhook_id}webhooks:manageNone
List webhook deliveriesGET /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/deliverieswebhooks:managecursor, limit
Redeliver webhook deliveryPOST /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/deliveries/{delivery_id}/redeliverwebhooks:manageNone
Rotate webhook secretPOST /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/rotate-secretwebhooks:manageNone
Send webhook testPOST /api/v1/organizations/{organization_id}/webhooks/{webhook_id}/testwebhooks:manageNone

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.

Controller: Biocompile, Inc.

Your first project starts here.

Free to start, with credits included.

We use this address to prefill your signup. A founder may email you once to help you get started. No newsletter. Privacy Policy

Already have an account? Sign in