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

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 stage proposed changes to a project and submit them for review. The guide is Propose changes to 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
Open workbenchPOST /api/v1/organizations/{organization_id}/workbenchesentities:writeproject_slug (body)
Get workbenchGET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}entities:readNone
Stage workbench actionsPOST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/actionsentities:writeIdempotency-Key (header), expected_revision_id (body), intents (body)
List workbench changesGET /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/changesentities:readNone
Submit workbenchPOST /api/v1/organizations/{organization_id}/workbenches/{workbench_id}/submitentities:writeexpected_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.

OperationMethod and pathScopesParameters
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
Accept contributionPOST /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}/acceptcontributions:reviewNone
Request contribution revisionPOST /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}/request-revisioncontributions:reviewinstructions (body)
Withdraw contributionPOST /api/v1/organizations/{organization_id}/research-projects/{project_id}/contributions/{contribution_id}/withdrawcontributions:reviewNone

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.

OperationMethod and pathScopesParameters
List filesGET /api/v1/kh/files/files:readpage, per_page, sort_by, sort_order, file_type, experiment_id, path, absolute_path, search, location_type, workspace_id
Get a file’s metadataGET /api/v1/kh/files/{file_id}files:readNone
Change a file’s description or tagsPATCH /api/v1/kh/files/{file_id}files:writeNone
Delete fileDELETE /api/v1/kh/files/{file_id}files:writeNone
Download fileGET /api/v1/kh/files/{file_id}/downloadfiles:readversion
Rename or move a file or folderPATCH /api/v1/kh/files/{file_id}/movefiles:writenew_path (body)
Create folderPOST /api/v1/kh/files/foldersfiles:writename (body)
Start a resumable uploadPOST /api/v1/kh/files/uploadsfiles:writefilename (body), file_size (body)
Read an upload’s statusGET /api/v1/kh/files/uploads/{upload_id}files:writeNone
Cancel an uploadDELETE /api/v1/kh/files/uploads/{upload_id}files:writeNone
Upload one chunkPUT /api/v1/kh/files/uploads/{upload_id}/chunks/{chunk_index}files:writeNone
Complete an uploadPOST /api/v1/kh/files/uploads/{upload_id}/completefiles:writeNone

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

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