Skip to navigation

API Overview

View as MarkdownOpen in Claude

A REST API drives the entire ALCHEMI VASP microservice. When the service is running, it also serves an interactive Swagger UI at /docs and the raw OpenAPI document at /openapi.json.

The endpoints fall into four groups:

GroupPurpose
HealthReport service and instance status and health probes.
InputsUpload and manage input files referenced by calculation requests.
CalculationsSubmit calculations and retrieve their status and results.
FilesRetrieve and manage output files produced by completed calculations.

This reference documents the VASP backend. The request and reply schemas for /infer, /submit, and /result depend on the backend you started the service with (ALCHEMI_BACKEND).

Typical Workflow

  1. Optionally upload large input files with POST /input/upload and reference the returned file_id in your request.
  2. Submit a calculation with POST /infer (blocking) or POST /submit (returns a request ID immediately).
  3. For asynchronous submissions, poll GET /status/{request_id} and then fetch the result with GET /result/{request_id}.
  4. If you enable output retention, download the output archive with GET /files/{request_id}/download.

Refer to the endpoints below for full request and response schemas.