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.
| Feature | HTTP API | CLI |
|---|---|---|
| Search | ||
| Search processes | GET /db/{db}/activities?name=&geo=&product=&preset=&classification= | activities --name --geo --product |
| Search flows | GET /db/{db}/flows?q=&lang=&kind= | flows --query --lang |
| Classifications | GET /db/{db}/classifications | – |
| Classification presets | GET /classification-presets | – |
| One process and its chain | ||
| Process details | GET /db/{db}/activity/{id} | activity ID |
| Upstream tree | GET /db/{db}/activity/{id}/tree | tree ID |
| Upstream chain, as a flat list | GET|POST /db/{db}/activity/{id}/supply-chain | supply-chain ID --name --geo --product --max-depth --min-quantity |
| Upstream graph | GET /db/{db}/activity/{id}/graph?cutoff= | – |
| Consumers downstream | GET /db/{db}/activity/{id}/consumers | consumers ID --name --geo --product --max-depth |
| Consumers inside the upstream chain | GET|POST /db/{db}/activity/{id}/supply-chain/consumers?of= | – |
| Shortest path to a supplier | GET|POST /db/{db}/activity/{id}/path-to?target= or ?target-id= | path-to ID NAME |
| Group and filter exchanges, chain, emissions or consumption | GET /db/{db}/activity/{id}/aggregate | – |
| Two processes side by side | GET /db/{db}/activity/{id}/compare | – |
| Flow details | GET /db/{db}/flow/{flowId} | flow FLOW_ID |
| Processes using a flow | GET /db/{db}/flow/{flowId}/activities | flow FLOW_ID activities |
| Inventory and scores | ||
| Life cycle inventory | GET|POST /db/{db}/activity/{id}/inventory | inventory ID |
| Scores, every impact category of a collection | GET|POST /db/{db}/activity/{id}/impacts/{collection} | impacts ID --method COLLECTION |
| Score, one impact category | GET|POST /db/{db}/activity/{id}/impacts/{collection}/{methodId} | impacts ID --method CATEGORY |
| Scores of many processes in one solve | POST /db/{db}/impacts/{collection}, POST /db/{db}/impacts/{collection}/{methodId} | – |
| Contributing flows | GET /db/{db}/activity/{id}/contributing-flows/{collection}/{methodId} | contributing-flows ID --method CATEGORY |
| Contributing processes | GET /db/{db}/activity/{id}/contributing-activities/{collection}/{methodId} | contributing-activities ID --method CATEGORY |
| The same two, for one single score | GET /db/{db}/activity/{id}/contributing-{flows,activities}/{collection}/score/{set}/{score} | – |
| Score split between groups of processes | POST /db/{db}/activity/{id}/groups/{collection} | – |
| Processes of one group, or of the rest | POST /db/{db}/activity/{id}/group-members/{collection}/{methodId} | – |
| Sensitivity of a score to its parameters | POST /db/{db}/activity/{id}/sensitivity/{collection}/{methodId} | – |
| Scores as a function of chosen parameters | POST /db/{db}/activity/{id}/reduced-model/{collection} | – |
| Processes paired with another database’s, to score both | GET /db/{db}/score-pairs?other_database= | – |
| Scores of some processes per one chosen unit | POST /db/{db}/score-units | – |
| Flow mapping | ||
| Coverage, and the factors that found no flow | GET /db/{db}/method/{id}/mapping | flow-mapping CATEGORY_ID |
| Flow by flow | GET /db/{db}/method/{id}/flow-mapping | flow-mapping CATEGORY_ID --matched or --uncharacterized |
| Factors for one flow | GET /db/{db}/method/{id}/characterization?flow= | – |
| Why a flow has, or lacks, a factor | GET /db/{db}/method/{id}/explain-cf/{flowId} | explain-cf FLOW_ID --method CATEGORY |
| Every factor a flow gets, in every collection | GET /db/{db}/flow/{flowId}/factors | – |
| Quality | ||
| What is malformed in a database | GET /db/{db}/quality-report[.csv] | quality-report [--limit N] |
| What a database computes, judged against its own norms | GET /db/{db}/computed-quality-report[.csv] | computed-quality-report [--collection NAME] |
| What is still unsupplied after linking | GET /db/{db}/gap-report | – |
| Databases | ||
| List | GET /db | database list |
| Upload | POST /db/upload | database upload FILE --name NAME |
| Load, unload | POST /db/{db}/load, POST /db/{db}/unload | database load NAME, database unload NAME |
| Relink with a supplier alias CSV | POST /db/{db}/relink (with depDb and mappingCsv) | database relink DB --to DEP --mapping CSV |
| Relink within the dependencies, finalize | POST /db/{db}/relink, POST /db/{db}/finalize | – |
| Setup and dependencies | GET /db/{db}/setup, POST /db/{db}/{add,remove}-dependency/{dep}, POST /db/{db}/set-data-path, POST /db/{db}/accept-substitution | – |
| Copy | POST /db/{db}/copy/{newName} | database copy SRC NEW_NAME |
| Derive a parent or a child | POST /db/{db}/derive/{newName}, GET /db/{db}/system-model | – |
| Delete processes, by filter or by identifier | POST /db/{db}/delete | database delete-activities DB … (--spare-suppliers|--cut-suppliers) [--dry-run] |
| Two databases side by side | GET /db/{db}/compare | – |
| Export | POST /db/{db}/export | database export DB --format FMT [--without-metadata] [--flows-like KIND:NAME] --out FILE |
| Lists of flows an export can rename after | GET /flow-lists | – |
| Software an export can be written for | GET /software | – |
| Delete | DELETE /db/{db} | database delete NAME |
| Editing a database | ||
| Write new processes | POST /db/{db}/activities | database create-activities |
| Rewrite one process | PUT /db/{db}/activity/{id} | database replace-activity |
| Change one process’s exchanges and texts | POST /db/{db}/activity/{id}/exchanges | database edit-exchanges |
| Parameters of the database | GET|POST /db/{db}/parameters | – |
| Scenarios | GET /db/{db}/scenarios, PUT|DELETE /db/{db}/scenarios/{name} | – |
| Journal of changes | GET /db/{db}/history | – |
| Method collections | ||
| List the impact categories | GET /methods | methods |
| One impact category, its factors | GET /method/{id}, GET /method/{id}/factors | – |
| List the collections | GET /method-collections | method list |
| Upload | POST /method-collections/upload | method upload FILE --name NAME |
| Load, unload | POST /method-collections/{name}/load, .../unload | – |
| Copy, then change the copy | POST /method-collections/{name}/copy/{newName}, then .../factors, .../categories, .../scoring-sets, .../undo | – |
| Two collections side by side | GET /method-collections/{name}/compare | – |
| Export (SimaPro CSV, columnar CSV, openLCA JSON-LD, ILCD) | POST /method-collections/{name}/export | method export NAME --format FMT --out FILE |
| Delete | DELETE /method-collections/{name} | method delete NAME |
| Reference data | ||
| Flow synonyms | GET /flow-synonyms (and load, unload, upload, delete, groups, download) | synonyms |
| Compartment mappings | GET /compartment-mappings (and load, unload, upload, delete, download) | compartment-mappings |
| Units | GET /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, logs | GET /version, /stats, /hosting, /logs?since= | – |
| Usage log | GET|DELETE /usage | – |
| Log in | POST /auth | – |
| Start the server | – | server |
| Stop the server | POST /shutdown | stop |
| Stop after some idle seconds | POST /idle-timeout/{seconds} | – |
| Interactive session | – | repl |