REST API
Programmatically search artifacts, retrieve attestations, and evaluate policy.
-
Authentication
Include your API token in the
Authorizationheader for all requests.Authorization: Bearer PHYLAX_API_TOKENEvery read endpoint is public, so you can explore the whole API without a token. One is required only to apply your organization’s policies or to reach org-scoped resources.
-
Base URL
All requests should be made to the following base URL.
https://api.phyi.dev -
Endpoint groups
Group Base path Description Artifacts /v1/artifactsUpload, retrieve, and inspect artifacts. Attestations /v1/attestationsQuery and verify attestations. Policies /v1/policiesCreate, update, and evaluate policies. Search /v1/searchSearch artifacts and attestations. Webhooks /v1/webhooksManage webhook endpoints and events. -
Example request
Evaluate an artifact against a policy.
Terminal window curl -X POST https://api.phyi.dev/v1/policies/evaluate \-H "Authorization: Bearer $PHYLAX_API_TOKEN" \-H "Content-Type: application/json" \-d '{"artifact": "pkg:npm/express@4.18.2","policy": "prod-runtime-policy","include": ["vulnerabilities", "licenses", "provenance"]}' -
Example response
{"id": "eval_0L3ZY3Z6P4Q9V4B1T6K3","artifact": "pkg:npm/express@4.18.2","policy": "prod-runtime-policy","verdict": "allow","score": 92,"risk": "low","details": {"passed": ["integrity", "license", "provenance"],"failed": [],"warnings": ["outdated-dependency"]},"evaluated_at": "2026-05-24T12:34:56Z"} -
Common headers and pagination
Header Description Example AuthorizationYour Phylax API token Bearer PHYLAX_API_TOKENContent-TypeRequest payload format application/jsonAcceptResponse format application/jsonX-Phylax-PagePage number for paginated results 1X-Phylax-Page-SizePage size, max 100 20X-Phylax-Next-PageReturned if more results are available 2Treat
X-Phylax-Next-Pageas the only signal that more data exists. Do not infer the end of a collection from a short page: a filtered page can be short and still have successors.
Try it without an account
Every read endpoint is public, so the fastest way to evaluate Phylax is to call it.
curl https://api.phyi.dev/v1/health{ "status": "ok" }Network-wide telemetry, including lifetime attestation counts, the verdict split, per-track activity and a 24 hour throughput series:
curl https://api.phyi.dev/v1/dashboard/networkRecent closed rounds with their winners, and the per-task findings behind them:
curl 'https://api.phyi.dev/v1/rounds?limit=5'curl 'https://api.phyi.dev/v1/rounds/<round_id>/attestations?miner=<ss58-hotkey>'The attestations endpoint serves closed rounds only. Asking for a round that is still open returns an empty shell rather than partial results, so nobody builds on numbers that are still moving.
Reference
Related guides
Prefer a typed client? See SDKs. Prefer a terminal? See the Phylax CLI.