/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: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
Pollevents with the highest sequence number you have seen:
[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.