1. Create an API key
- In the Revilico web app, open your account and click Developer in the sidebar.
- On the API keys tab, click Create API key.
- Name the key, keep Full access and pick an expiry.
- Copy the key. It starts with
rvl_live_and is shown only once.
2. Check the key
GET /v1/me works with any key. It returns your account, the key’s scopes, the engines you can run and your organization’s credits.
engines doesn’t include revredox, pick another engine from the list and read its parameters with GET /v1/engines/{engine}.
3. Start a run
Send the engine’s parameters toPOST /v1/engines/{engine}/runs. Parameters you leave out take their defaults; here RevRedox computes both oxidation and reduction potentials against SCE.
202 Accepted with the run:
4. Wait for the run to finish
PollGET /v1/runs/{runId} until status is succeeded, failed or cancelled. Runs take minutes to hours depending on the engine and input, so poll every 10 to 30 seconds.
error.message. Its logs are still listed by GET /v1/runs/{runId}/files.
5. Read the results
GET /v1/runs/{runId}/results returns the results as JSON rows, one per molecule, state or item, with run-level facts such as the level of theory beside them.
Check quality first. A succeeded run can still be partial or all_failed when the engine failed on some or all of its molecules, and qualityReason says how many, such as “2 of 5 molecules failed.”
- get everything for one row with
GET /v1/runs/{runId}/results/{index}, passing the row’s ownindexfield unchanged. Some engines count rows from 0 and others from 1;indexRangeon the results page gives the first and last index - list every file the run wrote with
GET /v1/runs/{runId}/files, and download one withGET /v1/runs/{runId}/files/read?path=… - download the engine’s named outputs with
GET /v1/runs/{runId}/outputs/{outputId}
Use an input file
Engines that take files, such as an SDF of ligands or a CSV of SMILES, need the file uploaded first. Uploading is two requests: create the upload, thenPUT the bytes to the URL it returns.
inputs. GET /v1/engines/{engine} lists each engine’s input keys, formats and size limits. For example, RevOrbitals takes a CSV of SMILES as molecules:
PUT has finished, GET /v1/files/{fileId} returns 404 and a run that uses the file is refused.
A file in your RevDrive works too: pass its dfile_… or sdfile_… id instead of uploading it.
Inputs that take several files
Some inputs take a list of files. InGET /v1/engines/{engine}, such an input has maxFiles in inputFiles. Pass a list of file ids instead of one id. For example, RevMD-Aqua simulates up to 10 protein structures in one run:
Runs with children
RevMD-Aqua and RevMD-Bind simulate each input as its own job. You still get one run, butGET /v1/runs/{runId} also has children, with how many children are in each status:
- The run’s
progressstays at 0 until every child has finished, so follow the counts instead. - The run succeeds once every child has finished and at least one succeeded. It fails only when every child failed.
GET /v1/runs/{runId}/childrenlists the children in input order, numbered from 0, each with its status and error.GET /v1/runs/{runId}/children/{childIndex}/resultsreturns one child’s results as soon as that child has succeeded, even while others are still running.- A child’s files and outputs start with
child_<index>/, such aschild_0/. - Cancelling the run cancels every child.
list_run_children and get_child_results.
Next steps
API reference
Every endpoint, with a playground.
Errors
Error codes, pagination and IDs.

