Skip to main content
The CLI is a client of a small JSON API. You can call it directly to build your own tooling. It is versioned under /v1 and served from https://proofpod.dev.
The API is young. Endpoints listed here are stable enough to script against; fields may be added.

Authentication

Send an API token as a bearer token:
Create tokens with pp token create or in the dashboard.

Errors

Failures return a non-200 status and a body of the form:

Public endpoints

Account

Money is reported in nano-dollars (_nusd fields): 1,000,000,000 is one dollar.

Runs

Run object

status is one of queued, preparing (an environment is being built), starting, running, finished, cancelled, error. A finished run has an exit_code; reason is set to timeout or out_of_memory when ProofPod stopped it. An error run never produced an exit code and has an error message.

Following output

Poll events with the highest sequence number you have seen:
Each chunk is [stream, base64 data] where stream is o (stdout), e (stderr) or s (a status message from ProofPod, as JSON). The run is over when status is terminal and a poll returns no further events.

Starting runs

Starting a run involves uploading a sync archive first, which is what the CLI is for. If you need to start runs from your own program, invoke the CLI: