Migrate to Runpod REST v2
Moves a codebase off the GraphQL API (api.runpod.io/graphql) and REST v1
(rest.runpod.io/v1) onto REST v2 (api.runpod.io/v2).
The payoff, in one line each â you deliver these to the user at step 6, matched to
their actual code. Don't recite them now:
- See stock before you rent âÂÂ
GET /v2/catalog/gpus?include=AVAILABILITY&product=POD. v1 had no
catalog at all, so every capacity retry loop was blind. - Endpoints return their own job URLs âÂÂ
requestUrls.run, no more string-building. - Real lifecycle states âÂÂ
PROVISIONING/STARTING/ERRORand anactionslist, so
wait-loops fail fast instead of timing out. - Mistakes fail loudly â unknown request fields are rejected by name, with structured
errors and honest status codes.
The full set, organized as if their code does X â v2 offers Y:
reference/unlocks.md â open it at step 6.
Installs: 14.0K | GitHub stars: 56 | First seen: Aug 19, 2026


