Skip to content

HTTP API and CLI side by side

The engine answers the same features over HTTP, from the command line, from Python and over MCP. This table puts the HTTP route next to the CLI command for the main features; the generated API reference lists every route. Every route starts with /api/v1/, and a dash (–) means only one of the two offers it. The parameters of each route are in the generated API reference, the options of each command in the CLI reference, or in volca COMMAND --help.

FeatureHTTP APICLI
Search
Search processesGET /db/{db}/activities?name=&geo=&product=&preset=&classification=activities --name --geo --product
Search flowsGET /db/{db}/flows?q=&lang=&kind=flows --query --lang
ClassificationsGET /db/{db}/classifications–
Classification presetsGET /classification-presets–
One process and its chain
Process detailsGET /db/{db}/activity/{id}activity ID
Upstream treeGET /db/{db}/activity/{id}/treetree ID
Upstream chain, as a flat listGET|POST /db/{db}/activity/{id}/supply-chainsupply-chain ID --name --geo --product --max-depth --min-quantity
Upstream graphGET /db/{db}/activity/{id}/graph?cutoff=–
Consumers downstreamGET /db/{db}/activity/{id}/consumersconsumers ID --name --geo --product --max-depth
Consumers inside the upstream chainGET|POST /db/{db}/activity/{id}/supply-chain/consumers?of=–
Shortest path to a supplierGET|POST /db/{db}/activity/{id}/path-to?target= or ?target-id=path-to ID NAME
Group and filter exchanges, chain, emissions or consumptionGET /db/{db}/activity/{id}/aggregate–
Two processes side by sideGET /db/{db}/activity/{id}/compare–
Flow detailsGET /db/{db}/flow/{flowId}flow FLOW_ID
Processes using a flowGET /db/{db}/flow/{flowId}/activitiesflow FLOW_ID activities
Inventory and scores
Life cycle inventoryGET|POST /db/{db}/activity/{id}/inventoryinventory ID
Scores, every impact category of a collectionGET|POST /db/{db}/activity/{id}/impacts/{collection}impacts ID --method COLLECTION
Score, one impact categoryGET|POST /db/{db}/activity/{id}/impacts/{collection}/{methodId}impacts ID --method CATEGORY
Scores of many processes in one solvePOST /db/{db}/impacts/{collection}, POST /db/{db}/impacts/{collection}/{methodId}–
Contributing flowsGET /db/{db}/activity/{id}/contributing-flows/{collection}/{methodId}contributing-flows ID --method CATEGORY
Contributing processesGET /db/{db}/activity/{id}/contributing-activities/{collection}/{methodId}contributing-activities ID --method CATEGORY
The same two, for one single scoreGET /db/{db}/activity/{id}/contributing-{flows,activities}/{collection}/score/{set}/{score}–
Score split between groups of processesPOST /db/{db}/activity/{id}/groups/{collection}–
Processes of one group, or of the restPOST /db/{db}/activity/{id}/group-members/{collection}/{methodId}–
Sensitivity of a score to its parametersPOST /db/{db}/activity/{id}/sensitivity/{collection}/{methodId}–
Scores as a function of chosen parametersPOST /db/{db}/activity/{id}/reduced-model/{collection}–
Processes paired with another database’s, to score bothGET /db/{db}/score-pairs?other_database=–
Scores of some processes per one chosen unitPOST /db/{db}/score-units–
Flow mapping
Coverage, and the factors that found no flowGET /db/{db}/method/{id}/mappingflow-mapping CATEGORY_ID
Flow by flowGET /db/{db}/method/{id}/flow-mappingflow-mapping CATEGORY_ID --matched or --uncharacterized
Factors for one flowGET /db/{db}/method/{id}/characterization?flow=–
Why a flow has, or lacks, a factorGET /db/{db}/method/{id}/explain-cf/{flowId}explain-cf FLOW_ID --method CATEGORY
Every factor a flow gets, in every collectionGET /db/{db}/flow/{flowId}/factors–
Quality
What is malformed in a databaseGET /db/{db}/quality-report[.csv]quality-report [--limit N]
What a database computes, judged against its own normsGET /db/{db}/computed-quality-report[.csv]computed-quality-report [--collection NAME]
What is still unsupplied after linkingGET /db/{db}/gap-report–
Databases
ListGET /dbdatabase list
UploadPOST /db/uploaddatabase upload FILE --name NAME
Load, unloadPOST /db/{db}/load, POST /db/{db}/unloaddatabase load NAME, database unload NAME
Relink with a supplier alias CSVPOST /db/{db}/relink (with depDb and mappingCsv)database relink DB --to DEP --mapping CSV
Relink within the dependencies, finalizePOST /db/{db}/relink, POST /db/{db}/finalize–
Setup and dependenciesGET /db/{db}/setup, POST /db/{db}/{add,remove}-dependency/{dep}, POST /db/{db}/set-data-path, POST /db/{db}/accept-substitution–
CopyPOST /db/{db}/copy/{newName}database copy SRC NEW_NAME
Derive a parent or a childPOST /db/{db}/derive/{newName}, GET /db/{db}/system-model–
Delete processes, by filter or by identifierPOST /db/{db}/deletedatabase delete-activities DB … (--spare-suppliers|--cut-suppliers) [--dry-run]
Two databases side by sideGET /db/{db}/compare–
ExportPOST /db/{db}/exportdatabase export DB --format FMT [--without-metadata] [--flows-like KIND:NAME] --out FILE
Lists of flows an export can rename afterGET /flow-lists–
Software an export can be written forGET /software–
DeleteDELETE /db/{db}database delete NAME
Editing a database
Write new processesPOST /db/{db}/activitiesdatabase create-activities
Rewrite one processPUT /db/{db}/activity/{id}database replace-activity
Change one process’s exchanges and textsPOST /db/{db}/activity/{id}/exchangesdatabase edit-exchanges
Parameters of the databaseGET|POST /db/{db}/parameters–
ScenariosGET /db/{db}/scenarios, PUT|DELETE /db/{db}/scenarios/{name}–
Journal of changesGET /db/{db}/history–
Method collections
List the impact categoriesGET /methodsmethods
One impact category, its factorsGET /method/{id}, GET /method/{id}/factors–
List the collectionsGET /method-collectionsmethod list
UploadPOST /method-collections/uploadmethod upload FILE --name NAME
Load, unloadPOST /method-collections/{name}/load, .../unload–
Copy, then change the copyPOST /method-collections/{name}/copy/{newName}, then .../factors, .../categories, .../scoring-sets, .../undo–
Two collections side by sideGET /method-collections/{name}/compare–
Export (SimaPro CSV, columnar CSV, openLCA JSON-LD, ILCD)POST /method-collections/{name}/exportmethod export NAME --format FMT --out FILE
DeleteDELETE /method-collections/{name}method delete NAME
Reference data
Flow synonymsGET /flow-synonyms (and load, unload, upload, delete, groups, download)synonyms
Compartment mappingsGET /compartment-mappings (and load, unload, upload, delete, download)compartment-mappings
UnitsGET /units (and load, unload, upload, delete, download)units
Matrices
Export in the universal format–export-matrices DIR (runs locally)
Targeted slices, for debugging–debug-matrices ID --output FILE (runs locally)
Server
Version, memory, hosting limits, logsGET /version, /stats, /hosting, /logs?since=–
Usage logGET|DELETE /usage–
Log inPOST /auth–
Start the server–server
Stop the serverPOST /shutdownstop
Stop after some idle secondsPOST /idle-timeout/{seconds}–
Interactive session–repl