From dd2655323670a66fe83d4c7d5ddc9f8346ce74b3 Mon Sep 17 00:00:00 2001 From: "github-merge-queue[bot]" <118344674+github-merge-queue[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:36:10 +0000 Subject: [PATCH] docs(api-v2): sync API reference from Frontdoor v2.22.0 --- .../catalog/get-a-hub-repo-readme.mdx | 6 + api-reference-v2/catalog/get-a-hub-repo.mdx | 6 + .../catalog/get-a-public-template.mdx | 6 + .../catalog/get-a-skill-readme.mdx | 6 + .../catalog/get-a-skill-variant.mdx | 6 + api-reference-v2/catalog/get-a-skill.mdx | 6 + api-reference-v2/catalog/list-hub-repos.mdx | 6 + .../catalog/list-public-templates.mdx | 2 +- api-reference-v2/catalog/list-skills.mdx | 6 + api-reference-v2/openapi.json | 13649 +++++++++------- docs.json | 10 +- 11 files changed, 8090 insertions(+), 5619 deletions(-) create mode 100644 api-reference-v2/catalog/get-a-hub-repo-readme.mdx create mode 100644 api-reference-v2/catalog/get-a-hub-repo.mdx create mode 100644 api-reference-v2/catalog/get-a-public-template.mdx create mode 100644 api-reference-v2/catalog/get-a-skill-readme.mdx create mode 100644 api-reference-v2/catalog/get-a-skill-variant.mdx create mode 100644 api-reference-v2/catalog/get-a-skill.mdx create mode 100644 api-reference-v2/catalog/list-hub-repos.mdx create mode 100644 api-reference-v2/catalog/list-skills.mdx diff --git a/api-reference-v2/catalog/get-a-hub-repo-readme.mdx b/api-reference-v2/catalog/get-a-hub-repo-readme.mdx new file mode 100644 index 000000000..bf0e04021 --- /dev/null +++ b/api-reference-v2/catalog/get-a-hub-repo-readme.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/repos/{id}/readme +description: "Retrieve the Markdown README of a Runpod Hub repo's listed release." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/get-a-hub-repo.mdx b/api-reference-v2/catalog/get-a-hub-repo.mdx new file mode 100644 index 000000000..845700a5d --- /dev/null +++ b/api-reference-v2/catalog/get-a-hub-repo.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/repos/{id} +description: "Retrieve a Runpod Hub repo with its listed release and the defaults it deploys with." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/get-a-public-template.mdx b/api-reference-v2/catalog/get-a-public-template.mdx new file mode 100644 index 000000000..eb596bb93 --- /dev/null +++ b/api-reference-v2/catalog/get-a-public-template.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/templates/{id} +description: "Retrieve a Runpod public template with its health, deploy stats and, for a versioned line, every version and tag." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/get-a-skill-readme.mdx b/api-reference-v2/catalog/get-a-skill-readme.mdx new file mode 100644 index 000000000..320c71f08 --- /dev/null +++ b/api-reference-v2/catalog/get-a-skill-readme.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/skills/{id}/readme +description: "Retrieve the Markdown README of a Runpod skill for an agent to follow." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/get-a-skill-variant.mdx b/api-reference-v2/catalog/get-a-skill-variant.mdx new file mode 100644 index 000000000..740fd1f17 --- /dev/null +++ b/api-reference-v2/catalog/get-a-skill-variant.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/skills/{id}/variants/{variantId} +description: "Retrieve one variant of a Runpod skill as Markdown." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/get-a-skill.mdx b/api-reference-v2/catalog/get-a-skill.mdx new file mode 100644 index 000000000..9f18f83e6 --- /dev/null +++ b/api-reference-v2/catalog/get-a-skill.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/skills/{id} +description: "Retrieve a Runpod skill with its variants, the default marked, and the skills it relies on." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/list-hub-repos.mdx b/api-reference-v2/catalog/list-hub-repos.mdx new file mode 100644 index 000000000..fe99d4444 --- /dev/null +++ b/api-reference-v2/catalog/list-hub-repos.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/repos +description: "Search Runpod Hub repos: GitHub repositories Runpod builds into deployable images, with reliability scores and deploy counts." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/list-public-templates.mdx b/api-reference-v2/catalog/list-public-templates.mdx index f357a6141..8627f242a 100644 --- a/api-reference-v2/catalog/list-public-templates.mdx +++ b/api-reference-v2/catalog/list-public-templates.mdx @@ -1,6 +1,6 @@ --- openapi: get /v2/catalog/templates -description: "List Runpod public templates by official, verified, or community source and inspect reusable Pod and Serverless configurations." +description: "Search Runpod public templates by official, verified, or community source and inspect reusable Pod and Serverless configurations." --- **Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/catalog/list-skills.mdx b/api-reference-v2/catalog/list-skills.mdx new file mode 100644 index 000000000..6ae217689 --- /dev/null +++ b/api-reference-v2/catalog/list-skills.mdx @@ -0,0 +1,6 @@ +--- +openapi: get /v2/catalog/skills +description: "Search Runpod skills: step-by-step guides an agent follows to set up a workload on Runpod, such as ComfyUI on a pod." +--- + +**Required API key scope:** `catalog:read` \ No newline at end of file diff --git a/api-reference-v2/openapi.json b/api-reference-v2/openapi.json index e83287a38..15da832d5 100644 --- a/api-reference-v2/openapi.json +++ b/api-reference-v2/openapi.json @@ -237,7 +237,7 @@ } } }, - "TemplateReadme": { + "Readme": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -246,7 +246,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "The template's README, as Markdown.", + "description": "The README, as Markdown.", "content": { "text/markdown; charset=utf-8": { "schema": { @@ -442,6 +442,30 @@ } } } + }, + "SkillVariant": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "The variant's steps, as Markdown.", + "content": { + "text/markdown; charset=utf-8": { + "schema": { + "type": "string" + }, + "examples": { + "variant": { + "summary": "Successful response", + "value": "# Prebuilt image\n\n1. Create a pod from the ComfyUI template.\n" + } + } + } + } } }, "headers": { @@ -555,6 +579,89 @@ }, "example": 50 }, + "CatalogSearchQuery": { + "name": "search", + "in": "query", + "required": false, + "description": "Search text, matched case-insensitively. Every word must match. A skill matches on its name, description and tags; a repo also on its GitHub owner and name; a template on its name and image, and a versioned template's tag also on its line's name and description. Enables `orderBy=RELEVANCE`, which becomes the default order.", + "schema": { + "type": "string", + "minLength": 1, + "maxLength": 200 + }, + "example": "comfyui" + }, + "CatalogProducts": { + "name": "product", + "in": "query", + "required": false, + "description": "Only return items that deploy to one of these products. Comma-separated.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HubProduct" + } + }, + "example": [ + "SERVERLESS" + ] + }, + "CatalogMinReliability": { + "name": "minReliability", + "in": "query", + "required": false, + "description": "Only return items whose `health.reliability` is at least this value. Unscored items are excluded when this is set.", + "schema": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 1 + }, + "example": 0.9 + }, + "CatalogOrderDirection": { + "name": "orderDirection", + "in": "query", + "required": false, + "description": "Sort direction. Defaults to `ASC` for `orderBy=NAME` and `DESC` otherwise.", + "schema": { + "$ref": "#/components/schemas/CatalogOrderDirection" + }, + "example": "DESC" + }, + "CatalogCategory": { + "name": "category", + "in": "query", + "required": false, + "description": "Only return items in this category, matched exactly and case-insensitively.", + "schema": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "example": "image" + }, + "CatalogTags": { + "name": "tags", + "in": "query", + "required": false, + "description": "Only return items carrying every one of these tags, matched exactly and case-insensitively. Comma-separated.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "example": [ + "comfyui", + "image" + ] + }, "ResourceFilters": { "name": "filters", "in": "query", @@ -829,6 +936,30 @@ }, "example": "12.1" }, + "MinVcpuCountPerGpuFilter": { + "name": "minVcpuCountPerGpu", + "in": "query", + "required": false, + "description": "Minimum host vCPUs per GPU for availability filtering, multiplied by `count` to match pod create's placement. Requires include=AVAILABILITY (400 otherwise).", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 4096 + }, + "example": 8 + }, + "MinRamPerGpuFilter": { + "name": "minRamPerGpu", + "in": "query", + "required": false, + "description": "Minimum host system RAM (GB) per GPU for availability filtering, multiplied by `count` to match pod create's placement. This is host RAM, not the GPU VRAM in `memory`. Requires include=AVAILABILITY (400 otherwise).", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 65536 + }, + "example": 100 + }, "CpuProductFilter": { "name": "product", "in": "query", @@ -5725,7 +5856,7 @@ }, "TemplateList": { "type": "object", - "description": "A bare list of templates. `GET /v2/catalog/templates` returns it as-is (the catalog is a capped, curated set); `GET /v2/templates` composes it with the pagination block via ListTemplatesResponse.\n", + "description": "A bare list of templates. `GET /v2/templates` composes it with the pagination block via ListTemplatesResponse.\n", "required": [ "templates" ], @@ -6437,1720 +6568,3341 @@ "SERVERLESS" ] }, - "CpuProduct": { + "CatalogOrderDirection": { "type": "string", - "description": "CPU catalog product availability context. Availability is product-specific, so this is required whenever availability is requested.", + "description": "Sort direction.", + "enum": [ + "ASC", + "DESC" + ], + "x-enum-varnames": [ + "CatalogOrderDirectionAsc", + "CatalogOrderDirectionDesc" + ] + }, + "HubProduct": { + "type": "string", + "description": "Where a catalog item deploys.", "enum": [ "POD", "SERVERLESS" + ], + "x-enum-varnames": [ + "HubProductPod", + "HubProductServerless" ] }, - "CatalogInclude": { + "CatalogOrderBy": { "type": "string", - "description": "Catalog include expansion. Only AVAILABILITY is supported today; additional include values may be added in the future.", + "description": "`RELEVANCE` orders by search match and is only valid with `search`. `POPULAR` orders by deploys (repos) or deployers (templates), `UPDATED` by `updatedAt`, `HEALTH` by `health.reliability` (unscored items last in either direction) and `NAME` by `name`. Ties break on `id`.", "enum": [ - "AVAILABILITY" + "RELEVANCE", + "POPULAR", + "UPDATED", + "HEALTH", + "NAME" + ], + "x-enum-varnames": [ + "CatalogOrderByRelevance", + "CatalogOrderByPopular", + "CatalogOrderByUpdated", + "CatalogOrderByHealth", + "CatalogOrderByName" ] }, - "DataCenterInclude": { + "CatalogTemplateType": { "type": "string", - "description": "Data center catalog availability expansion.", + "description": "`SINGLE` is a standalone template. `VERSIONED` is a tag of a versioned template line; the list shows each line's current tags.", "enum": [ - "GPU_AVAILABILITY", - "CPU_AVAILABILITY" + "SINGLE", + "VERSIONED" + ], + "x-enum-varnames": [ + "CatalogTemplateTypeSingle", + "CatalogTemplateTypeVersioned" ] }, - "GpuCloudFilter": { + "CatalogTemplate": { + "description": "A public template. Every `id` is deployable and resolves at `GET /v2/templates/{id}`.", + "allOf": [ + { + "$ref": "#/components/schemas/Template" + }, + { + "$ref": "#/components/schemas/CatalogTemplateHubFields" + } + ] + }, + "ListCatalogTemplatesResponse": { + "type": "object", + "required": [ + "templates", + "pagination" + ], + "properties": { + "templates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogTemplate" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + }, + "CatalogSkillMcpSupport": { "type": "string", - "description": "GPU availability cloud filter.", + "description": "Whether an agent with only the Runpod MCP server can finish the skill: `FULL`, `PARTIAL`, or `NONE`.", "enum": [ - "SECURE", - "COMMUNITY" + "FULL", + "PARTIAL", + "NONE" + ], + "x-enum-varnames": [ + "CatalogSkillMcpSupportFull", + "CatalogSkillMcpSupportPartial", + "CatalogSkillMcpSupportNone" ] }, - "VolumeType": { + "CatalogSkillOrderBy": { "type": "string", - "description": "Data center network volume storage type.", + "description": "`RELEVANCE` orders by search match and is only valid with `search`; `UPDATED` by `updatedAt`; `NAME` by `name`. Ties break on `id`.", "enum": [ - "STANDARD", - "HIGH_PERFORMANCE" + "RELEVANCE", + "UPDATED", + "NAME" + ], + "x-enum-varnames": [ + "CatalogSkillOrderByRelevance", + "CatalogSkillOrderByUpdated", + "CatalogSkillOrderByName" ] }, - "CatalogResourceAvailability": { + "CatalogSkill": { "type": "object", + "description": "A skill: a step-by-step guide, published by Runpod, that an agent follows to set up a workload. Read its README at `GET /v2/catalog/skills/{id}/readme`.", "required": [ "id", "name", - "availability" + "description", + "tags", + "mcpSupport", + "official", + "sourceUrl", + "createdAt", + "updatedAt" ], "properties": { "id": { "type": "string", - "description": "Catalog resource identifier.", + "description": "Stable skill identifier.", "examples": [ - "NVIDIA GeForce RTX 4090" + "02-comfyui-pod" ] }, "name": { "type": "string", - "description": "Human-readable catalog resource name.", "examples": [ - "RTX 4090" + "ComfyUI server on a pod" ] }, - "availability": { - "$ref": "#/components/schemas/AvailabilityLevel" + "description": { + "type": "string", + "examples": [ + "Provisions a GPU pod, gets ComfyUI running with a checkpoint and the default text-to-image workflow, and returns a proxy URL for the web UI." + ] + }, + "tags": { + "type": "array", + "description": "Lowercase kebab-case labels.", + "items": { + "type": "string" + }, + "examples": [ + [ + "comfyui", + "image-generation", + "pod" + ] + ] + }, + "mcpSupport": { + "description": "Null when the skill doesn't say.", + "anyOf": [ + { + "$ref": "#/components/schemas/CatalogSkillMcpSupport" + }, + { + "type": "null" + } + ] + }, + "official": { + "type": "boolean", + "description": "Whether Runpod publishes it. Always true for skills.", + "examples": [ + true + ] + }, + "sourceUrl": { + "type": "string", + "format": "uri", + "description": "Raw GitHub URL of the skill's README.", + "examples": [ + "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod/golden-paths/02-comfyui-pod/README.md" + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2026-07-14T21:20:11Z" + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2026-10-13T14:51:26Z" + ] } } }, - "DataCenterAvailability": { + "CatalogSkillVariant": { "type": "object", + "description": "One way to follow a skill, such as using a prebuilt image or building your own. Read it at `GET /v2/catalog/skills/{id}/variants/{variantId}`.", "required": [ "id", "name", - "availability" + "description", + "default", + "sourceUrl" ], "properties": { "id": { "type": "string", - "description": "Data center identifier.", "examples": [ - "US-CA-2" + "variant-b-prebuilt" ] }, "name": { "type": "string", - "description": "Human-readable data center name.", "examples": [ - "US California 2" + "Prebuilt official image" ] }, - "availability": { - "$ref": "#/components/schemas/AvailabilityLevel" - } - } - }, - "CudaVersionAvailability": { - "type": "object", - "required": [ - "version", - "available" - ], - "properties": { - "version": { - "type": "string", - "pattern": "^\\d+\\.\\d+$", - "description": "CUDA version as `major.minor`, suitable for `gpu.allowedCudaVersions` on pod create.", + "description": { + "type": [ + "string", + "null" + ], "examples": [ - "12.8" + "Deploy Runpod's official ComfyUI image. Least effort, most reliable." ] }, - "available": { + "default": { "type": "boolean", - "description": "True when at least one machine on this CUDA version has free capacity now. False means the version is offered for this GPU type but is currently full, so a pod constrained to it will fail on capacity.", + "description": "Whether this is the skill's default variant. At most one variant per skill is the default.", "examples": [ true ] + }, + "sourceUrl": { + "type": "string", + "format": "uri", + "description": "Raw GitHub URL of the variant.", + "examples": [ + "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod/golden-paths/02-comfyui-pod/variant-b-prebuilt.md" + ] } } }, - "ListGpuTypesResponse": { - "type": "object", - "required": [ - "gpus" - ], - "properties": { - "gpus": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GpuType" - } - } - } - }, - "CpuType": { + "CatalogSkillLink": { "type": "object", + "description": "A skill or reference document the skill relies on.", "required": [ - "id", "name", - "group", - "vcpu", - "ramGbPerVcpu", - "price" + "url" ], "properties": { - "id": { + "name": { "type": "string", - "description": "CPU flavor identifier (use in cpu.id for pod creation)", "examples": [ - "cpu5c" + "Storage" ] }, - "name": { - "type": "string", - "description": "Human-readable flavor name", - "examples": [ - "Compute-Optimized" - ] - }, - "group": { + "url": { "type": "string", - "description": "CPU generation group", - "examples": [ - "Gen 5" - ] - }, - "vcpu": { - "type": "object", - "required": [ - "min", - "max" - ], - "properties": { - "min": { - "type": "integer", - "examples": [ - 2 - ] - }, - "max": { - "type": "integer", - "examples": [ - 32 - ] - } - } - }, - "ramGbPerVcpu": { - "type": "number", - "format": "float", - "description": "GB of RAM allocated per vCPU. Multiply by the chosen vCPU\ncount (within `vcpu.min`..`vcpu.max`) to get the total RAM\nfor an instance of this flavor. May be fractional.\n", + "format": "uri", + "description": "Raw GitHub URL of the skill or reference document.", "examples": [ - 2.5 + "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod-usage/reference/storage.md" ] + } + } + }, + "CatalogSkillDetail": { + "description": "A skill with its variants.", + "allOf": [ + { + "$ref": "#/components/schemas/CatalogSkill" }, - "price": { + { "type": "object", "required": [ - "securePerVcpu", - "serverlessPerVcpu" + "variants", + "supplementalSkills" ], "properties": { - "securePerVcpu": { - "type": "number", - "format": "float", - "description": "Price for secure pods per vCPU. Multiply by the chosen vCPU\ncount (within `vcpu.min`..`vcpu.max`) to get the total price.\n", - "examples": [ - 0.04 - ] + "variants": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogSkillVariant" + } }, - "serverlessPerVcpu": { - "type": "number", - "format": "float", - "description": "Price for serverless per vCPU. Multiply by the chosen vCPU\ncount (within `vcpu.min`..`vcpu.max`) to get the total price.\n", - "examples": [ - 0.03 - ] + "supplementalSkills": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogSkillLink" + } } } - }, - "availability": { - "description": "Overall CPU availability for the requested `product` contexts. Present only when requested with include=AVAILABILITY, which also requires `product`.", - "$ref": "#/components/schemas/AvailabilityLevel" - }, - "dataCenters": { - "type": "array", - "description": "Per-datacenter CPU availability for the requested `product`\ncontexts, listing only the datacenters that offer this CPU flavor.\nPresent only when requested with include=AVAILABILITY, which also\nrequires `product`, and omitted entirely when the flavor is\nunavailable everywhere.\n", - "items": { - "$ref": "#/components/schemas/DataCenterAvailability" - } } - } + ] }, - "ListCpuTypesResponse": { + "ListCatalogSkillsResponse": { "type": "object", "required": [ - "cpus" + "skills", + "pagination" ], "properties": { - "cpus": { + "skills": { "type": "array", "items": { - "$ref": "#/components/schemas/CpuType" + "$ref": "#/components/schemas/CatalogSkill" } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" } } }, - "DataCenter": { + "ReliabilityTier": { + "type": "string", + "description": "`UNVERIFIED` while `reliability` is null. Otherwise `UNSTABLE` below Runpod's cutoff for the object's kind and `VERIFIED` at or above it. Set your own bar with `minReliability`.", + "enum": [ + "VERIFIED", + "UNVERIFIED", + "UNSTABLE" + ], + "x-enum-varnames": [ + "ReliabilityTierVerified", + "ReliabilityTierUnverified", + "ReliabilityTierUnstable" + ] + }, + "HubHealth": { "type": "object", + "description": "How reliably a catalog item deploys.", "required": [ - "id", - "name", - "region", - "networkVolumeTypes", - "compliance", - "globalNetwork" + "tier", + "reliability", + "computedAt" ], "properties": { - "id": { - "type": "string", + "tier": { + "$ref": "#/components/schemas/ReliabilityTier" + }, + "reliability": { + "type": [ + "number", + "null" + ], + "format": "double", + "minimum": 0, + "maximum": 1, + "description": "Share of recent deploys that reached a healthy state; 0.9 means 90%. Null until there is enough deploy history to score.", "examples": [ - "US-TX-3" + 0.97 ] }, - "name": { - "type": "string", + "computedAt": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "When `reliability` was last computed. Null when never scored.", "examples": [ - "US Texas 3" + "2026-11-04T06:00:00Z" ] - }, - "region": { - "$ref": "#/components/schemas/DataCenterRegion" - }, - "globalNetwork": { - "type": "boolean", - "description": "Whether this data center supports global networking (private cross-datacenter pod-to-pod network).", + } + } + }, + "HubGpuCompatibility": { + "type": "object", + "description": "The GPUs and CUDA versions a catalog item declares. Empty lists mean it declares none.", + "required": [ + "recommendedGpuTypeIds", + "incompatibleGpuTypeIds", + "minVramInGb", + "allowedCudaVersions", + "minCudaVersion" + ], + "properties": { + "recommendedGpuTypeIds": { + "type": "array", + "description": "GPU type IDs, as in `GET /v2/catalog/gpus`.", + "items": { + "type": "string" + }, "examples": [ - true + [ + "NVIDIA GeForce RTX 4090", + "NVIDIA L4" + ] ] }, - "networkVolumeTypes": { + "incompatibleGpuTypeIds": { "type": "array", + "description": "GPU type IDs, as in `GET /v2/catalog/gpus`.", "items": { - "$ref": "#/components/schemas/VolumeType" + "type": "string" }, - "description": "Network volume tiers this DC supports. Empty = none." + "examples": [ + [] + ] }, - "compliance": { + "minVramInGb": { + "type": [ + "integer", + "null" + ], + "description": "Null when it declares none. Repos never declare one.", + "examples": [ + 24 + ] + }, + "allowedCudaVersions": { "type": "array", - "description": "Compliance certifications held by this data center", "items": { - "$ref": "#/components/schemas/Compliance" + "type": "string" }, "examples": [ [ - "GDPR", - "ISO_IEC_27001", - "SOC_2_TYPE_2" + "12.8", + "12.9" ] ] }, - "gpuAvailability": { - "type": "array", - "description": "Availability of each GPU this data center offers. Present only when\nrequested with include=GPU_AVAILABILITY, and omitted entirely when\nthe data center offers no GPUs.\n", - "items": { - "$ref": "#/components/schemas/CatalogResourceAvailability" - } - }, - "cpuAvailability": { - "type": "array", - "description": "Availability of each CPU flavor this data center offers. Present\nonly when requested with include=CPU_AVAILABILITY, and omitted\nentirely when the data center offers no CPU flavors.\n", - "items": { - "$ref": "#/components/schemas/CatalogResourceAvailability" - } - } - } - }, - "DataCenterRegion": { - "type": "string", - "description": "Continental region containing the data center.", - "examples": [ - "EUROPE" - ], - "enum": [ - "NORTH_AMERICA", - "SOUTH_AMERICA", - "EUROPE", - "ASIA", - "MIDDLE_EAST", - "AFRICA", - "OCEANIA", - "ANTARCTICA", - "UNKNOWN" - ] - }, - "Compliance": { - "type": "string", - "description": "Compliance certifications.", - "enum": [ - "GDPR", - "ISO_IEC_27001", - "ISO_14001", - "PCI_DSS", - "HITRUST", - "SOC_1_TYPE_2", - "SOC_2_TYPE_2", - "SOC_3_TYPE_2", - "ITAR", - "FISMA_HIGH", - "HIPAA", - "RENEWABLE" - ] - }, - "ListDataCentersResponse": { - "type": "object", - "required": [ - "dataCenters" - ], - "properties": { - "dataCenters": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DataCenter" - } + "minCudaVersion": { + "type": [ + "string", + "null" + ], + "description": "The lowest CUDA version it runs on, applied when `allowedCudaVersions` is empty. Null when it declares none. Templates never declare one.", + "examples": [ + "12.4" + ] } } }, - "CostCenter": { + "CatalogRepository": { "type": "object", + "description": "The GitHub repository a Hub repo is built from.", "required": [ - "id", - "value" + "owner", + "name", + "url", + "ownerAvatarUrl" ], "properties": { - "id": { + "owner": { "type": "string", "examples": [ - "clz1x9k4a0000qw3h8s7d2f1g" + "runpod-workers" ] }, - "value": { + "name": { "type": "string", - "description": "Cost center name exactly as stored, so it matches billing breakdowns.", "examples": [ - "team-ml" + "worker-comfyui" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/runpod-workers/worker-comfyui" + ] + }, + "ownerAvatarUrl": { + "type": [ + "string", + "null" + ], + "format": "uri", + "examples": [ + "https://avatars.githubusercontent.com/u/123456?v=4" ] } } }, - "ResourceCostCenter": { - "description": "Cost center this resource's spend is attributed to. Absent when the resource is not attributed to a cost center, or when the caller lacks permission to view cost centers. Managed through `/v2/cost-centers`.", - "allOf": [ - { - "$ref": "#/components/schemas/CostCenter" - } - ] - }, - "ListCostCentersResponse": { + "CatalogRepoStats": { "type": "object", "required": [ - "costCenters", - "pagination" + "deploys", + "stars", + "views" ], "properties": { - "costCenters": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CostCenter" - } + "deploys": { + "type": "integer", + "examples": [ + 41210 + ] }, - "pagination": { - "$ref": "#/components/schemas/Pagination" - } - } - }, - "ListCostCenterResourcesResponse": { - "type": "object", - "required": [ - "resources", - "pagination" - ], - "properties": { - "resources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CostCenterResource" - } + "stars": { + "type": "integer", + "description": "GitHub stars.", + "examples": [ + 812 + ] }, - "pagination": { - "$ref": "#/components/schemas/Pagination" + "views": { + "type": "integer", + "description": "Hub page views.", + "examples": [ + 190455 + ] } } }, - "ResourceType": { - "type": "string", - "description": "Kind of resource a cost center or tag can be attached to.", - "x-enum-varnames": [ - "ResourceTypePod", - "ResourceTypeCluster", - "ResourceTypeServerlessEndpoint", - "ResourceTypeNetworkVolume" - ], - "enum": [ - "POD", - "CLUSTER", - "SERVERLESS_ENDPOINT", - "NETWORK_VOLUME" - ] - }, - "CostCenterResource": { + "CatalogRepoReleaseSummary": { "type": "object", - "additionalProperties": false, + "description": "The release the Hub lists for a repo.", "required": [ "id", - "type" + "tag", + "releasedAt", + "image", + "deployable" ], "properties": { "id": { "type": "string", - "minLength": 1, + "description": "Hub release ID.", "examples": [ - "p9k2m4n6q8" + "cm8a1b2c3000108l4d5e6f7g8" ] }, - "type": { - "$ref": "#/components/schemas/ResourceType" - } - } - }, - "CreateCostCenterRequest": { - "type": "object", - "additionalProperties": false, - "required": [ - "value" - ], - "properties": { - "value": { + "tag": { "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^\\s*\\S", - "description": "Leading and trailing whitespace is trimmed.", + "description": "Git tag.", "examples": [ - "team-ml" + "v5.4.1" ] }, - "resources": { - "type": "array", - "description": "Resources to attribute to the new cost center.", - "maxItems": 100, - "items": { - "$ref": "#/components/schemas/CostCenterResource" - } - } - } - }, - "UpdateCostCenterRequest": { - "type": "object", - "additionalProperties": false, - "required": [ - "value" - ], - "properties": { - "value": { + "releasedAt": { "type": "string", - "minLength": 1, - "maxLength": 50, - "pattern": "^\\s*\\S", - "description": "Leading and trailing whitespace is trimmed.", + "format": "date-time", "examples": [ - "team-ml-eu" + "2026-10-28T00:00:00Z" + ] + }, + "image": { + "type": [ + "string", + "null" + ], + "description": "The built image. Null while the build is still running.", + "examples": [ + "runpod/worker-comfyui:5.4.1-base" + ] + }, + "deployable": { + "type": "boolean", + "description": "Whether the release has a built image to deploy.", + "examples": [ + true ] } } }, - "TagReference": { + "CatalogRepo": { "type": "object", + "description": "A Hub repo: a GitHub repository Runpod builds into a deployable image. Read its README at `GET /v2/catalog/repos/{id}/readme`.", "required": [ "id", - "key", - "value" + "name", + "description", + "products", + "category", + "tags", + "official", + "repository", + "health", + "stats", + "latestRelease", + "createdAt", + "updatedAt" ], "properties": { "id": { "type": "string", - "description": "ID of the tag itself, shared by every resource it is attached to.", "examples": [ - "clz1x9k4a0000qw3h8s7d2f1g" + "cm862p99s000008ilegk86af6" ] }, - "key": { + "name": { "type": "string", "examples": [ - "env" + "ComfyUI" ] }, - "value": { + "description": { "type": "string", - "description": "May be empty.", + "description": "Empty when the repo has none.", "examples": [ - "dev" + "ComfyUI as a serverless API." ] - } - } - }, - "ResourceTags": { - "type": "array", - "description": "The tags on this resource that are visible to the caller. Keys and values are returned exactly as stored. Tags under the reserved `runpod:` prefix, such as the cost center, are never listed here. Absent when the resource's tags are unavailable to the caller; an empty array means none are visible.", - "items": { - "$ref": "#/components/schemas/TagReference" - } - }, - "ResourceFilters": { - "type": "object", - "additionalProperties": false, - "description": "An empty object, or an empty `tags` array, filters nothing.", - "properties": { - "tags": { - "type": "array", - "maxItems": 25, - "description": "Conditions on the resource's tags. A resource must match every condition; repeating a key adds a condition rather than widening the first one. At most 25, the most tags one resource can carry.", - "items": { - "$ref": "#/components/schemas/TagCondition" - } - } - } - }, - "TagCondition": { - "type": "object", - "additionalProperties": false, - "required": [ - "key" - ], - "properties": { - "key": { - "$ref": "#/components/schemas/TagKey" }, - "values": { + "products": { "type": "array", - "maxItems": 100, - "description": "Matches a tag under `key` with any one of these values, compared exactly. Omitted or empty, the condition only requires the key to be present. `\"\"` matches a tag whose value is empty. At most 100.", "items": { - "type": "string", - "maxLength": 191 + "$ref": "#/components/schemas/HubProduct" }, "examples": [ [ - "dev", - "prod" + "SERVERLESS" ] ] - } - } - }, - "TagKey": { - "type": "string", - "minLength": 1, - "maxLength": 191, - "pattern": "[^\\t-\\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]", - "not": { - "pattern": "^[\\t-\\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*[Rr][Uu][Nn][Pp][Oo][Dd]:" - }, - "description": "Tag key, 1–191 characters as sent, with at least one that is not whitespace. Leading and trailing whitespace is ignored. Keys under the reserved `runpod:` prefix, in any letter case, are rejected.", - "examples": [ - "env" - ] - }, - "Tag": { - "type": "object", - "required": [ - "id", - "key", - "value", - "createdAt", - "updatedAt" - ], - "properties": { - "id": { - "type": "string", - "description": "Shared by every resource the tag is attached to.", + }, + "category": { + "type": [ + "string", + "null" + ], "examples": [ - "clz1x9k4a0000qw3h8s7d2f1g" + "image" ] }, - "key": { - "type": "string", - "description": "Returned exactly as stored.", + "tags": { + "type": "array", + "items": { + "type": "string" + }, "examples": [ - "env" + [ + "comfyui" + ] ] }, - "value": { - "type": "string", - "description": "Returned exactly as stored. May be empty.", + "official": { + "type": "boolean", + "description": "Whether Runpod publishes it: true for repos owned by the `runpod-workers` GitHub organization.", "examples": [ - "dev" + true + ] + }, + "repository": { + "$ref": "#/components/schemas/CatalogRepository" + }, + "health": { + "$ref": "#/components/schemas/HubHealth" + }, + "stats": { + "$ref": "#/components/schemas/CatalogRepoStats" + }, + "latestRelease": { + "description": "Null until a release is listed.", + "anyOf": [ + { + "$ref": "#/components/schemas/CatalogRepoReleaseSummary" + }, + { + "type": "null" + } ] }, "createdAt": { "type": "string", "format": "date-time", "examples": [ - "2026-11-04T09:00:00Z" + "2025-03-01T00:00:00Z" ] }, "updatedAt": { "type": "string", "format": "date-time", + "description": "When the listed release was published.", "examples": [ - "2026-11-04T09:00:00Z" + "2026-10-28T00:00:00Z" ] } } }, - "ListTagsResponse": { + "CatalogEnvInput": { "type": "object", + "description": "An environment variable the repo reads, with its default.", "required": [ - "tags", - "pagination" + "key", + "default", + "description", + "required" ], "properties": { - "tags": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Tag" - } + "key": { + "type": "string", + "examples": [ + "MODEL_NAME" + ] }, - "pagination": { - "$ref": "#/components/schemas/Pagination" + "default": { + "type": [ + "string", + "null" + ], + "description": "The default value as a string. Null when there is none.", + "examples": [ + "Tongyi-MAI/Z-Image-Turbo" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "Hugging Face model to load." + ] + }, + "required": { + "type": "boolean", + "description": "Whether the repo needs a value for this variable.", + "examples": [ + true + ] } } }, - "ListTagResourcesResponse": { + "CatalogRepoDeployDefaults": { "type": "object", + "description": "How the release deploys by default, from its `hub.json`.", "required": [ - "resources", - "pagination" + "computeType", + "endpointType", + "cpu", + "gpuTypeIds", + "gpuCount", + "containerDiskInGb", + "gpuCompatibility", + "volume", + "env" ], "properties": { - "resources": { + "computeType": { + "type": "string", + "enum": [ + "GPU", + "CPU" + ], + "x-enum-varnames": [ + "CatalogRepoComputeTypeGpu", + "CatalogRepoComputeTypeCpu" + ], + "examples": [ + "GPU" + ] + }, + "endpointType": { + "description": "The endpoint `type` to create when deploying as a serverless endpoint.", + "$ref": "#/components/schemas/EndpointType" + }, + "cpu": { + "description": "The CPU flavor and vCPU count when `computeType` is `CPU`. A release that names no flavor gets `cpu3g`, and one that names no vCPU count gets 4. Null for GPU.", + "anyOf": [ + { + "$ref": "#/components/schemas/BaseCpuConfig" + }, + { + "type": "null" + } + ] + }, + "gpuTypeIds": { "type": "array", + "description": "GPU type IDs the release deploys to, as in `GET /v2/catalog/gpus`. Empty when it doesn't pin any.", "items": { - "$ref": "#/components/schemas/CostCenterResource" - } + "type": "string" + }, + "examples": [ + [ + "NVIDIA GeForce RTX 4090", + "NVIDIA L4" + ] + ] }, - "pagination": { - "$ref": "#/components/schemas/Pagination" + "gpuCount": { + "type": "integer", + "examples": [ + 1 + ] + }, + "containerDiskInGb": { + "type": [ + "integer", + "null" + ], + "description": "Null when the release doesn't set one.", + "examples": [ + 20 + ] + }, + "gpuCompatibility": { + "$ref": "#/components/schemas/HubGpuCompatibility" + }, + "volume": { + "description": "The volume the release asks for. Null when it asks for none.", + "anyOf": [ + { + "$ref": "#/components/schemas/CatalogRepoVolume" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogEnvInput" + } } } }, - "CreateTagRequest": { + "CatalogRepoVolume": { "type": "object", - "additionalProperties": false, + "description": "A volume a release asks to have attached at deploy.", "required": [ - "key", - "value" + "required", + "types" ], "properties": { - "key": { - "$ref": "#/components/schemas/TagKey" - }, - "value": { - "$ref": "#/components/schemas/TagValue" + "required": { + "type": "boolean", + "description": "Whether the deploy needs the volume, rather than only offering one.", + "examples": [ + true + ] }, - "resources": { + "types": { "type": "array", - "description": "Existing resources to attach the new tag to.", - "maxItems": 100, + "description": "The volume types it accepts. Never empty.", "items": { - "$ref": "#/components/schemas/CostCenterResource" - } + "$ref": "#/components/schemas/CatalogVolumeType" + }, + "examples": [ + [ + "GLOBAL", + "NETWORK" + ] + ] } } }, - "UpdateTagRequest": { + "CatalogVolumeType": { + "type": "string", + "description": "A kind of volume a deploy can attach.", + "enum": [ + "GLOBAL", + "NETWORK" + ], + "x-enum-varnames": [ + "CatalogVolumeTypeGlobal", + "CatalogVolumeTypeNetwork" + ], + "examples": [ + "GLOBAL" + ] + }, + "CatalogRepoRelease": { + "description": "The listed release, with its notes and deploy defaults.", + "allOf": [ + { + "$ref": "#/components/schemas/CatalogRepoReleaseSummary" + }, + { + "type": "object", + "required": [ + "name", + "notes", + "deploy" + ], + "properties": { + "name": { + "type": "string", + "examples": [ + "v5.4.1" + ] + }, + "notes": { + "type": "string", + "description": "The release notes. Empty when there are none.", + "examples": [ + "Adds Flux.2 support." + ] + }, + "deploy": { + "$ref": "#/components/schemas/CatalogRepoDeployDefaults" + } + } + } + ] + }, + "CatalogRepoDetail": { + "description": "A repo with its license and listed release.", + "allOf": [ + { + "$ref": "#/components/schemas/CatalogRepo" + }, + { + "type": "object", + "required": [ + "license", + "latestRelease" + ], + "properties": { + "license": { + "type": [ + "string", + "null" + ], + "examples": [ + "MIT" + ] + }, + "latestRelease": { + "anyOf": [ + { + "$ref": "#/components/schemas/CatalogRepoRelease" + }, + { + "type": "null" + } + ] + } + } + } + ] + }, + "ListCatalogReposResponse": { "type": "object", - "additionalProperties": false, - "minProperties": 1, - "description": "The fields to change; omitted fields are unchanged. Resources the tag is attached to stay attached.", + "required": [ + "repos", + "pagination" + ], "properties": { - "key": { - "$ref": "#/components/schemas/TagKey" + "repos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogRepo" + } }, - "value": { - "$ref": "#/components/schemas/TagValue" + "pagination": { + "$ref": "#/components/schemas/Pagination" } } }, - "TagValue": { - "type": "string", - "maxLength": 191, - "description": "Tag value, at most 191 characters. May be empty. Stored exactly as sent, whitespace included.", - "examples": [ - "dev" - ] - }, - "AuditLog": { + "CatalogTemplateHubFields": { "type": "object", - "description": "One recorded action on the account.", + "description": "The Hub fields of a catalog template. A `VERSIONED` item is one tag of a versioned line: `id`, `name`, `image` and the container fields are the tag's, as `GET /v2/templates/{id}` returns them, and `versionedTemplateId` names the line.", "required": [ - "actorId", - "email", - "resourceType", - "resourceId", - "action", - "value", - "timestamp" + "type", + "versionedTemplateId", + "currentVersion", + "official", + "verified", + "products", + "health", + "gpuCompatibility", + "stats", + "createdAt", + "updatedAt" ], "properties": { - "actorId": { + "type": { + "$ref": "#/components/schemas/CatalogTemplateType" + }, + "versionedTemplateId": { "type": [ "string", "null" ], - "description": "ID of the user who performed the action. Null when the action was not attributable to a user.", + "description": "The versioned line this tag belongs to. Null for `SINGLE`.", "examples": [ - "user_id_abc_123" + "cmv9r2rer000vbcnlha8hwf9c" ] }, - "email": { + "currentVersion": { "type": [ "string", "null" ], - "description": "Email of the actor when the action was recorded. Null when unknown.", + "description": "The line's current version. Null for `SINGLE`, and for a tag whose line has no current version.", "examples": [ - "actor@example.com" + "2.7.1" ] }, - "resourceType": { - "type": "string", - "description": "Kind of resource the action applied to, as recorded at write time. Not an enum: values are free-form, mostly lower camel case, and new kinds appear without an API version change. Current writers record values such as `pod`, `apiKey`, `sharedApiKey`, `secret`, `costCenter`, `paymentMethod`, `billingAccount`, `registryCredential`, `organization` and `group`, and `unknown` when the writer recorded no kind.", + "official": { + "type": "boolean", + "description": "Whether Runpod publishes the template.", "examples": [ - "pod", - "apiKey", - "costCenter" + true ] }, - "resourceId": { - "type": "string", - "description": "ID of the affected resource. Empty when the action was not about one resource; a bulk action lists every affected ID, comma-separated.", + "verified": { + "type": "boolean", + "description": "Whether Runpod has verified this community template.", "examples": [ - "abc123" + false ] }, - "action": { - "type": "string", - "description": "Name of the action, as recorded at write time. Not an enum: values are free-form, mostly lower case verbs, and new actions appear without an API version change. Current writers record values such as `create`, `update`, `delete`, `rename`, `lock`, `unlock`, `start`, `reset`, `add` and `setBillingMode`.", + "products": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HubProduct" + }, "examples": [ - "create", - "delete", - "rename" + [ + "POD" + ] ] }, - "value": { - "type": [ - "string", - "null" - ], - "description": "Details of the change as a JSON-encoded string. The structure varies by action; parse it as JSON for a structured view. A bulk action split across several entries adds an `auditChunk` object with `index` and `of`. Null when the action recorded no details.", + "health": { + "$ref": "#/components/schemas/HubHealth" + }, + "gpuCompatibility": { + "$ref": "#/components/schemas/HubGpuCompatibility" + }, + "stats": { + "$ref": "#/components/schemas/CatalogTemplateStats" + }, + "createdAt": { + "type": "string", + "format": "date-time", "examples": [ - "{\"status\":\"TERMINATED\"}", - "{\"name\":\"training-run-7\"}", - "{\"id\":\"sec_789\",\"name\":\"HF_TOKEN\",\"sharedWithOrganization\":true}" + "2026-10-15T16:25:38Z" ] }, - "timestamp": { + "updatedAt": { "type": "string", "format": "date-time", - "description": "When the action happened (UTC, whole seconds).", + "description": "When the template's content was last edited.", "examples": [ - "2026-09-02T00:00:00Z" + "2026-10-30T18:19:02Z" ] } } }, - "ListAuditLogsResponse": { - "type": "object", - "required": [ - "auditLogs", - "pagination" - ], - "properties": { - "auditLogs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AuditLog" - } - }, - "pagination": { - "$ref": "#/components/schemas/Pagination" - } - } - }, - "BillingTimeRange": { + "CatalogTemplateStats": { "type": "object", - "description": "Half-open time range [startTime, endTime) in RFC 3339. On a record it is the time bucket; on a query echo it is the resolved window.\n", + "description": "Unique users who deployed the template, refreshed periodically. For a `VERSIONED` item, the sum over every tag in its line.", "required": [ - "startTime", - "endTime" + "deployers", + "deployersLast30Days" ], "properties": { - "startTime": { - "type": "string", - "format": "date-time", - "description": "Start of the range, inclusive (RFC 3339).", + "deployers": { + "type": "integer", + "description": "All time.", "examples": [ - "2026-06-01T00:00:00Z" + 1840 ] }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "End of the range, exclusive (RFC 3339).", + "deployersLast30Days": { + "type": "integer", "examples": [ - "2026-06-02T00:00:00Z" + 211 ] } } }, - "BillingBucketSize": { + "CatalogTemplateChannel": { "type": "string", + "description": "The release channel a version holds.", "enum": [ - "hour", - "day", - "week", - "month", - "year" + "CURRENT", + "BETA", + "ALPHA" ], "x-enum-varnames": [ - "BillingBucketSizeHour", - "BillingBucketSizeDay", - "BillingBucketSizeWeek", - "BillingBucketSizeMonth", - "BillingBucketSizeYear" - ], - "default": "day", - "description": "Length of each billing time bucket.", - "examples": [ - "day" + "CatalogTemplateChannelCurrent", + "CatalogTemplateChannelBeta", + "CatalogTemplateChannelAlpha" ] }, - "BillingMode": { + "CatalogTemplateTagChannel": { "type": "string", + "description": "The channel a tag holds. `DEPRECATED` once superseded.", "enum": [ - "PREPAID", - "POSTPAID" + "CURRENT", + "BETA", + "ALPHA", + "DEPRECATED" ], - "description": "PREPAID accounts spend from the balance. POSTPAID accounts are invoiced, so a low balance doesn't stop them.", - "examples": [ - "PREPAID" + "x-enum-varnames": [ + "CatalogTemplateTagChannelCurrent", + "CatalogTemplateTagChannelBeta", + "CatalogTemplateTagChannelAlpha", + "CatalogTemplateTagChannelDeprecated" ] }, - "Balance": { + "CatalogTemplateTag": { "type": "object", + "description": "One deployable image of a version.", "required": [ - "balanceAmount", - "billingMode" + "templateId", + "name", + "image", + "channel" ], "properties": { - "balanceAmount": { - "type": "number", - "format": "double", - "description": "Account balance in USD. On a prepaid account, new Pods and workers are refused when it runs out.", + "templateId": { + "type": "string", + "description": "Deploy with this; it resolves at `GET /v2/templates/{id}`.", "examples": [ - 42.18 + "opvzatg7kb" ] }, - "billingMode": { - "$ref": "#/components/schemas/BillingMode" + "name": { + "type": "string", + "examples": [ + "ROCm 6.4.4 · Ubuntu 24.04 · 1.6.0-2.7.1" + ] + }, + "image": { + "type": "string", + "examples": [ + "runpod/rocm:1.6.0-rocm644-ubuntu2404-py312-pytorch271" + ] + }, + "channel": { + "oneOf": [ + { + "$ref": "#/components/schemas/CatalogTemplateTagChannel" + }, + { + "type": "null" + } + ] } } }, - "BillingAmounts": { + "CatalogTemplateVersion": { "type": "object", - "description": "Total spend across all billable Runpod resources with each cost component broken out, fully prefixed by resource. Backs the aggregate record's amounts and the metadata totals. Serverless amounts are inclusive of platform charges.\n", "required": [ - "totalAmount", - "podGpuAmount", - "podCpuAmount", - "podDiskAmount", - "serverlessGpuAmount", - "serverlessCpuAmount", - "serverlessDiskAmount", - "serverlessFeeAmount", - "storageStandardAmount", - "storageHighPerformanceAmount", - "endpointAmount", - "clusterGpuAmount", - "clusterDiskAmount", - "clusterNetworkingAmount" + "id", + "version", + "name", + "changelog", + "channel", + "deprecatedAt", + "createdAt", + "tags" ], "properties": { - "totalAmount": { - "type": "number", - "format": "double", - "description": "Total cost in USD for the bucket across all resources.", + "id": { + "type": "string", "examples": [ - 42.34 + "cmv9r2to100diufgzw2zvmr30" ] }, - "podGpuAmount": { - "type": "number", - "format": "double", - "description": "GPU pod compute cost in USD for the bucket." - }, - "podCpuAmount": { - "type": "number", - "format": "double", - "description": "CPU pod compute cost in USD for the bucket." - }, - "podDiskAmount": { - "type": "number", - "format": "double", - "description": "Pod disk cost in USD for the bucket." - }, - "serverlessGpuAmount": { - "type": "number", - "format": "double", - "description": "Serverless GPU compute cost in USD for the bucket." - }, - "serverlessCpuAmount": { - "type": "number", - "format": "double", - "description": "Serverless CPU compute cost in USD for the bucket." - }, - "serverlessDiskAmount": { - "type": "number", - "format": "double", - "description": "Serverless disk cost in USD for the bucket." - }, - "serverlessFeeAmount": { - "type": "number", - "format": "double", - "deprecated": true, - "description": "Unused and always 0. Platform charges are included in the serverless compute amounts.\n" + "version": { + "type": "string", + "examples": [ + "2.7.1" + ] }, - "storageStandardAmount": { - "type": "number", - "format": "double", - "description": "Standard network volume storage cost in USD for the bucket." + "name": { + "type": "string", + "examples": [ + "ROCm" + ] }, - "storageHighPerformanceAmount": { - "type": "number", - "format": "double", - "description": "High-performance network volume storage cost in USD for the bucket." + "changelog": { + "type": "string", + "description": "Empty when there is none.", + "examples": [ + "Template 1.6.0: ROCm 6.4.4 and PyTorch 2.7.1." + ] }, - "endpointAmount": { - "type": "number", - "format": "double", - "description": "Runpod public endpoint cost in USD for the bucket." + "channel": { + "description": "Null once a newer version takes the channel.", + "oneOf": [ + { + "$ref": "#/components/schemas/CatalogTemplateChannel" + }, + { + "type": "null" + } + ] }, - "clusterGpuAmount": { - "type": "number", - "format": "double", - "description": "Cluster GPU compute cost in USD for the bucket." + "deprecatedAt": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + null + ] }, - "clusterDiskAmount": { - "type": "number", - "format": "double", - "description": "Cluster disk cost in USD for the bucket." + "createdAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2026-10-15T16:25:39Z" + ] }, - "clusterNetworkingAmount": { - "type": "number", - "format": "double", - "description": "Cluster inter-node networking cost in USD for the bucket." + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogTemplateTag" + } } } }, - "BillingRecord": { - "description": "A single time-bucketed record of total spend across all billable Runpod resources, with each cost component broken out. Returned by GET /v2/billing.\n", + "CatalogTemplateDetail": { "allOf": [ { - "$ref": "#/components/schemas/BillingTimeRange" + "$ref": "#/components/schemas/CatalogTemplate" }, { - "$ref": "#/components/schemas/BillingAmounts" + "type": "object", + "required": [ + "versions" + ], + "properties": { + "versions": { + "type": "array", + "description": "A versioned line's versions, newest first, deprecated ones included. Empty for `SINGLE`.", + "items": { + "$ref": "#/components/schemas/CatalogTemplateVersion" + } + } + } } ] }, - "PodBillingAmounts": { - "type": "object", - "description": "Pod cost components covering both GPU and CPU pods. Backs a record's amounts and the metadata totals.\n", - "required": [ - "totalAmount", - "gpuAmount", - "cpuAmount", - "diskAmount" - ], - "properties": { - "totalAmount": { - "type": "number", - "format": "double", - "description": "Total pod cost in USD for the bucket.", - "examples": [ - 12.34 - ] - }, - "gpuAmount": { - "type": "number", - "format": "double", - "description": "GPU pod compute cost in USD for the bucket." - }, - "cpuAmount": { - "type": "number", - "format": "double", - "description": "CPU pod compute cost in USD for the bucket." - }, - "diskAmount": { - "type": "number", - "format": "double", - "description": "Pod disk cost in USD for the bucket." - } - } + "CpuProduct": { + "type": "string", + "description": "CPU catalog product availability context. Availability is product-specific, so this is required whenever availability is requested.", + "enum": [ + "POD", + "SERVERLESS" + ] }, - "PodBillingRecord": { - "description": "A single time-bucketed pod billing record, covering both GPU and CPU pods. Returned by GET /v2/billing/pods.\n", - "allOf": [ - { - "$ref": "#/components/schemas/BillingTimeRange" - }, - { - "$ref": "#/components/schemas/PodBillingAmounts" - }, - { - "type": "object", - "required": [ - "podId" - ], - "properties": { - "podId": { - "type": "string", - "description": "The pod this record bills. When the podId filter is set every record carries that id; otherwise one record is emitted per pod per bucket.\n", - "examples": [ - "pod_abc123" - ] - } - } - } + "CatalogInclude": { + "type": "string", + "description": "Catalog include expansion. Only AVAILABILITY is supported today; additional include values may be added in the future.", + "enum": [ + "AVAILABILITY" ] }, - "ServerlessBillingAmounts": { + "DataCenterInclude": { + "type": "string", + "description": "Data center catalog availability expansion.", + "enum": [ + "GPU_AVAILABILITY", + "CPU_AVAILABILITY" + ] + }, + "GpuCloudFilter": { + "type": "string", + "description": "GPU availability cloud filter.", + "enum": [ + "SECURE", + "COMMUNITY" + ] + }, + "VolumeType": { + "type": "string", + "description": "Data center network volume storage type.", + "enum": [ + "STANDARD", + "HIGH_PERFORMANCE" + ] + }, + "CatalogResourceAvailability": { "type": "object", - "description": "Serverless cost components, inclusive of platform charges. Backs a record's amounts and the metadata totals.\n", "required": [ - "totalAmount", - "gpuAmount", - "cpuAmount", - "diskAmount", - "feeAmount" + "id", + "name", + "availability" ], "properties": { - "totalAmount": { - "type": "number", - "format": "double", - "description": "Total serverless cost in USD for the bucket.", + "id": { + "type": "string", + "description": "Catalog resource identifier.", "examples": [ - 8.9 + "NVIDIA GeForce RTX 4090" ] }, - "gpuAmount": { - "type": "number", - "format": "double", - "description": "Serverless GPU compute cost in USD for the bucket." - }, - "cpuAmount": { - "type": "number", - "format": "double", - "description": "Serverless CPU compute cost in USD for the bucket." - }, - "diskAmount": { - "type": "number", - "format": "double", - "description": "Serverless disk cost in USD for the bucket." + "name": { + "type": "string", + "description": "Human-readable catalog resource name.", + "examples": [ + "RTX 4090" + ] }, - "feeAmount": { - "type": "number", - "format": "double", - "deprecated": true, - "description": "Unused and always 0. Platform charges are included in the GPU and CPU amounts.\n" + "availability": { + "$ref": "#/components/schemas/AvailabilityLevel" } } }, - "ServerlessBillingRecord": { - "description": "A single time-bucketed serverless billing record. Returned by GET /v2/billing/serverless.\n", - "allOf": [ - { - "$ref": "#/components/schemas/BillingTimeRange" + "DataCenterAvailability": { + "type": "object", + "required": [ + "id", + "name", + "availability" + ], + "properties": { + "id": { + "type": "string", + "description": "Data center identifier.", + "examples": [ + "US-CA-2" + ] }, - { - "$ref": "#/components/schemas/ServerlessBillingAmounts" + "name": { + "type": "string", + "description": "Human-readable data center name.", + "examples": [ + "US California 2" + ] }, - { - "type": "object", - "required": [ - "serverlessId" - ], - "properties": { - "serverlessId": { - "type": "string", - "description": "The serverless endpoint this record bills. When the serverlessId filter is set every record carries that id; otherwise one record is emitted per serverless endpoint per bucket.\n", - "examples": [ - "ep_abc123" - ] - } - } + "availability": { + "$ref": "#/components/schemas/AvailabilityLevel" } - ] + } }, - "EndpointBillingAmounts": { + "CudaVersionAvailability": { "type": "object", - "description": "Runpod public endpoint cost. Backs a record's amounts and the metadata totals.\n", "required": [ - "totalAmount" + "version", + "available" ], "properties": { - "totalAmount": { - "type": "number", - "format": "double", - "description": "Total public endpoint cost in USD for the bucket.", + "version": { + "type": "string", + "pattern": "^\\d+\\.\\d+$", + "description": "CUDA version as `major.minor`, suitable for `gpu.allowedCudaVersions` on pod create.", "examples": [ - 3.21 + "12.8" + ] + }, + "available": { + "type": "boolean", + "description": "True when at least one machine on this CUDA version has free capacity now. False means the version is offered for this GPU type but is currently full, so a pod constrained to it will fail on capacity.", + "examples": [ + true ] } } }, - "EndpointBillingRecord": { - "description": "A single time-bucketed Runpod public endpoint billing record. Returned by GET /v2/billing/endpoints.\n", - "allOf": [ - { - "$ref": "#/components/schemas/BillingTimeRange" - }, - { - "$ref": "#/components/schemas/EndpointBillingAmounts" + "ListGpuTypesResponse": { + "type": "object", + "required": [ + "gpus" + ], + "properties": { + "gpus": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GpuType" + } } - ] + } }, - "NetworkVolumeBillingAmounts": { + "CpuType": { "type": "object", - "description": "Network volume storage cost, split into standard and high-performance. Backs a record's amounts and the metadata totals.\n", "required": [ - "totalAmount", - "standardAmount", - "highPerformanceAmount" + "id", + "name", + "group", + "vcpu", + "ramGbPerVcpu", + "price" ], "properties": { - "totalAmount": { - "type": "number", - "format": "double", - "description": "Total network volume cost in USD for the bucket, across standard and high-performance storage.\n", + "id": { + "type": "string", + "description": "CPU flavor identifier (use in cpu.id for pod creation)", "examples": [ - 5.79 + "cpu5c" ] }, - "standardAmount": { - "type": "number", - "format": "double", - "description": "Standard storage cost in USD for the bucket." - }, - "highPerformanceAmount": { - "type": "number", - "format": "double", - "description": "High-performance storage cost in USD for the bucket." - } - } - }, - "NetworkVolumeBillingRecord": { - "description": "A single time-bucketed network volume billing record, split into standard and high-performance storage. Returned by GET /v2/billing/network-volumes.\n", - "allOf": [ - { - "$ref": "#/components/schemas/BillingTimeRange" + "name": { + "type": "string", + "description": "Human-readable flavor name", + "examples": [ + "Compute-Optimized" + ] }, - { - "$ref": "#/components/schemas/NetworkVolumeBillingAmounts" + "group": { + "type": "string", + "description": "CPU generation group", + "examples": [ + "Gen 5" + ] }, - { + "vcpu": { "type": "object", "required": [ - "networkVolumeId" + "min", + "max" ], "properties": { - "networkVolumeId": { - "type": "string", - "description": "The network volume this record bills. When the networkVolumeId filter is set every record carries that id; otherwise one record is emitted per network volume per bucket.\n", + "min": { + "type": "integer", "examples": [ - "vol_abc123" + 2 + ] + }, + "max": { + "type": "integer", + "examples": [ + 32 ] } } - } - ] - }, - "ClusterBillingAmounts": { - "type": "object", - "description": "Cluster cost components (GPU-only, no CPU). Backs a record's amounts and the metadata totals.\n", - "required": [ - "totalAmount", - "gpuAmount", - "diskAmount", - "networkingAmount" - ], - "properties": { - "totalAmount": { + }, + "ramGbPerVcpu": { "type": "number", - "format": "double", - "description": "Total Instant Cluster cost in USD for the bucket.", + "format": "float", + "description": "GB of RAM allocated per vCPU. Multiply by the chosen vCPU\ncount (within `vcpu.min`..`vcpu.max`) to get the total RAM\nfor an instance of this flavor. May be fractional.\n", "examples": [ - 99.0 + 2.5 ] }, - "gpuAmount": { - "type": "number", - "format": "double", - "description": "Cluster GPU compute cost in USD for the bucket." - }, - "diskAmount": { - "type": "number", - "format": "double", - "description": "Cluster disk cost in USD for the bucket." - }, - "networkingAmount": { - "type": "number", - "format": "double", - "description": "Cluster inter-node networking cost in USD for the bucket." - } - } - }, - "ClusterBillingRecord": { - "description": "A single time-bucketed cluster billing record; clusters are GPU-only (no CPU component). Returned by GET /v2/billing/clusters.\n", - "allOf": [ - { - "$ref": "#/components/schemas/BillingTimeRange" - }, - { - "$ref": "#/components/schemas/ClusterBillingAmounts" - }, - { + "price": { "type": "object", "required": [ - "clusterId" + "securePerVcpu", + "serverlessPerVcpu" ], "properties": { - "clusterId": { - "type": "string", - "description": "The cluster this record bills. When the clusterId filter is set every record carries that id; otherwise one record is emitted per cluster per bucket.\n", + "securePerVcpu": { + "type": "number", + "format": "float", + "description": "Price for secure pods per vCPU. Multiply by the chosen vCPU\ncount (within `vcpu.min`..`vcpu.max`) to get the total price.\n", "examples": [ - "cluster_abc123" + 0.04 + ] + }, + "serverlessPerVcpu": { + "type": "number", + "format": "float", + "description": "Price for serverless per vCPU. Multiply by the chosen vCPU\ncount (within `vcpu.min`..`vcpu.max`) to get the total price.\n", + "examples": [ + 0.03 ] } } - } - ] - }, - "BillingQuery": { - "description": "Resolved query window and granularity (routes without a filter).", - "allOf": [ - { - "$ref": "#/components/schemas/BillingTimeRange" - }, - { - "type": "object", - "required": [ - "bucketSize" - ], - "properties": { - "bucketSize": { - "$ref": "#/components/schemas/BillingBucketSize" - } - } - } - ] - }, - "PodBillingQuery": { - "allOf": [ - { - "$ref": "#/components/schemas/BillingQuery" - }, - { - "type": "object", - "properties": { - "podId": { - "type": [ - "string", - "null" - ], - "description": "The podId filter applied, if any." - } - } - } - ] - }, - "ServerlessBillingQuery": { - "allOf": [ - { - "$ref": "#/components/schemas/BillingQuery" - }, - { - "type": "object", - "properties": { - "serverlessId": { - "type": [ - "string", - "null" - ], - "description": "The serverlessId filter applied, if any." - } - } - } - ] - }, - "NetworkVolumeBillingQuery": { - "allOf": [ - { - "$ref": "#/components/schemas/BillingQuery" }, - { - "type": "object", - "properties": { - "networkVolumeId": { - "type": [ - "string", - "null" - ], - "description": "The networkVolumeId filter applied, if any." - } - } - } - ] - }, - "ClusterBillingQuery": { - "allOf": [ - { - "$ref": "#/components/schemas/BillingQuery" + "availability": { + "description": "Overall CPU availability for the requested `product` contexts. Present only when requested with include=AVAILABILITY, which also requires `product`.", + "$ref": "#/components/schemas/AvailabilityLevel" }, - { - "type": "object", - "properties": { - "clusterId": { - "type": [ - "string", - "null" - ], - "description": "The clusterId filter applied, if any." - } + "dataCenters": { + "type": "array", + "description": "Per-datacenter CPU availability for the requested `product`\ncontexts, listing only the datacenters that offer this CPU flavor.\nPresent only when requested with include=AVAILABILITY, which also\nrequires `product`, and omitted entirely when the flavor is\nunavailable everywhere.\n", + "items": { + "$ref": "#/components/schemas/DataCenterAvailability" } } - ] + } }, - "BillingMetadata": { + "ListCpuTypesResponse": { "type": "object", "required": [ - "query", - "recordCount", - "totals" + "cpus" ], "properties": { - "query": { - "$ref": "#/components/schemas/BillingQuery" - }, - "recordCount": { - "type": "integer", - "description": "Number of records returned." - }, - "totals": { - "$ref": "#/components/schemas/BillingAmounts" + "cpus": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CpuType" + } } } }, - "PodBillingMetadata": { + "DataCenter": { "type": "object", "required": [ - "query", - "recordCount", - "uniquePodCount", - "totals" + "id", + "name", + "region", + "networkVolumeTypes", + "compliance", + "globalNetwork" ], "properties": { - "query": { - "$ref": "#/components/schemas/PodBillingQuery" + "id": { + "type": "string", + "examples": [ + "US-TX-3" + ] }, - "recordCount": { - "type": "integer", - "description": "Number of records returned (buckets times distinct pods)." + "name": { + "type": "string", + "examples": [ + "US Texas 3" + ] }, - "uniquePodCount": { - "type": "integer", - "description": "Number of distinct pods the records span." + "region": { + "$ref": "#/components/schemas/DataCenterRegion" }, - "totals": { - "$ref": "#/components/schemas/PodBillingAmounts" - } - } - }, - "ServerlessBillingMetadata": { - "type": "object", - "required": [ - "query", - "recordCount", - "uniqueServerlessCount", - "totals" - ], - "properties": { - "query": { - "$ref": "#/components/schemas/ServerlessBillingQuery" + "globalNetwork": { + "type": "boolean", + "description": "Whether this data center supports global networking (private cross-datacenter pod-to-pod network).", + "examples": [ + true + ] }, - "recordCount": { - "type": "integer", - "description": "Number of records returned (buckets times distinct endpoints)." + "networkVolumeTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VolumeType" + }, + "description": "Network volume tiers this DC supports. Empty = none." }, - "uniqueServerlessCount": { - "type": "integer", - "description": "Number of distinct serverless endpoints the records span." + "compliance": { + "type": "array", + "description": "Compliance certifications held by this data center", + "items": { + "$ref": "#/components/schemas/Compliance" + }, + "examples": [ + [ + "GDPR", + "ISO_IEC_27001", + "SOC_2_TYPE_2" + ] + ] }, - "totals": { - "$ref": "#/components/schemas/ServerlessBillingAmounts" + "gpuAvailability": { + "type": "array", + "description": "Availability of each GPU this data center offers. Present only when\nrequested with include=GPU_AVAILABILITY, and omitted entirely when\nthe data center offers no GPUs.\n", + "items": { + "$ref": "#/components/schemas/CatalogResourceAvailability" + } + }, + "cpuAvailability": { + "type": "array", + "description": "Availability of each CPU flavor this data center offers. Present\nonly when requested with include=CPU_AVAILABILITY, and omitted\nentirely when the data center offers no CPU flavors.\n", + "items": { + "$ref": "#/components/schemas/CatalogResourceAvailability" + } } } }, - "EndpointBillingMetadata": { - "type": "object", - "required": [ - "query", - "recordCount", - "totals" + "DataCenterRegion": { + "type": "string", + "description": "Continental region containing the data center.", + "examples": [ + "EUROPE" ], - "properties": { - "query": { - "$ref": "#/components/schemas/BillingQuery" - }, - "recordCount": { - "type": "integer" - }, - "totals": { - "$ref": "#/components/schemas/EndpointBillingAmounts" - } - } + "enum": [ + "NORTH_AMERICA", + "SOUTH_AMERICA", + "EUROPE", + "ASIA", + "MIDDLE_EAST", + "AFRICA", + "OCEANIA", + "ANTARCTICA", + "UNKNOWN" + ] }, - "NetworkVolumeBillingMetadata": { + "Compliance": { + "type": "string", + "description": "Compliance certifications.", + "enum": [ + "GDPR", + "ISO_IEC_27001", + "ISO_14001", + "PCI_DSS", + "HITRUST", + "SOC_1_TYPE_2", + "SOC_2_TYPE_2", + "SOC_3_TYPE_2", + "ITAR", + "FISMA_HIGH", + "HIPAA", + "RENEWABLE" + ] + }, + "ListDataCentersResponse": { "type": "object", "required": [ - "query", - "recordCount", - "uniqueNetworkVolumeCount", - "totals" + "dataCenters" ], "properties": { - "query": { - "$ref": "#/components/schemas/NetworkVolumeBillingQuery" - }, - "recordCount": { - "type": "integer", - "description": "Number of records returned (buckets times distinct volumes)." - }, - "uniqueNetworkVolumeCount": { - "type": "integer", - "description": "Number of distinct network volumes the records span." - }, - "totals": { - "$ref": "#/components/schemas/NetworkVolumeBillingAmounts" + "dataCenters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DataCenter" + } } } }, - "ClusterBillingMetadata": { + "CostCenter": { "type": "object", "required": [ - "query", - "recordCount", - "uniqueClusterCount", - "totals" + "id", + "value" ], "properties": { - "query": { - "$ref": "#/components/schemas/ClusterBillingQuery" - }, - "recordCount": { - "type": "integer", - "description": "Number of records returned (buckets times distinct clusters)." - }, - "uniqueClusterCount": { - "type": "integer", - "description": "Number of distinct clusters the records span." + "id": { + "type": "string", + "examples": [ + "clz1x9k4a0000qw3h8s7d2f1g" + ] }, - "totals": { - "$ref": "#/components/schemas/ClusterBillingAmounts" + "value": { + "type": "string", + "description": "Cost center name exactly as stored, so it matches billing breakdowns.", + "examples": [ + "team-ml" + ] } } }, - "ListBillingResponse": { + "ResourceCostCenter": { + "description": "Cost center this resource's spend is attributed to. Absent when the resource is not attributed to a cost center, or when the caller lacks permission to view cost centers. Managed through `/v2/cost-centers`.", + "allOf": [ + { + "$ref": "#/components/schemas/CostCenter" + } + ] + }, + "ListCostCentersResponse": { "type": "object", - "description": "Aggregated billing records across all Runpod resources.", "required": [ - "records", - "metadata" + "costCenters", + "pagination" ], "properties": { - "records": { + "costCenters": { "type": "array", "items": { - "$ref": "#/components/schemas/BillingRecord" + "$ref": "#/components/schemas/CostCenter" } }, - "metadata": { - "$ref": "#/components/schemas/BillingMetadata" + "pagination": { + "$ref": "#/components/schemas/Pagination" } } }, - "ListPodBillingResponse": { + "ListCostCenterResourcesResponse": { "type": "object", - "description": "Billing records for pods.", "required": [ - "records", - "metadata" + "resources", + "pagination" ], "properties": { - "records": { + "resources": { "type": "array", "items": { - "$ref": "#/components/schemas/PodBillingRecord" + "$ref": "#/components/schemas/CostCenterResource" } }, - "metadata": { - "$ref": "#/components/schemas/PodBillingMetadata" + "pagination": { + "$ref": "#/components/schemas/Pagination" } } }, - "ListServerlessBillingResponse": { + "ResourceType": { + "type": "string", + "description": "Kind of resource a cost center or tag can be attached to.", + "x-enum-varnames": [ + "ResourceTypePod", + "ResourceTypeCluster", + "ResourceTypeServerlessEndpoint", + "ResourceTypeNetworkVolume" + ], + "enum": [ + "POD", + "CLUSTER", + "SERVERLESS_ENDPOINT", + "NETWORK_VOLUME" + ] + }, + "CostCenterResource": { "type": "object", - "description": "Billing records for serverless.", + "additionalProperties": false, "required": [ - "records", - "metadata" + "id", + "type" ], "properties": { - "records": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ServerlessBillingRecord" - } + "id": { + "type": "string", + "minLength": 1, + "examples": [ + "p9k2m4n6q8" + ] }, - "metadata": { - "$ref": "#/components/schemas/ServerlessBillingMetadata" + "type": { + "$ref": "#/components/schemas/ResourceType" } } }, - "ListEndpointBillingResponse": { + "CreateCostCenterRequest": { "type": "object", - "description": "Time-bucketed Runpod public endpoint billing records plus metadata for the resolved query, record count, and total endpoint amount.\n", + "additionalProperties": false, "required": [ - "records", - "metadata" + "value" ], "properties": { - "records": { + "value": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^\\s*\\S", + "description": "Leading and trailing whitespace is trimmed.", + "examples": [ + "team-ml" + ] + }, + "resources": { "type": "array", + "description": "Resources to attribute to the new cost center.", + "maxItems": 100, "items": { - "$ref": "#/components/schemas/EndpointBillingRecord" + "$ref": "#/components/schemas/CostCenterResource" } - }, - "metadata": { - "$ref": "#/components/schemas/EndpointBillingMetadata" } } }, - "ListNetworkVolumeBillingResponse": { + "UpdateCostCenterRequest": { "type": "object", - "description": "Time-bucketed network volume billing records plus metadata for the resolved query, record count, distinct volume count, and storage totals.\n", + "additionalProperties": false, "required": [ - "records", - "metadata" + "value" ], "properties": { - "records": { + "value": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^\\s*\\S", + "description": "Leading and trailing whitespace is trimmed.", + "examples": [ + "team-ml-eu" + ] + } + } + }, + "TagReference": { + "type": "object", + "required": [ + "id", + "key", + "value" + ], + "properties": { + "id": { + "type": "string", + "description": "ID of the tag itself, shared by every resource it is attached to.", + "examples": [ + "clz1x9k4a0000qw3h8s7d2f1g" + ] + }, + "key": { + "type": "string", + "examples": [ + "env" + ] + }, + "value": { + "type": "string", + "description": "May be empty.", + "examples": [ + "dev" + ] + } + } + }, + "ResourceTags": { + "type": "array", + "description": "The tags on this resource that are visible to the caller. Keys and values are returned exactly as stored. Tags under the reserved `runpod:` prefix, such as the cost center, are never listed here. Absent when the resource's tags are unavailable to the caller; an empty array means none are visible.", + "items": { + "$ref": "#/components/schemas/TagReference" + } + }, + "ResourceFilters": { + "type": "object", + "additionalProperties": false, + "description": "An empty object, or an empty `tags` array, filters nothing.", + "properties": { + "tags": { "type": "array", + "maxItems": 25, + "description": "Conditions on the resource's tags. A resource must match every condition; repeating a key adds a condition rather than widening the first one. At most 25, the most tags one resource can carry.", "items": { - "$ref": "#/components/schemas/NetworkVolumeBillingRecord" + "$ref": "#/components/schemas/TagCondition" } - }, - "metadata": { - "$ref": "#/components/schemas/NetworkVolumeBillingMetadata" } } }, - "ListClusterBillingResponse": { + "TagCondition": { "type": "object", - "description": "Time-bucketed Cluster billing records plus metadata for the resolved query, record count, distinct cluster count, and compute totals.\n", + "additionalProperties": false, "required": [ - "records", - "metadata" + "key" ], "properties": { - "records": { + "key": { + "$ref": "#/components/schemas/TagKey" + }, + "values": { "type": "array", + "maxItems": 100, + "description": "Matches a tag under `key` with any one of these values, compared exactly. Omitted or empty, the condition only requires the key to be present. `\"\"` matches a tag whose value is empty. At most 100.", "items": { - "$ref": "#/components/schemas/ClusterBillingRecord" - } - }, - "metadata": { - "$ref": "#/components/schemas/ClusterBillingMetadata" + "type": "string", + "maxLength": 191 + }, + "examples": [ + [ + "dev", + "prod" + ] + ] } } }, - "ErrorResponse": { + "TagKey": { + "type": "string", + "minLength": 1, + "maxLength": 191, + "pattern": "[^\\t-\\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]", + "not": { + "pattern": "^[\\t-\\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*[Rr][Uu][Nn][Pp][Oo][Dd]:" + }, + "description": "Tag key, 1–191 characters as sent, with at least one that is not whitespace. Leading and trailing whitespace is ignored. Keys under the reserved `runpod:` prefix, in any letter case, are rejected.", + "examples": [ + "env" + ] + }, + "Tag": { "type": "object", "required": [ - "title", - "status", - "detail" + "id", + "key", + "value", + "createdAt", + "updatedAt" ], "properties": { - "title": { + "id": { "type": "string", - "description": "Short human-readable summary", + "description": "Shared by every resource the tag is attached to.", "examples": [ - "Not Found" + "clz1x9k4a0000qw3h8s7d2f1g" ] }, - "status": { - "type": "integer", - "description": "HTTP status code", + "key": { + "type": "string", + "description": "Returned exactly as stored.", "examples": [ - 404 + "env" ] }, - "detail": { + "value": { "type": "string", - "description": "Human-readable explanation", + "description": "Returned exactly as stored. May be empty.", "examples": [ - "pod not found" + "dev" ] }, - "errors": { - "type": "array", - "description": "Individual request-validation failures.", - "items": { - "type": "string" - }, + "createdAt": { + "type": "string", + "format": "date-time", "examples": [ - [ - "$: additional properties 'bogus' not allowed" - ] + "2026-11-04T09:00:00Z" + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2026-11-04T09:00:00Z" ] } } }, - "RateLimitHeader": { - "type": "string", - "description": "Live per-window quota state. Optional — omitted for rate-limit-exempt\ncallers.\n\nA structured-field list with one member per window (`minute`, `hour`,\n`day`), each carrying the remaining request count `r` and seconds until\nthe window resets `t` (at least 1). Windows are fixed and aligned to the\nclock, not sliding. Returned on responses to authenticated requests,\nnot only on 429s.\n", - "examples": [ - "\"minute\";r=0;t=12, \"hour\";r=2800;t=1812, \"day\";r=49500;t=45012" - ] + "ListTagsResponse": { + "type": "object", + "required": [ + "tags", + "pagination" + ], + "properties": { + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tag" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } }, - "RateLimitPolicyHeader": { + "ListTagResourcesResponse": { + "type": "object", + "required": [ + "resources", + "pagination" + ], + "properties": { + "resources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CostCenterResource" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + }, + "CreateTagRequest": { + "type": "object", + "additionalProperties": false, + "required": [ + "key", + "value" + ], + "properties": { + "key": { + "$ref": "#/components/schemas/TagKey" + }, + "value": { + "$ref": "#/components/schemas/TagValue" + }, + "resources": { + "type": "array", + "description": "Existing resources to attach the new tag to.", + "maxItems": 100, + "items": { + "$ref": "#/components/schemas/CostCenterResource" + } + } + } + }, + "UpdateTagRequest": { + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "description": "The fields to change; omitted fields are unchanged. Resources the tag is attached to stay attached.", + "properties": { + "key": { + "$ref": "#/components/schemas/TagKey" + }, + "value": { + "$ref": "#/components/schemas/TagValue" + } + } + }, + "TagValue": { "type": "string", - "description": "Static per-window quota policy. Optional — omitted for rate-limit-exempt\ncallers.\n\nA structured-field list with one member per window (`minute`, `hour`,\n`day`), each carrying the quota `q` and the window length in seconds `w`.\nReturned on responses to authenticated requests, not only on 429s.\n\nLimits are per user, and every `/v2` route counts toward the same\nlimits; creating pods has no separate limit. Read the current quotas from\nthis header instead of hard-coding them, because they can change and some\naccounts have higher limits. A 429 only slows you down: wait for the\n`Retry-After` time and retry. Your account isn't suspended.\n", + "maxLength": 191, + "description": "Tag value, at most 191 characters. May be empty. Stored exactly as sent, whitespace included.", "examples": [ - "\"minute\";q=180;w=60, \"hour\";q=3600;w=3600, \"day\";q=43200;w=86400" + "dev" ] - } - } - }, - "paths": { - "/v2/organization": { - "get": { - "operationId": "getOrganization", - "x-runpod-scope": "membership:read", - "summary": "Get your current organization", - "x-mint": { - "metadata": { - "description": "Retrieve your current Runpod organization." + }, + "AuditLog": { + "type": "object", + "description": "One recorded action on the account.", + "required": [ + "actorId", + "email", + "resourceType", + "resourceId", + "action", + "value", + "timestamp" + ], + "properties": { + "actorId": { + "type": [ + "string", + "null" + ], + "description": "ID of the user who performed the action. Null when the action was not attributable to a user.", + "examples": [ + "user_id_abc_123" + ] + }, + "email": { + "type": [ + "string", + "null" + ], + "description": "Email of the actor when the action was recorded. Null when unknown.", + "examples": [ + "actor@example.com" + ] + }, + "resourceType": { + "type": "string", + "description": "Kind of resource the action applied to, as recorded at write time. Not an enum: values are free-form, mostly lower camel case, and new kinds appear without an API version change. Current writers record values such as `pod`, `apiKey`, `sharedApiKey`, `secret`, `costCenter`, `paymentMethod`, `billingAccount`, `registryCredential`, `organization` and `group`, and `unknown` when the writer recorded no kind.", + "examples": [ + "pod", + "apiKey", + "costCenter" + ] + }, + "resourceId": { + "type": "string", + "description": "ID of the affected resource. Empty when the action was not about one resource; a bulk action lists every affected ID, comma-separated.", + "examples": [ + "abc123" + ] + }, + "action": { + "type": "string", + "description": "Name of the action, as recorded at write time. Not an enum: values are free-form, mostly lower case verbs, and new actions appear without an API version change. Current writers record values such as `create`, `update`, `delete`, `rename`, `lock`, `unlock`, `start`, `reset`, `add` and `setBillingMode`.", + "examples": [ + "create", + "delete", + "rename" + ] + }, + "value": { + "type": [ + "string", + "null" + ], + "description": "Details of the change as a JSON-encoded string. The structure varies by action; parse it as JSON for a structured view. A bulk action split across several entries adds an `auditChunk` object with `index` and `of`. Null when the action recorded no details.", + "examples": [ + "{\"status\":\"TERMINATED\"}", + "{\"name\":\"training-run-7\"}", + "{\"id\":\"sec_789\",\"name\":\"HF_TOKEN\",\"sharedWithOrganization\":true}" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time", + "description": "When the action happened (UTC, whole seconds).", + "examples": [ + "2026-09-02T00:00:00Z" + ] + } + } + }, + "ListAuditLogsResponse": { + "type": "object", + "required": [ + "auditLogs", + "pagination" + ], + "properties": { + "auditLogs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuditLog" + } + }, + "pagination": { + "$ref": "#/components/schemas/Pagination" + } + } + }, + "BillingTimeRange": { + "type": "object", + "description": "Half-open time range [startTime, endTime) in RFC 3339. On a record it is the time bucket; on a query echo it is the resolved window.\n", + "required": [ + "startTime", + "endTime" + ], + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "Start of the range, inclusive (RFC 3339).", + "examples": [ + "2026-06-01T00:00:00Z" + ] + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "End of the range, exclusive (RFC 3339).", + "examples": [ + "2026-06-02T00:00:00Z" + ] + } + } + }, + "BillingBucketSize": { + "type": "string", + "enum": [ + "hour", + "day", + "week", + "month", + "year" + ], + "x-enum-varnames": [ + "BillingBucketSizeHour", + "BillingBucketSizeDay", + "BillingBucketSizeWeek", + "BillingBucketSizeMonth", + "BillingBucketSizeYear" + ], + "default": "day", + "description": "Length of each billing time bucket.", + "examples": [ + "day" + ] + }, + "BillingMode": { + "type": "string", + "enum": [ + "PREPAID", + "POSTPAID" + ], + "description": "PREPAID accounts spend from the balance. POSTPAID accounts are invoiced, so a low balance doesn't stop them.", + "examples": [ + "PREPAID" + ] + }, + "Balance": { + "type": "object", + "required": [ + "balanceAmount", + "billingMode" + ], + "properties": { + "balanceAmount": { + "type": "number", + "format": "double", + "description": "Account balance in USD. On a prepaid account, new Pods and workers are refused when it runs out.", + "examples": [ + 42.18 + ] + }, + "billingMode": { + "$ref": "#/components/schemas/BillingMode" + } + } + }, + "BillingAmounts": { + "type": "object", + "description": "Total spend across all billable Runpod resources with each cost component broken out, fully prefixed by resource. Backs the aggregate record's amounts and the metadata totals. Serverless amounts are inclusive of platform charges.\n", + "required": [ + "totalAmount", + "podGpuAmount", + "podCpuAmount", + "podDiskAmount", + "serverlessGpuAmount", + "serverlessCpuAmount", + "serverlessDiskAmount", + "serverlessFeeAmount", + "storageStandardAmount", + "storageHighPerformanceAmount", + "endpointAmount", + "clusterGpuAmount", + "clusterDiskAmount", + "clusterNetworkingAmount" + ], + "properties": { + "totalAmount": { + "type": "number", + "format": "double", + "description": "Total cost in USD for the bucket across all resources.", + "examples": [ + 42.34 + ] + }, + "podGpuAmount": { + "type": "number", + "format": "double", + "description": "GPU pod compute cost in USD for the bucket." + }, + "podCpuAmount": { + "type": "number", + "format": "double", + "description": "CPU pod compute cost in USD for the bucket." + }, + "podDiskAmount": { + "type": "number", + "format": "double", + "description": "Pod disk cost in USD for the bucket." + }, + "serverlessGpuAmount": { + "type": "number", + "format": "double", + "description": "Serverless GPU compute cost in USD for the bucket." + }, + "serverlessCpuAmount": { + "type": "number", + "format": "double", + "description": "Serverless CPU compute cost in USD for the bucket." + }, + "serverlessDiskAmount": { + "type": "number", + "format": "double", + "description": "Serverless disk cost in USD for the bucket." + }, + "serverlessFeeAmount": { + "type": "number", + "format": "double", + "deprecated": true, + "description": "Unused and always 0. Platform charges are included in the serverless compute amounts.\n" + }, + "storageStandardAmount": { + "type": "number", + "format": "double", + "description": "Standard network volume storage cost in USD for the bucket." + }, + "storageHighPerformanceAmount": { + "type": "number", + "format": "double", + "description": "High-performance network volume storage cost in USD for the bucket." + }, + "endpointAmount": { + "type": "number", + "format": "double", + "description": "Runpod public endpoint cost in USD for the bucket." + }, + "clusterGpuAmount": { + "type": "number", + "format": "double", + "description": "Cluster GPU compute cost in USD for the bucket." + }, + "clusterDiskAmount": { + "type": "number", + "format": "double", + "description": "Cluster disk cost in USD for the bucket." + }, + "clusterNetworkingAmount": { + "type": "number", + "format": "double", + "description": "Cluster inter-node networking cost in USD for the bucket." + } + } + }, + "BillingRecord": { + "description": "A single time-bucketed record of total spend across all billable Runpod resources, with each cost component broken out. Returned by GET /v2/billing.\n", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "$ref": "#/components/schemas/BillingAmounts" + } + ] + }, + "PodBillingAmounts": { + "type": "object", + "description": "Pod cost components covering both GPU and CPU pods. Backs a record's amounts and the metadata totals.\n", + "required": [ + "totalAmount", + "gpuAmount", + "cpuAmount", + "diskAmount" + ], + "properties": { + "totalAmount": { + "type": "number", + "format": "double", + "description": "Total pod cost in USD for the bucket.", + "examples": [ + 12.34 + ] + }, + "gpuAmount": { + "type": "number", + "format": "double", + "description": "GPU pod compute cost in USD for the bucket." + }, + "cpuAmount": { + "type": "number", + "format": "double", + "description": "CPU pod compute cost in USD for the bucket." + }, + "diskAmount": { + "type": "number", + "format": "double", + "description": "Pod disk cost in USD for the bucket." + } + } + }, + "PodBillingRecord": { + "description": "A single time-bucketed pod billing record, covering both GPU and CPU pods. Returned by GET /v2/billing/pods.\n", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "$ref": "#/components/schemas/PodBillingAmounts" + }, + { + "type": "object", + "required": [ + "podId" + ], + "properties": { + "podId": { + "type": "string", + "description": "The pod this record bills. When the podId filter is set every record carries that id; otherwise one record is emitted per pod per bucket.\n", + "examples": [ + "pod_abc123" + ] + } + } + } + ] + }, + "ServerlessBillingAmounts": { + "type": "object", + "description": "Serverless cost components, inclusive of platform charges. Backs a record's amounts and the metadata totals.\n", + "required": [ + "totalAmount", + "gpuAmount", + "cpuAmount", + "diskAmount", + "feeAmount" + ], + "properties": { + "totalAmount": { + "type": "number", + "format": "double", + "description": "Total serverless cost in USD for the bucket.", + "examples": [ + 8.9 + ] + }, + "gpuAmount": { + "type": "number", + "format": "double", + "description": "Serverless GPU compute cost in USD for the bucket." + }, + "cpuAmount": { + "type": "number", + "format": "double", + "description": "Serverless CPU compute cost in USD for the bucket." + }, + "diskAmount": { + "type": "number", + "format": "double", + "description": "Serverless disk cost in USD for the bucket." + }, + "feeAmount": { + "type": "number", + "format": "double", + "deprecated": true, + "description": "Unused and always 0. Platform charges are included in the GPU and CPU amounts.\n" + } + } + }, + "ServerlessBillingRecord": { + "description": "A single time-bucketed serverless billing record. Returned by GET /v2/billing/serverless.\n", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "$ref": "#/components/schemas/ServerlessBillingAmounts" + }, + { + "type": "object", + "required": [ + "serverlessId" + ], + "properties": { + "serverlessId": { + "type": "string", + "description": "The serverless endpoint this record bills. When the serverlessId filter is set every record carries that id; otherwise one record is emitted per serverless endpoint per bucket.\n", + "examples": [ + "ep_abc123" + ] + } + } + } + ] + }, + "EndpointBillingAmounts": { + "type": "object", + "description": "Runpod public endpoint cost. Backs a record's amounts and the metadata totals.\n", + "required": [ + "totalAmount" + ], + "properties": { + "totalAmount": { + "type": "number", + "format": "double", + "description": "Total public endpoint cost in USD for the bucket.", + "examples": [ + 3.21 + ] + } + } + }, + "EndpointBillingRecord": { + "description": "A single time-bucketed Runpod public endpoint billing record. Returned by GET /v2/billing/endpoints.\n", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "$ref": "#/components/schemas/EndpointBillingAmounts" + } + ] + }, + "NetworkVolumeBillingAmounts": { + "type": "object", + "description": "Network volume storage cost, split into standard and high-performance. Backs a record's amounts and the metadata totals.\n", + "required": [ + "totalAmount", + "standardAmount", + "highPerformanceAmount" + ], + "properties": { + "totalAmount": { + "type": "number", + "format": "double", + "description": "Total network volume cost in USD for the bucket, across standard and high-performance storage.\n", + "examples": [ + 5.79 + ] + }, + "standardAmount": { + "type": "number", + "format": "double", + "description": "Standard storage cost in USD for the bucket." + }, + "highPerformanceAmount": { + "type": "number", + "format": "double", + "description": "High-performance storage cost in USD for the bucket." + } + } + }, + "NetworkVolumeBillingRecord": { + "description": "A single time-bucketed network volume billing record, split into standard and high-performance storage. Returned by GET /v2/billing/network-volumes.\n", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "$ref": "#/components/schemas/NetworkVolumeBillingAmounts" + }, + { + "type": "object", + "required": [ + "networkVolumeId" + ], + "properties": { + "networkVolumeId": { + "type": "string", + "description": "The network volume this record bills. When the networkVolumeId filter is set every record carries that id; otherwise one record is emitted per network volume per bucket.\n", + "examples": [ + "vol_abc123" + ] + } + } + } + ] + }, + "ClusterBillingAmounts": { + "type": "object", + "description": "Cluster cost components (GPU-only, no CPU). Backs a record's amounts and the metadata totals.\n", + "required": [ + "totalAmount", + "gpuAmount", + "diskAmount", + "networkingAmount" + ], + "properties": { + "totalAmount": { + "type": "number", + "format": "double", + "description": "Total Instant Cluster cost in USD for the bucket.", + "examples": [ + 99.0 + ] + }, + "gpuAmount": { + "type": "number", + "format": "double", + "description": "Cluster GPU compute cost in USD for the bucket." + }, + "diskAmount": { + "type": "number", + "format": "double", + "description": "Cluster disk cost in USD for the bucket." + }, + "networkingAmount": { + "type": "number", + "format": "double", + "description": "Cluster inter-node networking cost in USD for the bucket." + } + } + }, + "ClusterBillingRecord": { + "description": "A single time-bucketed cluster billing record; clusters are GPU-only (no CPU component). Returned by GET /v2/billing/clusters.\n", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "$ref": "#/components/schemas/ClusterBillingAmounts" + }, + { + "type": "object", + "required": [ + "clusterId" + ], + "properties": { + "clusterId": { + "type": "string", + "description": "The cluster this record bills. When the clusterId filter is set every record carries that id; otherwise one record is emitted per cluster per bucket.\n", + "examples": [ + "cluster_abc123" + ] + } + } + } + ] + }, + "BillingQuery": { + "description": "Resolved query window and granularity (routes without a filter).", + "allOf": [ + { + "$ref": "#/components/schemas/BillingTimeRange" + }, + { + "type": "object", + "required": [ + "bucketSize" + ], + "properties": { + "bucketSize": { + "$ref": "#/components/schemas/BillingBucketSize" + } + } + } + ] + }, + "PodBillingQuery": { + "allOf": [ + { + "$ref": "#/components/schemas/BillingQuery" + }, + { + "type": "object", + "properties": { + "podId": { + "type": [ + "string", + "null" + ], + "description": "The podId filter applied, if any." + } + } + } + ] + }, + "ServerlessBillingQuery": { + "allOf": [ + { + "$ref": "#/components/schemas/BillingQuery" + }, + { + "type": "object", + "properties": { + "serverlessId": { + "type": [ + "string", + "null" + ], + "description": "The serverlessId filter applied, if any." + } + } + } + ] + }, + "NetworkVolumeBillingQuery": { + "allOf": [ + { + "$ref": "#/components/schemas/BillingQuery" + }, + { + "type": "object", + "properties": { + "networkVolumeId": { + "type": [ + "string", + "null" + ], + "description": "The networkVolumeId filter applied, if any." + } + } + } + ] + }, + "ClusterBillingQuery": { + "allOf": [ + { + "$ref": "#/components/schemas/BillingQuery" + }, + { + "type": "object", + "properties": { + "clusterId": { + "type": [ + "string", + "null" + ], + "description": "The clusterId filter applied, if any." + } + } + } + ] + }, + "BillingMetadata": { + "type": "object", + "required": [ + "query", + "recordCount", + "totals" + ], + "properties": { + "query": { + "$ref": "#/components/schemas/BillingQuery" + }, + "recordCount": { + "type": "integer", + "description": "Number of records returned." + }, + "totals": { + "$ref": "#/components/schemas/BillingAmounts" + } + } + }, + "PodBillingMetadata": { + "type": "object", + "required": [ + "query", + "recordCount", + "uniquePodCount", + "totals" + ], + "properties": { + "query": { + "$ref": "#/components/schemas/PodBillingQuery" + }, + "recordCount": { + "type": "integer", + "description": "Number of records returned (buckets times distinct pods)." + }, + "uniquePodCount": { + "type": "integer", + "description": "Number of distinct pods the records span." + }, + "totals": { + "$ref": "#/components/schemas/PodBillingAmounts" + } + } + }, + "ServerlessBillingMetadata": { + "type": "object", + "required": [ + "query", + "recordCount", + "uniqueServerlessCount", + "totals" + ], + "properties": { + "query": { + "$ref": "#/components/schemas/ServerlessBillingQuery" + }, + "recordCount": { + "type": "integer", + "description": "Number of records returned (buckets times distinct endpoints)." + }, + "uniqueServerlessCount": { + "type": "integer", + "description": "Number of distinct serverless endpoints the records span." + }, + "totals": { + "$ref": "#/components/schemas/ServerlessBillingAmounts" + } + } + }, + "EndpointBillingMetadata": { + "type": "object", + "required": [ + "query", + "recordCount", + "totals" + ], + "properties": { + "query": { + "$ref": "#/components/schemas/BillingQuery" + }, + "recordCount": { + "type": "integer" + }, + "totals": { + "$ref": "#/components/schemas/EndpointBillingAmounts" + } + } + }, + "NetworkVolumeBillingMetadata": { + "type": "object", + "required": [ + "query", + "recordCount", + "uniqueNetworkVolumeCount", + "totals" + ], + "properties": { + "query": { + "$ref": "#/components/schemas/NetworkVolumeBillingQuery" + }, + "recordCount": { + "type": "integer", + "description": "Number of records returned (buckets times distinct volumes)." + }, + "uniqueNetworkVolumeCount": { + "type": "integer", + "description": "Number of distinct network volumes the records span." + }, + "totals": { + "$ref": "#/components/schemas/NetworkVolumeBillingAmounts" + } + } + }, + "ClusterBillingMetadata": { + "type": "object", + "required": [ + "query", + "recordCount", + "uniqueClusterCount", + "totals" + ], + "properties": { + "query": { + "$ref": "#/components/schemas/ClusterBillingQuery" + }, + "recordCount": { + "type": "integer", + "description": "Number of records returned (buckets times distinct clusters)." + }, + "uniqueClusterCount": { + "type": "integer", + "description": "Number of distinct clusters the records span." + }, + "totals": { + "$ref": "#/components/schemas/ClusterBillingAmounts" + } + } + }, + "ListBillingResponse": { + "type": "object", + "description": "Aggregated billing records across all Runpod resources.", + "required": [ + "records", + "metadata" + ], + "properties": { + "records": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BillingRecord" + } + }, + "metadata": { + "$ref": "#/components/schemas/BillingMetadata" + } + } + }, + "ListPodBillingResponse": { + "type": "object", + "description": "Billing records for pods.", + "required": [ + "records", + "metadata" + ], + "properties": { + "records": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PodBillingRecord" + } + }, + "metadata": { + "$ref": "#/components/schemas/PodBillingMetadata" + } + } + }, + "ListServerlessBillingResponse": { + "type": "object", + "description": "Billing records for serverless.", + "required": [ + "records", + "metadata" + ], + "properties": { + "records": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ServerlessBillingRecord" + } + }, + "metadata": { + "$ref": "#/components/schemas/ServerlessBillingMetadata" + } + } + }, + "ListEndpointBillingResponse": { + "type": "object", + "description": "Time-bucketed Runpod public endpoint billing records plus metadata for the resolved query, record count, and total endpoint amount.\n", + "required": [ + "records", + "metadata" + ], + "properties": { + "records": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EndpointBillingRecord" + } + }, + "metadata": { + "$ref": "#/components/schemas/EndpointBillingMetadata" + } + } + }, + "ListNetworkVolumeBillingResponse": { + "type": "object", + "description": "Time-bucketed network volume billing records plus metadata for the resolved query, record count, distinct volume count, and storage totals.\n", + "required": [ + "records", + "metadata" + ], + "properties": { + "records": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NetworkVolumeBillingRecord" + } + }, + "metadata": { + "$ref": "#/components/schemas/NetworkVolumeBillingMetadata" + } + } + }, + "ListClusterBillingResponse": { + "type": "object", + "description": "Time-bucketed Cluster billing records plus metadata for the resolved query, record count, distinct cluster count, and compute totals.\n", + "required": [ + "records", + "metadata" + ], + "properties": { + "records": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClusterBillingRecord" + } + }, + "metadata": { + "$ref": "#/components/schemas/ClusterBillingMetadata" + } + } + }, + "ErrorResponse": { + "type": "object", + "required": [ + "title", + "status", + "detail" + ], + "properties": { + "title": { + "type": "string", + "description": "Short human-readable summary", + "examples": [ + "Not Found" + ] + }, + "status": { + "type": "integer", + "description": "HTTP status code", + "examples": [ + 404 + ] + }, + "detail": { + "type": "string", + "description": "Human-readable explanation", + "examples": [ + "pod not found" + ] + }, + "errors": { + "type": "array", + "description": "Individual request-validation failures.", + "items": { + "type": "string" + }, + "examples": [ + [ + "$: additional properties 'bogus' not allowed" + ] + ] + } + } + }, + "RateLimitHeader": { + "type": "string", + "description": "Live per-window quota state. Optional — omitted for rate-limit-exempt\ncallers.\n\nA structured-field list with one member per window (`minute`, `hour`,\n`day`), each carrying the remaining request count `r` and seconds until\nthe window resets `t` (at least 1). Windows are fixed and aligned to the\nclock, not sliding. Returned on responses to authenticated requests,\nnot only on 429s.\n", + "examples": [ + "\"minute\";r=0;t=12, \"hour\";r=2800;t=1812, \"day\";r=49500;t=45012" + ] + }, + "RateLimitPolicyHeader": { + "type": "string", + "description": "Static per-window quota policy. Optional — omitted for rate-limit-exempt\ncallers.\n\nA structured-field list with one member per window (`minute`, `hour`,\n`day`), each carrying the quota `q` and the window length in seconds `w`.\nReturned on responses to authenticated requests, not only on 429s.\n\nLimits are per user, and every `/v2` route counts toward the same\nlimits; creating pods has no separate limit. Read the current quotas from\nthis header instead of hard-coding them, because they can change and some\naccounts have higher limits. A 429 only slows you down: wait for the\n`Retry-After` time and retry. Your account isn't suspended.\n", + "examples": [ + "\"minute\";q=180;w=60, \"hour\";q=3600;w=3600, \"day\";q=43200;w=86400" + ] + } + } + }, + "paths": { + "/v2/organization": { + "get": { + "operationId": "getOrganization", + "x-runpod-scope": "membership:read", + "summary": "Get your current organization", + "x-mint": { + "metadata": { + "description": "Retrieve your current Runpod organization." + } + }, + "description": "Returns the authenticated caller's current organization. Organization context comes from the caller's membership; no selector is required. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", + "tags": [ + "Organization" + ], + "responses": { + "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Organization" + }, + "examples": { + "organization": { + "summary": "Current organization", + "value": { + "id": "org_id_abc_123", + "name": "my-org", + "role": { + "id": "builtin:dev", + "type": "builtin", + "name": "Developer" + }, + "groups": [ + { + "id": "group_id_abc_123", + "name": "Engineering" + } + ] + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/organization/groups": { + "get": { + "operationId": "listOrganizationGroups", + "x-runpod-scope": "membership:read", + "summary": "List groups in your current organization", + "x-mint": { + "metadata": { + "description": "List groups in your current organization with cursor pagination." + } + }, + "description": "Returns groups without their members or roles, ordered by creation time descending and then ID descending for deterministic pagination.", + "tags": [ + "Organization" + ], + "parameters": [ + { + "name": "name", + "in": "query", + "required": false, + "description": "Optional case-insensitive substring of the group name. An empty value applies no filter.", + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimitOrganizationGroups" + } + ], + "responses": { + "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListOrganizationGroupsResponse" + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "operationId": "createOrganizationGroup", + "x-runpod-scope": "membership:write", + "summary": "Create a group in your current organization", + "x-mint": { + "metadata": { + "description": "Create a named group in your current organization. Add members separately." + } + }, + "tags": [ + "Organization" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationGroupRequest" + }, + "examples": { + "group": { + "value": { + "name": "Engineering" + } + } + } + } + } + }, + "responses": { + "201": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationGroup" + }, + "examples": { + "group": { + "value": { + "id": "group_123", + "name": "Engineering", + "memberCount": 0, + "createdAt": "2026-10-13T12:00:00Z", + "updatedAt": "2026-10-13T12:00:00Z" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "409": { + "description": "A group with this name already exists in the current organization.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/organization/groups/{id}/members/{userId}": { + "put": { + "operationId": "addOrganizationGroupMember", + "x-runpod-scope": "membership:write", + "summary": "Add a member to a group", + "x-mint": { + "metadata": { + "description": "Add an existing organization member to a group." + } + }, + "description": "Adds the organization member to the group. The group and user must belong to the current organization. Adding an existing member is idempotent and returns the same no-content response.", + "tags": [ + "Organization" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Group ID.", + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "userId", + "in": "path", + "required": true, + "description": "Organization member user ID.", + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "204": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Member added, or already belongs to the group." + }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "operationId": "removeOrganizationGroupMember", + "x-runpod-scope": "membership:write", + "summary": "Remove a member from a group", + "x-mint": { + "metadata": { + "description": "Remove an organization member from a group." + } + }, + "description": "Removes the organization member from the group. The group and user must belong to the current organization. Returns 404 when the membership is absent, including repeated deletion, or when the group is unknown or belongs to another organization.", + "tags": [ + "Organization" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Group ID.", + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "userId", + "in": "path", + "required": true, + "description": "Organization member user ID.", + "schema": { + "type": "string", + "minLength": 1 + } } - }, - "description": "Returns the authenticated caller's current organization. Organization context comes from the caller's membership; no selector is required. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", - "tags": [ - "Organization" ], "responses": { - "200": { + "204": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -8159,34 +9911,10 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Organization" - }, - "examples": { - "organization": { - "summary": "Current organization", - "value": { - "id": "org_id_abc_123", - "name": "my-org", - "role": { - "id": "builtin:dev", - "type": "builtin", - "name": "Developer" - }, - "groups": [ - { - "id": "group_id_abc_123", - "name": "Engineering" - } - ] - } - } - } - } - } + "description": "Member removed." + }, + "400": { + "$ref": "#/components/responses/BadRequestError" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -8197,6 +9925,9 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -8221,28 +9952,29 @@ } } }, - "/v2/organization/groups": { + "/v2/organization/groups/{id}/members": { "get": { - "operationId": "listOrganizationGroups", + "operationId": "listOrganizationGroupMembers", "x-runpod-scope": "membership:read", - "summary": "List groups in your current organization", + "summary": "List members of a group", "x-mint": { "metadata": { - "description": "List groups in your current organization with cursor pagination." + "description": "List members of a group with cursor pagination." } }, - "description": "Returns groups without their members or roles, ordered by creation time descending and then ID descending for deterministic pagination.", + "description": "Members are ordered newest first by membership creation time, with a unique upstream tie-breaker. Returns 404 when the group does not exist in the current organization, or when the caller does not belong to an organization.", "tags": [ "Organization" ], "parameters": [ { - "name": "name", - "in": "query", - "required": false, - "description": "Optional case-insensitive substring of the group name. An empty value applies no filter.", + "name": "id", + "in": "path", + "required": true, + "description": "Group ID.", "schema": { - "type": "string" + "type": "string", + "minLength": 1 } }, { @@ -8266,7 +9998,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOrganizationGroupsResponse" + "$ref": "#/components/schemas/ListOrganizationGroupMembersResponse" } } } @@ -8308,38 +10040,36 @@ } } } - }, - "post": { - "operationId": "createOrganizationGroup", - "x-runpod-scope": "membership:write", - "summary": "Create a group in your current organization", + } + }, + "/v2/organization/groups/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Group ID.", + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "get": { + "operationId": "getOrganizationGroup", + "x-runpod-scope": "membership:read", + "summary": "Get a group in your current organization", "x-mint": { "metadata": { - "description": "Create a named group in your current organization. Add members separately." + "description": "Get one group by ID from your current organization." } }, + "description": "Returns the group without its members. Returns 404 when the ID is unknown or belongs to another organization, or when the caller does not belong to an organization.", "tags": [ "Organization" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateOrganizationGroupRequest" - }, - "examples": { - "group": { - "value": { - "name": "Engineering" - } - } - } - } - } - }, "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -8348,7 +10078,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Created", + "description": "OK", "content": { "application/json": { "schema": { @@ -8359,39 +10089,23 @@ "value": { "id": "group_123", "name": "Engineering", - "memberCount": 0, + "memberCount": 3, "createdAt": "2026-10-13T12:00:00Z", - "updatedAt": "2026-10-13T12:00:00Z" + "updatedAt": "2026-10-15T12:00:00Z" } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "409": { - "description": "A group with this name already exists in the current organization.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "404": { + "$ref": "#/components/responses/NotFoundError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -8415,46 +10129,38 @@ } } } - } - }, - "/v2/organization/groups/{id}/members/{userId}": { - "put": { - "operationId": "addOrganizationGroupMember", + }, + "patch": { + "operationId": "updateOrganizationGroup", "x-runpod-scope": "membership:write", - "summary": "Add a member to a group", + "summary": "Rename a group in your current organization", "x-mint": { "metadata": { - "description": "Add an existing organization member to a group." + "description": "Rename a group in your current organization without changing its members." } }, - "description": "Adds the organization member to the group. The group and user must belong to the current organization. Adding an existing member is idempotent and returns the same no-content response.", "tags": [ "Organization" ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "description": "Group ID.", - "schema": { - "type": "string", - "minLength": 1 - } - }, - { - "name": "userId", - "in": "path", - "required": true, - "description": "Organization member user ID.", - "schema": { - "type": "string", - "minLength": 1 + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationGroupRequest" + }, + "examples": { + "group": { + "value": { + "name": "Research" + } + } + } } } - ], + }, "responses": { - "204": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -8463,7 +10169,25 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Member added, or already belongs to the group." + "description": "Updated", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationGroup" + }, + "examples": { + "group": { + "value": { + "id": "group_123", + "name": "Research", + "memberCount": 3, + "createdAt": "2026-10-13T12:00:00Z", + "updatedAt": "2026-10-15T12:00:00Z" + } + } + } + } + } }, "400": { "$ref": "#/components/responses/BadRequestError" @@ -8477,6 +10201,16 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, + "409": { + "description": "A group with this name already exists in the current organization.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -8507,42 +10241,21 @@ } }, "delete": { - "operationId": "removeOrganizationGroupMember", - "x-runpod-scope": "membership:write", - "summary": "Remove a member from a group", - "x-mint": { - "metadata": { - "description": "Remove an organization member from a group." - } - }, - "description": "Removes the organization member from the group. The group and user must belong to the current organization. Returns 404 when the membership is absent, including repeated deletion, or when the group is unknown or belongs to another organization.", - "tags": [ - "Organization" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "description": "Group ID.", - "schema": { - "type": "string", - "minLength": 1 - } - }, - { - "name": "userId", - "in": "path", - "required": true, - "description": "Organization member user ID.", - "schema": { - "type": "string", - "minLength": 1 - } + "operationId": "deleteOrganizationGroup", + "x-runpod-scope": "membership:write", + "summary": "Delete a group in your current organization", + "x-mint": { + "metadata": { + "description": "Delete a group and its group memberships without removing anyone from the organization." } + }, + "description": "Permanently deletes the group and its group memberships. Organization members are not removed. Returns 404 when the group does not exist in your current organization, including when it has already been deleted.", + "tags": [ + "Organization" ], "responses": { "204": { + "description": "Deleted", "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -8550,8 +10263,7 @@ "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" } - }, - "description": "Member removed." + } }, "400": { "$ref": "#/components/responses/BadRequestError" @@ -8592,37 +10304,19 @@ } } }, - "/v2/organization/groups/{id}/members": { + "/v2/account": { "get": { - "operationId": "listOrganizationGroupMembers", - "x-runpod-scope": "membership:read", - "summary": "List members of a group", + "operationId": "getAccount", + "x-runpod-scope": "account:read", + "summary": "Get your account", "x-mint": { "metadata": { - "description": "List members of a group with cursor pagination." + "description": "Retrieve the ID and email of the Runpod account your API key belongs to." } }, - "description": "Members are ordered newest first by membership creation time, with a unique upstream tie-breaker. Returns 404 when the group does not exist in the current organization, or when the caller does not belong to an organization.", + "description": "Returns the account the API key belongs to.", "tags": [ - "Organization" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "description": "Group ID.", - "schema": { - "type": "string", - "minLength": 1 - } - }, - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimitOrganizationGroups" - } + "Account" ], "responses": { "200": { @@ -8638,7 +10332,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOrganizationGroupMembersResponse" + "$ref": "#/components/schemas/Account" + }, + "examples": { + "account": { + "summary": "Successful response", + "value": { + "id": "user_2abc123", + "email": "dev@example.com" + } + } } } } @@ -8649,15 +10352,6 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "413": { - "$ref": "#/components/responses/ResponseTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -8682,31 +10376,19 @@ } } }, - "/v2/organization/groups/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "description": "Group ID.", - "schema": { - "type": "string", - "minLength": 1 - } - } - ], + "/v2/account/limits": { "get": { - "operationId": "getOrganizationGroup", - "x-runpod-scope": "membership:read", - "summary": "Get a group in your current organization", + "operationId": "getAccountLimits", + "x-runpod-scope": "account:read", + "summary": "Get account limits", "x-mint": { "metadata": { - "description": "Get one group by ID from your current organization." + "description": "Read the spend rate limit, current spend rate, and resource limits that apply to your Runpod account before you deploy." } }, - "description": "Returns the group without its members. Returns 404 when the ID is unknown or belongs to another organization, or when the caller does not belong to an organization.", + "description": "Returns the limits that apply to the account this request acts for. A create or resume that would go past a limit is refused. Not available for organizations (403).", "tags": [ - "Organization" + "Account" ], "responses": { "200": { @@ -8722,16 +10404,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationGroup" + "$ref": "#/components/schemas/AccountLimits" }, "examples": { - "group": { + "free": { + "summary": "Account on the free plan", "value": { - "id": "group_123", - "name": "Engineering", - "memberCount": 3, - "createdAt": "2026-10-13T12:00:00Z", - "updatedAt": "2026-10-15T12:00:00Z" + "spendRate": { + "limit": 80, + "current": 12.4 + }, + "serverlessWorkers": { + "limit": 10 + } } } } @@ -8744,9 +10429,6 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -8769,36 +10451,22 @@ } } } - }, - "patch": { - "operationId": "updateOrganizationGroup", - "x-runpod-scope": "membership:write", - "summary": "Rename a group in your current organization", + } + }, + "/v2/account/ssh-keys": { + "get": { + "operationId": "getSshKeys", + "x-runpod-scope": "authentication:read", + "summary": "List registered SSH public keys", "x-mint": { "metadata": { - "description": "Rename a group in your current organization without changing its members." + "description": "List the SSH public keys registered to your Runpod account and used to authenticate secure connections to newly created Pods." } }, + "description": "Returns the account's registered SSH public keys — the keys provisioned into pods created with `startSsh` and used to authenticate the SSH connections reported in a pod's `ssh` block.", "tags": [ - "Organization" + "Account" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateOrganizationGroupRequest" - }, - "examples": { - "group": { - "value": { - "name": "Research" - } - } - } - } - } - }, "responses": { "200": { "headers": { @@ -8809,54 +10477,31 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Updated", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationGroup" + "$ref": "#/components/schemas/SshKeys" }, "examples": { - "group": { + "keys": { + "summary": "Successful response", "value": { - "id": "group_123", - "name": "Research", - "memberCount": 3, - "createdAt": "2026-10-13T12:00:00Z", - "updatedAt": "2026-10-15T12:00:00Z" + "keys": [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXGDN/SclOozk1xsDztpmhGiKkkrfQB9SKoO8dSIQQZ me@example.com" + ] } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "409": { - "description": "A group with this name already exists in the current organization.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -8880,22 +10525,41 @@ } } }, - "delete": { - "operationId": "deleteOrganizationGroup", - "x-runpod-scope": "membership:write", - "summary": "Delete a group in your current organization", + "put": { + "operationId": "updateSshKeys", + "x-runpod-scope": "authentication:write", + "summary": "Replace registered SSH public keys", "x-mint": { "metadata": { - "description": "Delete a group and its group memberships without removing anyone from the organization." + "description": "Replace all SSH public keys registered to your Runpod account, remove omitted keys, and apply the new set to subsequently created Pods." } }, - "description": "Permanently deletes the group and its group memberships. Organization members are not removed. Returns 404 when the group does not exist in your current organization, including when it has already been deleted.", + "description": "Replaces the account's full set of registered SSH public keys. Existing keys not present in the request are removed; send `[]` to remove all keys. Keys take effect for pods created afterwards with `startSsh` — running pods are not updated.", "tags": [ - "Organization" + "Account" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateSshKeysRequest" + }, + "examples": { + "replaceKeys": { + "summary": "Register a single key", + "value": { + "keys": [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXGDN/SclOozk1xsDztpmhGiKkkrfQB9SKoO8dSIQQZ me@example.com" + ] + } + } + } + } + } + }, "responses": { - "204": { - "description": "Deleted", + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -8903,19 +10567,37 @@ "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" } + }, + "description": "OK — the updated key set", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SshKeys" + }, + "examples": { + "keys": { + "summary": "Successful response", + "value": { + "keys": [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXGDN/SclOozk1xsDztpmhGiKkkrfQB9SKoO8dSIQQZ me@example.com" + ] + } + } + } + } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "400": { + "$ref": "#/components/responses/BadRequestError" + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" }, "422": { "$ref": "#/components/responses/UnprocessableEntityError" @@ -8944,19 +10626,19 @@ } } }, - "/v2/account": { + "/v2/organization/users": { "get": { - "operationId": "getAccount", - "x-runpod-scope": "account:read", - "summary": "Get your account", + "operationId": "listOrganizationUsers", + "x-runpod-scope": "membership:read", + "summary": "List organization members", "x-mint": { "metadata": { - "description": "Retrieve the ID and email of the Runpod account your API key belongs to." + "description": "List the members of your organization and the role each one holds." } }, - "description": "Returns the account the API key belongs to.", + "description": "Returns every member of the authenticated caller's organization with the role each holds. Any member can read the roster. The list is complete and takes no pagination parameters. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", "tags": [ - "Account" + "Organization" ], "responses": { "200": { @@ -8972,14 +10654,39 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Account" + "$ref": "#/components/schemas/ListOrganizationUsersResponse" }, "examples": { - "account": { - "summary": "Successful response", + "users": { + "summary": "Organization members", "value": { - "id": "user_2abc123", - "email": "dev@example.com" + "users": [ + { + "id": "user_id_abc_123", + "email": "owner@example.com", + "role": { + "id": "builtin:admin", + "type": "builtin", + "name": "Admin" + }, + "groups": [] + }, + { + "id": "user_id_def_456", + "email": "member@example.com", + "role": { + "id": "builtin:dev", + "type": "builtin", + "name": "Developer" + }, + "groups": [ + { + "id": "group_id_abc_123", + "name": "Engineering" + } + ] + } + ] } } } @@ -8992,6 +10699,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -9016,19 +10726,31 @@ } } }, - "/v2/account/limits": { + "/v2/organization/users/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "User identifier", + "example": "user_id_abc_123" + } + ], "get": { - "operationId": "getAccountLimits", - "x-runpod-scope": "account:read", - "summary": "Get account limits", + "operationId": "getOrganizationUser", + "x-runpod-scope": "membership:read", + "summary": "Get an organization member", "x-mint": { "metadata": { - "description": "Read the spend rate limit, current spend rate, and resource limits that apply to your Runpod account before you deploy." + "description": "Get one member of your organization by user ID." } }, - "description": "Returns the limits that apply to the account this request acts for. A create or resume that would go past a limit is refused. Not available for organizations (403).", + "description": "Returns one member of the authenticated caller's organization by user ID, with the role they hold. Any member can read it. A user who is not a member, including one from another organization, returns 404. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", "tags": [ - "Account" + "Organization" ], "responses": { "200": { @@ -9044,19 +10766,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccountLimits" + "$ref": "#/components/schemas/OrganizationUser" }, "examples": { - "free": { - "summary": "Account on the free plan", + "user": { + "summary": "Organization member", "value": { - "spendRate": { - "limit": 80, - "current": 12.4 + "id": "user_id_abc_123", + "email": "owner@example.com", + "role": { + "id": "builtin:admin", + "type": "builtin", + "name": "Admin" }, - "serverlessWorkers": { - "limit": 10 - } + "groups": [ + { + "id": "group_id_abc_123", + "name": "Engineering" + } + ] } } } @@ -9069,6 +10797,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -9091,22 +10822,56 @@ } } } - } - }, - "/v2/account/ssh-keys": { - "get": { - "operationId": "getSshKeys", - "x-runpod-scope": "authentication:read", - "summary": "List registered SSH public keys", + }, + "patch": { + "operationId": "updateOrganizationUser", + "x-runpod-scope": "membership:write", + "summary": "Update an organization member", "x-mint": { "metadata": { - "description": "List the SSH public keys registered to your Runpod account and used to authenticate secure connections to newly created Pods." + "description": "Change a member's role, replace their groups, or both, by user ID." } }, - "description": "Returns the account's registered SSH public keys — the keys provisioned into pods created with `startSsh` and used to authenticate the SSH connections reported in a pod's `ssh` block.", + "description": "Changes one member of the authenticated caller's organization by user ID: assigns a role, replaces their set of groups, or both, applied together or not at all. Send at least one field; an omitted field is left as it is, and an empty `groups` list removes the member from every group. Updating members requires the organization's member-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable. Returns 403 when the caller changes their own role or assigns a role granting a capability the caller lacks; 409 when the change would leave the organization without a member in the built-in admin role; and 404 when the user is not a member or the role or a group is unknown to the organization, with the detail naming which.", "tags": [ - "Account" + "Organization" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationUserRequest" + }, + "examples": { + "role": { + "summary": "Assign a built-in role", + "value": { + "role": { + "id": "builtin:dev" + } + } + }, + "groups": { + "summary": "Replace the member's groups", + "value": { + "groups": [ + { + "id": "group_id_abc_123" + } + ] + } + }, + "clearGroups": { + "summary": "Remove the member from every group", + "value": { + "groups": [] + } + } + } + } + } + }, "responses": { "200": { "headers": { @@ -9121,14 +10886,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SshKeys" + "$ref": "#/components/schemas/OrganizationUser" }, "examples": { - "keys": { - "summary": "Successful response", + "user": { + "summary": "The member after the change", "value": { - "keys": [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXGDN/SclOozk1xsDztpmhGiKkkrfQB9SKoO8dSIQQZ me@example.com" + "id": "user_id_abc_123", + "email": "member@example.com", + "role": { + "id": "builtin:dev", + "type": "builtin", + "name": "Developer" + }, + "groups": [ + { + "id": "group_id_abc_123", + "name": "Engineering" + } ] } } @@ -9136,12 +10911,34 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "409": { + "description": "The change would leave the organization without a member in the built-in admin role.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -9165,41 +10962,21 @@ } } }, - "put": { - "operationId": "updateSshKeys", - "x-runpod-scope": "authentication:write", - "summary": "Replace registered SSH public keys", + "delete": { + "operationId": "deleteOrganizationUser", + "x-runpod-scope": "membership:write", + "summary": "Remove an organization member", "x-mint": { "metadata": { - "description": "Replace all SSH public keys registered to your Runpod account, remove omitted keys, and apply the new set to subsequently created Pods." + "description": "Remove a member from your organization by user ID." } }, - "description": "Replaces the account's full set of registered SSH public keys. Existing keys not present in the request are removed; send `[]` to remove all keys. Keys take effect for pods created afterwards with `startSsh` — running pods are not updated.", + "description": "Removes one member from the authenticated caller's organization by user ID. Their group memberships end and the API keys attributed to them within the organization are revoked; the resources they created stay with the organization. Removing another member requires the organization's member-removal capability, which the built-in admin role holds; any member can remove themselves. The organization keeps at least one member with the built-in admin role, so removing the last one returns 409. A user who is not a member, including one from another organization, returns 404. A member without the capability removing someone else, a caller outside an organization, and a caller for whom organizations are unavailable receive 403.", "tags": [ - "Account" + "Organization" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateSshKeysRequest" - }, - "examples": { - "replaceKeys": { - "summary": "Register a single key", - "value": { - "keys": [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXGDN/SclOozk1xsDztpmhGiKkkrfQB9SKoO8dSIQQZ me@example.com" - ] - } - } - } - } - } - }, "responses": { - "200": { + "204": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -9208,40 +10985,27 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK — the updated key set", + "description": "Removed. Response has no body." + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "409": { + "description": "The member holds the organization's only built-in admin role.", "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SshKeys" - }, - "examples": { - "keys": { - "summary": "Successful response", - "value": { - "keys": [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXGDN/SclOozk1xsDztpmhGiKkkrfQB9SKoO8dSIQQZ me@example.com" - ] - } - } + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -9266,17 +11030,17 @@ } } }, - "/v2/organization/users": { + "/v2/organization/invites": { "get": { - "operationId": "listOrganizationUsers", + "operationId": "listOrganizationInvites", "x-runpod-scope": "membership:read", - "summary": "List organization members", + "summary": "List pending organization invites", "x-mint": { "metadata": { - "description": "List the members of your organization and the role each one holds." + "description": "List the pending invitations to your organization." } }, - "description": "Returns every member of the authenticated caller's organization with the role each holds. Any member can read the roster. The list is complete and takes no pagination parameters. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", + "description": "Returns the pending invitations to the authenticated caller's organization, newest first. Only unexpired invites are pending: an invite leaves the list once it is accepted, revoked or expired. The list is complete and takes no pagination parameters, because an organization's pending invites are capped. Reading invites requires the organization's invite-management capability, which the built-in admin role holds; other members receive 403. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", "tags": [ "Organization" ], @@ -9294,37 +11058,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOrganizationUsersResponse" + "$ref": "#/components/schemas/ListOrganizationInvitesResponse" }, "examples": { - "users": { - "summary": "Organization members", + "invites": { + "summary": "Pending invites", "value": { - "users": [ - { - "id": "user_id_abc_123", - "email": "owner@example.com", - "role": { - "id": "builtin:admin", - "type": "builtin", - "name": "Admin" - }, - "groups": [] - }, + "invites": [ { - "id": "user_id_def_456", - "email": "member@example.com", + "id": "invite_id_abc_123", + "email": "new-member@example.com", "role": { "id": "builtin:dev", "type": "builtin", "name": "Developer" }, - "groups": [ - { - "id": "group_id_abc_123", - "name": "Engineering" - } - ] + "createdAt": "2026-10-01T09:00:00Z", + "expiresAt": "2026-10-15T09:00:00Z" } ] } @@ -9364,36 +11114,43 @@ } } } - } - }, - "/v2/organization/users/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "User identifier", - "example": "user_id_abc_123" - } - ], - "get": { - "operationId": "getOrganizationUser", - "x-runpod-scope": "membership:read", - "summary": "Get an organization member", + }, + "post": { + "operationId": "createOrganizationInvite", + "x-runpod-scope": "membership:write", + "summary": "Invite a user to your organization", "x-mint": { "metadata": { - "description": "Get one member of your organization by user ID." + "description": "Invite a user to your organization by email and choose the role they receive on joining." } }, - "description": "Returns one member of the authenticated caller's organization by user ID, with the role they hold. Any member can read it. A user who is not a member, including one from another organization, returns 404. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", + "description": "Sends an invitation to join the authenticated caller's organization and returns the pending invite; `expiresAt` is when it lapses. The invitee receives an email carrying the acceptance link, which is never returned here. Returns 409 when the address already belongs to a member or to a pending invite, or when the organization has reached its pending-invite limit; 404 when the role is unknown to the organization; and 403 when the caller does not hold every capability the role grants. Inviting requires the organization's invite-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", "tags": [ "Organization" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationInviteRequest" + }, + "examples": { + "invite": { + "summary": "Invite as a built-in role", + "value": { + "email": "new-member@example.com", + "role": { + "id": "builtin:dev" + } + } + } + } + } + } + }, "responses": { - "200": { + "201": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -9402,35 +11159,34 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationUser" + "$ref": "#/components/schemas/OrganizationInvite" }, "examples": { - "user": { - "summary": "Organization member", + "invite": { + "summary": "Successful response", "value": { - "id": "user_id_abc_123", - "email": "owner@example.com", + "id": "invite_id_abc_123", + "email": "new-member@example.com", "role": { - "id": "builtin:admin", + "id": "builtin:dev", "type": "builtin", - "name": "Admin" + "name": "Developer" }, - "groups": [ - { - "id": "group_id_abc_123", - "name": "Engineering" - } - ] + "createdAt": "2026-10-01T09:00:00Z", + "expiresAt": "2026-10-15T09:00:00Z" } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -9440,6 +11196,22 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, + "409": { + "description": "The address already belongs to an organization member or to a pending invite, or the organization has reached its pending-invite limit.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -9462,56 +11234,34 @@ } } } - }, - "patch": { - "operationId": "updateOrganizationUser", - "x-runpod-scope": "membership:write", - "summary": "Update an organization member", + } + }, + "/v2/organization/invites/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Invite identifier", + "example": "invite_id_abc_123" + } + ], + "get": { + "operationId": "getOrganizationInvite", + "x-runpod-scope": "membership:read", + "summary": "Get a pending organization invite", "x-mint": { "metadata": { - "description": "Change a member's role, replace their groups, or both, by user ID." + "description": "Get one pending invitation to your organization by ID." } }, - "description": "Changes one member of the authenticated caller's organization by user ID: assigns a role, replaces their set of groups, or both, applied together or not at all. Send at least one field; an omitted field is left as it is, and an empty `groups` list removes the member from every group. Updating members requires the organization's member-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable. Returns 403 when the caller changes their own role or assigns a role granting a capability the caller lacks; 409 when the change would leave the organization without a member in the built-in admin role; and 404 when the user is not a member or the role or a group is unknown to the organization, with the detail naming which.", + "description": "Returns one pending invitation to the authenticated caller's organization. Only unexpired invites are pending: an invite that has expired, been accepted or been revoked returns 404, as does an ID from another organization. Reading invites requires the organization's invite-management capability, which the built-in admin role holds; other members receive 403. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", "tags": [ "Organization" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateOrganizationUserRequest" - }, - "examples": { - "role": { - "summary": "Assign a built-in role", - "value": { - "role": { - "id": "builtin:dev" - } - } - }, - "groups": { - "summary": "Replace the member's groups", - "value": { - "groups": [ - { - "id": "group_id_abc_123" - } - ] - } - }, - "clearGroups": { - "summary": "Remove the member from every group", - "value": { - "groups": [] - } - } - } - } - } - }, "responses": { "200": { "headers": { @@ -9526,58 +11276,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationUser" + "$ref": "#/components/schemas/OrganizationInvite" }, "examples": { - "user": { - "summary": "The member after the change", + "invite": { + "summary": "Pending invite", "value": { - "id": "user_id_abc_123", - "email": "member@example.com", + "id": "invite_id_abc_123", + "email": "new-member@example.com", "role": { "id": "builtin:dev", "type": "builtin", "name": "Developer" }, - "groups": [ - { - "id": "group_id_abc_123", - "name": "Engineering" - } - ] - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "409": { - "description": "The change would leave the organization without a member in the built-in admin role.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "createdAt": "2026-10-01T09:00:00Z", + "expiresAt": "2026-10-15T09:00:00Z" + } + } } } } }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" + "401": { + "$ref": "#/components/responses/UnauthorizedError" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -9603,15 +11330,15 @@ } }, "delete": { - "operationId": "deleteOrganizationUser", + "operationId": "deleteOrganizationInvite", "x-runpod-scope": "membership:write", - "summary": "Remove an organization member", + "summary": "Cancel an organization invite", "x-mint": { "metadata": { - "description": "Remove a member from your organization by user ID." + "description": "Cancel a pending invitation to your organization so it can no longer be accepted." } }, - "description": "Removes one member from the authenticated caller's organization by user ID. Their group memberships end and the API keys attributed to them within the organization are revoked; the resources they created stay with the organization. Removing another member requires the organization's member-removal capability, which the built-in admin role holds; any member can remove themselves. The organization keeps at least one member with the built-in admin role, so removing the last one returns 409. A user who is not a member, including one from another organization, returns 404. A member without the capability removing someone else, a caller outside an organization, and a caller for whom organizations are unavailable receive 403.", + "description": "Cancels one invitation to the authenticated caller's organization; the invitee can no longer accept it. Returns 404 when the ID is unknown to the caller's organization: never issued, already accepted, already cancelled, or issued by another organization. An expired invite can still be cancelled. Cancelling invites requires the organization's invite-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", "tags": [ "Organization" ], @@ -9625,7 +11352,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Removed. Response has no body." + "description": "Cancelled. Response has no body." }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -9636,16 +11363,6 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, - "409": { - "description": "The member holds the organization's only built-in admin role.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -9670,17 +11387,17 @@ } } }, - "/v2/organization/invites": { + "/v2/organization/roles": { "get": { - "operationId": "listOrganizationInvites", + "operationId": "listOrganizationRoles", "x-runpod-scope": "membership:read", - "summary": "List pending organization invites", + "summary": "List organization roles", "x-mint": { "metadata": { - "description": "List the pending invitations to your organization." + "description": "List the built-in roles and your organization's custom roles, with the capabilities each grants." } }, - "description": "Returns the pending invitations to the authenticated caller's organization, newest first. Only unexpired invites are pending: an invite leaves the list once it is accepted, revoked or expired. The list is complete and takes no pagination parameters, because an organization's pending invites are capped. Reading invites requires the organization's invite-management capability, which the built-in admin role holds; other members receive 403. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", + "description": "Returns every role a member or invite of the authenticated caller's organization can hold: Runpod's built-in roles and the organization's custom roles, oldest first. The list is complete and takes no pagination parameters, because an organization's custom roles are capped. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", "tags": [ "Organization" ], @@ -9698,23 +11415,31 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOrganizationInvitesResponse" + "$ref": "#/components/schemas/ListOrganizationRolesResponse" }, "examples": { - "invites": { - "summary": "Pending invites", + "roles": { + "summary": "Built-in and custom roles", "value": { - "invites": [ + "roles": [ { - "id": "invite_id_abc_123", - "email": "new-member@example.com", - "role": { - "id": "builtin:dev", - "type": "builtin", - "name": "Developer" - }, + "id": "builtin:dev", + "name": "Dev", + "type": "builtin", + "capabilities": [ + "POD:CREATE", + "POD:VIEW" + ] + }, + { + "id": "cmcustomrole0001", + "name": "Pod viewer", + "type": "custom", + "capabilities": [ + "POD:VIEW" + ], "createdAt": "2026-10-01T09:00:00Z", - "expiresAt": "2026-10-15T09:00:00Z" + "updatedAt": "2026-10-02T09:00:00Z" } ] } @@ -9756,15 +11481,15 @@ } }, "post": { - "operationId": "createOrganizationInvite", + "operationId": "createOrganizationRole", "x-runpod-scope": "membership:write", - "summary": "Invite a user to your organization", + "summary": "Create a custom organization role", "x-mint": { "metadata": { - "description": "Invite a user to your organization by email and choose the role they receive on joining." + "description": "Create a custom role in your organization from a name and the capabilities it grants." } }, - "description": "Sends an invitation to join the authenticated caller's organization and returns the pending invite; `expiresAt` is when it lapses. The invitee receives an email carrying the acceptance link, which is never returned here. Returns 409 when the address already belongs to a member or to a pending invite, or when the organization has reached its pending-invite limit; 404 when the role is unknown to the organization; and 403 when the caller does not hold every capability the role grants. Inviting requires the organization's invite-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", + "description": "Creates a custom role in the authenticated caller's organization and returns it. Returns 409 when the organization already has a role with this name or has reached its custom-role limit; 422 when a capability is unknown or the name is reserved; and 403 when the caller does not hold every capability the role grants. Creating roles requires the organization's role-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", "tags": [ "Organization" ], @@ -9773,16 +11498,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateOrganizationInviteRequest" + "$ref": "#/components/schemas/CreateOrganizationRoleRequest" }, "examples": { - "invite": { - "summary": "Invite as a built-in role", + "role": { + "summary": "Read-only pod access", "value": { - "email": "new-member@example.com", - "role": { - "id": "builtin:dev" - } + "name": "Pod viewer", + "capabilities": [ + "POD:VIEW" + ] } } } @@ -9803,21 +11528,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationInvite" + "$ref": "#/components/schemas/OrganizationRole" }, "examples": { - "invite": { + "role": { "summary": "Successful response", "value": { - "id": "invite_id_abc_123", - "email": "new-member@example.com", - "role": { - "id": "builtin:dev", - "type": "builtin", - "name": "Developer" - }, + "id": "cmcustomrole0001", + "name": "Pod viewer", + "type": "custom", + "capabilities": [ + "POD:VIEW" + ], "createdAt": "2026-10-01T09:00:00Z", - "expiresAt": "2026-10-15T09:00:00Z" + "updatedAt": "2026-10-01T09:00:00Z" } } } @@ -9837,7 +11561,7 @@ "$ref": "#/components/responses/NotFoundError" }, "409": { - "description": "The address already belongs to an organization member or to a pending invite, or the organization has reached its pending-invite limit.", + "description": "The organization already has a role with this name, or has reached its custom-role limit.", "content": { "application/problem+json": { "schema": { @@ -9876,7 +11600,100 @@ } } }, - "/v2/organization/invites/{id}": { + "/v2/organization/roles/capabilities": { + "get": { + "operationId": "getOrganizationRoleCapabilities", + "x-runpod-scope": "membership:read", + "summary": "List grantable role capabilities", + "x-mint": { + "metadata": { + "description": "List the capabilities a custom role in your organization can grant." + } + }, + "description": "Returns the capabilities a custom role can grant, grouped by family: each capability is a family and one of its verbs, written `FAMILY:VERB`. This is the set role creation accepts, not filtered to the caller's own access; saving a role also requires the caller to hold every capability it grants. `family` and `verb` narrow the result and apply together; with neither, the whole catalog is returned. Reading the catalog requires organization membership; other callers receive 403.", + "tags": [ + "Organization" + ], + "parameters": [ + { + "$ref": "#/components/parameters/OrganizationCapabilityFamilyFilter" + }, + { + "$ref": "#/components/parameters/OrganizationCapabilityVerbFilter" + } + ], + "responses": { + "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationCapabilityCatalog" + }, + "examples": { + "catalog": { + "summary": "Pod and endpoint view verbs", + "value": { + "version": 1, + "families": [ + { + "family": "POD", + "verbs": [ + "VIEW" + ] + }, + { + "family": "ENDPOINT", + "verbs": [ + "VIEW" + ] + } + ] + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/organization/roles/{id}": { "parameters": [ { "name": "id", @@ -9885,20 +11702,20 @@ "schema": { "type": "string" }, - "description": "Invite identifier", - "example": "invite_id_abc_123" + "description": "Role identifier", + "example": "cmcustomrole0001" } ], "get": { - "operationId": "getOrganizationInvite", + "operationId": "getOrganizationRole", "x-runpod-scope": "membership:read", - "summary": "Get a pending organization invite", + "summary": "Get an organization role", "x-mint": { "metadata": { - "description": "Get one pending invitation to your organization by ID." + "description": "Get one built-in or custom role by ID, with the capabilities it grants." } }, - "description": "Returns one pending invitation to the authenticated caller's organization. Only unexpired invites are pending: an invite that has expired, been accepted or been revoked returns 404, as does an ID from another organization. Reading invites requires the organization's invite-management capability, which the built-in admin role holds; other members receive 403. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", + "description": "Returns one role a member or invite of the authenticated caller's organization can hold: a built-in role, or one of the organization's custom roles. Returns 404 when the ID is unknown or names another organization's custom role, or when the caller does not belong to an organization; 403 when the caller may not view the organization's roles or organizations are unavailable to the caller.", "tags": [ "Organization" ], @@ -9916,21 +11733,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationInvite" + "$ref": "#/components/schemas/OrganizationRole" }, "examples": { - "invite": { - "summary": "Pending invite", + "custom": { + "summary": "Custom role", "value": { - "id": "invite_id_abc_123", - "email": "new-member@example.com", - "role": { - "id": "builtin:dev", - "type": "builtin", - "name": "Developer" - }, + "id": "cmcustomrole0001", + "name": "Pod viewer", + "type": "custom", + "capabilities": [ + "POD:VIEW" + ], "createdAt": "2026-10-01T09:00:00Z", - "expiresAt": "2026-10-15T09:00:00Z" + "updatedAt": "2026-10-02T09:00:00Z" + } + }, + "builtin": { + "summary": "Built-in role", + "value": { + "id": "builtin:dev", + "name": "Dev", + "type": "builtin", + "capabilities": [ + "POD:CREATE", + "POD:VIEW" + ] } } } @@ -9969,21 +11797,48 @@ } } }, - "delete": { - "operationId": "deleteOrganizationInvite", + "patch": { + "operationId": "updateOrganizationRole", "x-runpod-scope": "membership:write", - "summary": "Cancel an organization invite", + "summary": "Update a custom organization role", "x-mint": { "metadata": { - "description": "Cancel a pending invitation to your organization so it can no longer be accepted." + "description": "Rename a custom role in your organization or replace the capabilities it grants." } }, - "description": "Cancels one invitation to the authenticated caller's organization; the invitee can no longer accept it. Returns 404 when the ID is unknown to the caller's organization: never issued, already accepted, already cancelled, or issued by another organization. An expired invite can still be cancelled. Cancelling invites requires the organization's invite-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", + "description": "Changes a custom role's name, its capabilities, or both, and returns the role. Sent capabilities replace the whole grant set. Returns 400 for a built-in role, which cannot be changed; 404 when the ID is unknown or names another organization's role; 403 when the caller does not hold every capability the role grants, before or after the change; 409 when the organization already has a role with the new name; and 422 when a capability is unknown or the name is reserved. Updating roles requires the organization's role-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", "tags": [ "Organization" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationRoleRequest" + }, + "examples": { + "rename": { + "summary": "Rename a role", + "value": { + "name": "Pod operator" + } + }, + "capabilities": { + "summary": "Replace a role's capabilities", + "value": { + "capabilities": [ + "POD:USE", + "POD:VIEW" + ] + } + } + } + } + } + }, "responses": { - "204": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -9992,7 +11847,33 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Cancelled. Response has no body." + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationRole" + }, + "examples": { + "role": { + "summary": "Successful response", + "value": { + "id": "cmcustomrole0001", + "name": "Pod operator", + "type": "custom", + "capabilities": [ + "POD:USE", + "POD:VIEW" + ], + "createdAt": "2026-10-01T09:00:00Z", + "updatedAt": "2026-10-03T09:00:00Z" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequestError" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -10003,6 +11884,22 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, + "409": { + "description": "The organization already has a role with this name.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -10025,24 +11922,22 @@ } } } - } - }, - "/v2/organization/roles": { - "get": { - "operationId": "listOrganizationRoles", - "x-runpod-scope": "membership:read", - "summary": "List organization roles", + }, + "delete": { + "operationId": "deleteOrganizationRole", + "x-runpod-scope": "membership:write", + "summary": "Delete a custom organization role", "x-mint": { "metadata": { - "description": "List the built-in roles and your organization's custom roles, with the capabilities each grants." + "description": "Delete a custom role from your organization once no member or pending invite holds it." } }, - "description": "Returns every role a member or invite of the authenticated caller's organization can hold: Runpod's built-in roles and the organization's custom roles, oldest first. The list is complete and takes no pagination parameters, because an organization's custom roles are capped. Returns 404 when the caller does not belong to an organization, or 403 when organizations are unavailable to the caller.", + "description": "Deletes a custom role from the authenticated caller's organization. Returns 409 while a member or a pending invite holds the role: reassign those members and cancel those invites first, since deleting never changes anyone's role. Expired invites do not block deletion. Returns 400 for a built-in role, which cannot be deleted; 404 when the ID is unknown, names another organization's role, or was already deleted. Deleting roles requires the organization's role-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", "tags": [ "Organization" ], "responses": { - "200": { + "204": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -10051,42 +11946,10 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListOrganizationRolesResponse" - }, - "examples": { - "roles": { - "summary": "Built-in and custom roles", - "value": { - "roles": [ - { - "id": "builtin:dev", - "name": "Dev", - "type": "builtin", - "capabilities": [ - "POD:CREATE", - "POD:VIEW" - ] - }, - { - "id": "cmcustomrole0001", - "name": "Pod viewer", - "type": "custom", - "capabilities": [ - "POD:VIEW" - ], - "createdAt": "2026-10-01T09:00:00Z", - "updatedAt": "2026-10-02T09:00:00Z" - } - ] - } - } - } - } - } + "description": "Deleted. Response has no body." + }, + "400": { + "$ref": "#/components/responses/BadRequestError" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -10097,6 +11960,16 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, + "409": { + "description": "A member or a pending invite still holds the role. The detail gives how many of each.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -10119,43 +11992,35 @@ } } } - }, - "post": { - "operationId": "createOrganizationRole", - "x-runpod-scope": "membership:write", - "summary": "Create a custom organization role", + } + }, + "/v2/account/secrets": { + "get": { + "operationId": "listSecrets", + "x-runpod-scope": "secrets:read", + "summary": "List secrets", "x-mint": { "metadata": { - "description": "Create a custom role in your organization from a name and the capabilities it grants." + "description": "List encrypted secrets referenced by Runpod Pods, Serverless endpoints, and templates through environment variables. Secret values are never returned." } }, - "description": "Creates a custom role in the authenticated caller's organization and returns it. Returns 409 when the organization already has a role with this name or has reached its custom-role limit; 422 when a capability is unknown or the name is reserved; and 403 when the caller does not hold every capability the role grants. Creating roles requires the organization's role-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", + "description": "Returns the account's secrets — encrypted strings referenced from pod, serverless, and template environment variables with the `{{ RUNPOD_SECRET_ }}` placeholder syntax, substituted with the secret's value when the pod or worker boots. Secret values are write-only and are never returned.", "tags": [ - "Organization" + "Account" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateOrganizationRoleRequest" - }, - "examples": { - "role": { - "summary": "Read-only pod access", - "value": { - "name": "Pod viewer", - "capabilities": [ - "POD:VIEW" - ] - } - } - } - } + "parameters": [ + { + "name": "name", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "When provided, returns only the secret with this name (case-insensitive)." } - }, + ], "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -10164,58 +12029,37 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Created", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationRole" + "$ref": "#/components/schemas/ListSecretsResponse" }, "examples": { - "role": { + "secrets": { "summary": "Successful response", "value": { - "id": "cmcustomrole0001", - "name": "Pod viewer", - "type": "custom", - "capabilities": [ - "POD:VIEW" - ], - "createdAt": "2026-10-01T09:00:00Z", - "updatedAt": "2026-10-01T09:00:00Z" + "secrets": [ + { + "id": "2q9m7x4cavgd", + "name": "hf-token", + "description": "Hugging Face read token", + "createdAt": "2026-08-01T12:00:00Z", + "valueLastUpdatedAt": "2026-09-01T08:30:00Z" + } + ] } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "409": { - "description": "The organization already has a role with this name, or has reached its custom-role limit.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -10238,32 +12082,42 @@ } } } - } - }, - "/v2/organization/roles/capabilities": { - "get": { - "operationId": "getOrganizationRoleCapabilities", - "x-runpod-scope": "membership:read", - "summary": "List grantable role capabilities", + }, + "post": { + "operationId": "createSecret", + "x-runpod-scope": "secrets:write", + "summary": "Create a secret", "x-mint": { "metadata": { - "description": "List the capabilities a custom role in your organization can grant." + "description": "Create an encrypted Runpod account secret that Pods, Serverless endpoints, and templates can reference from environment variables at boot." } }, - "description": "Returns the capabilities a custom role can grant, grouped by family: each capability is a family and one of its verbs, written `FAMILY:VERB`. This is the set role creation accepts, not filtered to the caller's own access; saving a role also requires the caller to hold every capability it grants. `family` and `verb` narrow the result and apply together; with neither, the whole catalog is returned. Reading the catalog requires organization membership; other callers receive 403.", + "description": "Stores a new account-scoped encrypted string. `name` must be unique\nacross the account's secrets and is immutable; `value` is write-only\nand can never be read back through the API.\n\nUse the secret from pods, serverless endpoints, and templates by\nsetting an environment variable's value to\n`{{ RUNPOD_SECRET_ }}` — Runpod substitutes the stored value\nwhen the pod or worker boots.\n\nReturns `201` with the created secret's metadata, or `409` when the\nname is already taken.\n", "tags": [ - "Organization" + "Account" ], - "parameters": [ - { - "$ref": "#/components/parameters/OrganizationCapabilityFamilyFilter" - }, - { - "$ref": "#/components/parameters/OrganizationCapabilityVerbFilter" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateSecretRequest" + }, + "examples": { + "secret": { + "summary": "Secret with a description", + "value": { + "name": "hf-token", + "value": "hf_********************************", + "description": "Hugging Face read token" + } + } + } + } } - ], + }, "responses": { - "200": { + "201": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -10272,43 +12126,52 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationCapabilityCatalog" + "$ref": "#/components/schemas/Secret" }, "examples": { - "catalog": { - "summary": "Pod and endpoint view verbs", + "secret": { + "summary": "Successful response", "value": { - "version": 1, - "families": [ - { - "family": "POD", - "verbs": [ - "VIEW" - ] - }, - { - "family": "ENDPOINT", - "verbs": [ - "VIEW" - ] - } - ] + "id": "2q9m7x4cavgd", + "name": "hf-token", + "description": "Hugging Face read token", + "createdAt": "2026-09-10T17:23:45Z", + "valueLastUpdatedAt": "2026-09-10T17:23:45Z" } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, + "409": { + "description": "A secret with this name already exists.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -10333,7 +12196,7 @@ } } }, - "/v2/organization/roles/{id}": { + "/v2/account/secrets/{id}": { "parameters": [ { "name": "id", @@ -10342,22 +12205,22 @@ "schema": { "type": "string" }, - "description": "Role identifier", - "example": "cmcustomrole0001" + "description": "Secret identifier", + "example": "2q9m7x4cavgd" } ], "get": { - "operationId": "getOrganizationRole", - "x-runpod-scope": "membership:read", - "summary": "Get an organization role", + "operationId": "getSecret", + "x-runpod-scope": "secrets:read", + "summary": "Get a secret", "x-mint": { "metadata": { - "description": "Get one built-in or custom role by ID, with the capabilities it grants." + "description": "Retrieve a Runpod account secret's metadata by ID. The secret value is write-only and is never returned." } }, - "description": "Returns one role a member or invite of the authenticated caller's organization can hold: a built-in role, or one of the organization's custom roles. Returns 404 when the ID is unknown or names another organization's custom role, or when the caller does not belong to an organization; 403 when the caller may not view the organization's roles or organizations are unavailable to the caller.", + "description": "Returns a single secret's metadata by ID. The value is write-only and never returned.", "tags": [ - "Organization" + "Account" ], "responses": { "200": { @@ -10373,32 +12236,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationRole" + "$ref": "#/components/schemas/Secret" }, "examples": { - "custom": { - "summary": "Custom role", - "value": { - "id": "cmcustomrole0001", - "name": "Pod viewer", - "type": "custom", - "capabilities": [ - "POD:VIEW" - ], - "createdAt": "2026-10-01T09:00:00Z", - "updatedAt": "2026-10-02T09:00:00Z" - } - }, - "builtin": { - "summary": "Built-in role", + "secret": { + "summary": "Successful response", "value": { - "id": "builtin:dev", - "name": "Dev", - "type": "builtin", - "capabilities": [ - "POD:CREATE", - "POD:VIEW" - ] + "id": "2q9m7x4cavgd", + "name": "hf-token", + "description": "Hugging Face read token", + "createdAt": "2026-08-01T12:00:00Z", + "valueLastUpdatedAt": "2026-09-01T08:30:00Z" } } } @@ -10438,39 +12286,36 @@ } }, "patch": { - "operationId": "updateOrganizationRole", - "x-runpod-scope": "membership:write", - "summary": "Update a custom organization role", + "operationId": "updateSecret", + "x-runpod-scope": "secrets:write", + "summary": "Update a secret", "x-mint": { "metadata": { - "description": "Rename a custom role in your organization or replace the capabilities it grants." + "description": "Update a Runpod account secret's description or rotate its value. The new value takes effect the next time a referencing Pod or worker boots." } }, - "description": "Changes a custom role's name, its capabilities, or both, and returns the role. Sent capabilities replace the whole grant set. Returns 400 for a built-in role, which cannot be changed; 404 when the ID is unknown or names another organization's role; 403 when the caller does not hold every capability the role grants, before or after the change; 409 when the organization already has a role with the new name; and 422 when a capability is unknown or the name is reserved. Updating roles requires the organization's role-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", + "description": "Rotates a secret's value and/or updates its description. Only the\nprovided fields are changed and at least one field is required; the\n`name` is immutable.\n\nPods and workers receive the new value at their next boot — running\ninstances keep the value they were started with.\n\nWhen both fields are sent, the value is applied first, then the\ndescription. The two updates are not atomic: if the description\nupdate fails after the value was rotated, the response is an error\nbut the new value has already taken effect. Send the fields in\nseparate requests when that partial outcome matters.\n", "tags": [ - "Organization" + "Account" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateOrganizationRoleRequest" + "$ref": "#/components/schemas/UpdateSecretRequest" }, "examples": { - "rename": { - "summary": "Rename a role", + "rotateSecret": { + "summary": "Rotate the value", "value": { - "name": "Pod operator" + "value": "hf_********************************" } }, - "capabilities": { - "summary": "Replace a role's capabilities", + "updateDescription": { + "summary": "Update the description", "value": { - "capabilities": [ - "POD:USE", - "POD:VIEW" - ] + "description": "Rotated HF token" } } } @@ -10491,102 +12336,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrganizationRole" + "$ref": "#/components/schemas/Secret" }, "examples": { - "role": { - "summary": "Successful response", - "value": { - "id": "cmcustomrole0001", - "name": "Pod operator", - "type": "custom", - "capabilities": [ - "POD:USE", - "POD:VIEW" - ], - "createdAt": "2026-10-01T09:00:00Z", - "updatedAt": "2026-10-03T09:00:00Z" - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "409": { - "description": "The organization already has a role with this name.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" - }, - "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Error", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "delete": { - "operationId": "deleteOrganizationRole", - "x-runpod-scope": "membership:write", - "summary": "Delete a custom organization role", - "x-mint": { - "metadata": { - "description": "Delete a custom role from your organization once no member or pending invite holds it." - } - }, - "description": "Deletes a custom role from the authenticated caller's organization. Returns 409 while a member or a pending invite holds the role: reassign those members and cancel those invites first, since deleting never changes anyone's role. Expired invites do not block deletion. Returns 400 for a built-in role, which cannot be deleted; 404 when the ID is unknown, names another organization's role, or was already deleted. Deleting roles requires the organization's role-management capability, which the built-in admin role holds; other members, and callers outside an organization, receive 403, as does a caller for whom organizations are unavailable.", - "tags": [ - "Organization" - ], - "responses": { - "204": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" + "secret": { + "summary": "Successful response after rotation", + "value": { + "id": "2q9m7x4cavgd", + "name": "hf-token", + "description": "Rotated HF token", + "createdAt": "2026-08-01T12:00:00Z", + "valueLastUpdatedAt": "2026-09-10T17:40:12Z" + } + } + } } - }, - "description": "Deleted. Response has no body." + } }, "400": { "$ref": "#/components/responses/BadRequestError" @@ -10600,15 +12365,11 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, - "409": { - "description": "A member or a pending invite still holds the role. The detail gives how many of each.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -10632,35 +12393,22 @@ } } } - } - }, - "/v2/account/secrets": { - "get": { - "operationId": "listSecrets", - "x-runpod-scope": "secrets:read", - "summary": "List secrets", + }, + "delete": { + "operationId": "deleteSecret", + "x-runpod-scope": "secrets:write", + "summary": "Delete a secret", "x-mint": { "metadata": { - "description": "List encrypted secrets referenced by Runpod Pods, Serverless endpoints, and templates through environment variables. Secret values are never returned." + "description": "Delete a Runpod account secret so Pods, Serverless endpoints, and templates can no longer resolve it from environment variables." } }, - "description": "Returns the account's secrets — encrypted strings referenced from pod, serverless, and template environment variables with the `{{ RUNPOD_SECRET_ }}` placeholder syntax, substituted with the secret's value when the pod or worker boots. Secret values are write-only and are never returned.", + "description": "Permanently deletes a secret. Environment variables referencing the\ndeleted secret's name will no longer resolve to a value.\n", "tags": [ "Account" ], - "parameters": [ - { - "name": "name", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "When provided, returns only the secret with this name (case-insensitive)." - } - ], "responses": { - "200": { + "204": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -10669,30 +12417,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListSecretsResponse" - }, - "examples": { - "secrets": { - "summary": "Successful response", - "value": { - "secrets": [ - { - "id": "2q9m7x4cavgd", - "name": "hf-token", - "description": "Hugging Face read token", - "createdAt": "2026-08-01T12:00:00Z", - "valueLastUpdatedAt": "2026-09-01T08:30:00Z" - } - ] - } - } - } - } - } + "description": "Deleted. Response has no body." }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -10700,6 +12425,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -10722,82 +12450,59 @@ } } } - }, + } + }, + "/v2/signup/authentication-attempts": { "post": { - "operationId": "createSecret", - "x-runpod-scope": "secrets:write", - "summary": "Create a secret", + "operationId": "createAuthenticationAttempt", + "security": [], "x-mint": { "metadata": { - "description": "Create an encrypted Runpod account secret that Pods, Serverless endpoints, and templates can reference from environment variables at boot." + "description": "Email a verification code to sign in or create a Runpod account without an API key." } }, - "description": "Stores a new account-scoped encrypted string. `name` must be unique\nacross the account's secrets and is immutable; `value` is write-only\nand can never be read back through the API.\n\nUse the secret from pods, serverless endpoints, and templates by\nsetting an environment variable's value to\n`{{ RUNPOD_SECRET_ }}` — Runpod substitutes the stored value\nwhen the pod or worker boots.\n\nReturns `201` with the created secret's metadata, or `409` when the\nname is already taken.\n", + "summary": "Start an authentication attempt", + "description": "Emails a verification code to sign in to an existing account or create a new one, without an API key. The response is the same whether or not an account exists for the email.", "tags": [ - "Account" + "Signup" + ], + "parameters": [ + { + "name": "Idempotency-Key", + "in": "header", + "required": true, + "schema": { + "type": "string", + "minLength": 1, + "maxLength": 128 + }, + "description": "Use an unpredictable unique key, such as a UUID, for each new attempt. Retrying with the same key and body returns the same attempt without sending another email. For the same email, the same key with a different body is a `422`.", + "example": "0f8c2d4e-6a1b-4c3d-9e7f-1a2b3c4d5e6f" + } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateSecretRequest" - }, - "examples": { - "secret": { - "summary": "Secret with a description", - "value": { - "name": "hf-token", - "value": "hf_********************************", - "description": "Hugging Face read token" - } - } + "$ref": "#/components/schemas/CreateAuthenticationAttemptRequest" } } } }, "responses": { "201": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Created", + "description": "Created. A verification code was emailed.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Secret" - }, - "examples": { - "secret": { - "summary": "Successful response", - "value": { - "id": "2q9m7x4cavgd", - "name": "hf-token", - "description": "Hugging Face read token", - "createdAt": "2026-09-10T17:23:45Z", - "valueLastUpdatedAt": "2026-09-10T17:23:45Z" - } - } + "$ref": "#/components/schemas/AuthenticationAttempt" } } } }, "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "409": { - "description": "A secret with this name already exists.", + "description": "The request is malformed or its body could not be read.", "content": { "application/problem+json": { "schema": { @@ -10807,7 +12512,14 @@ } }, "413": { - "$ref": "#/components/responses/RequestTooLargeError" + "description": "The incoming request body exceeds 4096 bytes (4 KiB).", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "422": { "$ref": "#/components/responses/UnprocessableEntityError" @@ -10816,14 +12528,6 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -10836,84 +12540,112 @@ } } }, - "/v2/account/secrets/{id}": { + "/v2/signup/authentication-attempts/{id}/verify": { "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1, + "maxLength": 64 }, - "description": "Secret identifier", - "example": "2q9m7x4cavgd" + "description": "The `attemptId` returned when the attempt started." } ], - "get": { - "operationId": "getSecret", - "x-runpod-scope": "secrets:read", - "summary": "Get a secret", + "post": { + "operationId": "verifyAuthenticationAttempt", + "security": [], "x-mint": { "metadata": { - "description": "Retrieve a Runpod account secret's metadata by ID. The secret value is write-only and is never returned." + "description": "Exchange an emailed verification code for a new Runpod API key." } }, - "description": "Returns a single secret's metadata by ID. The value is write-only and never returned.", + "summary": "Verify an authentication attempt", + "description": "Exchanges the emailed code and the `codeVerifier` whose hash started the attempt for a new API key, visible and revocable in the console. A wrong code is a `422`, and five wrong codes lock the attempt.", "tags": [ - "Account" + "Signup" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VerifyAuthenticationAttemptRequest" + } + } + } + }, "responses": { "200": { + "description": "OK. The attempt is consumed and the key is issued.", "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" + "Cache-Control": { + "required": true, + "schema": { + "type": "string", + "enum": [ + "no-store" + ] + } } }, - "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Secret" - }, - "examples": { - "secret": { - "summary": "Successful response", - "value": { - "id": "2q9m7x4cavgd", - "name": "hf-token", - "description": "Hugging Face read token", - "createdAt": "2026-08-01T12:00:00Z", - "valueLastUpdatedAt": "2026-09-01T08:30:00Z" - } - } + "$ref": "#/components/schemas/AuthenticationAttemptResult" + } + } + } + }, + "403": { + "description": "The account requires SSO or MFA, or belongs to an organization. Sign in through the console instead.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "No usable attempt matches this id and `codeVerifier`. It does not exist, expired, already issued a key, or locked after five wrong codes.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" + "400": { + "description": "The request is malformed or its body could not be read.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "403": { - "$ref": "#/components/responses/ForbiddenError" + "413": { + "description": "The incoming request body exceeds 4096 bytes (4 KiB).", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -10924,89 +12656,85 @@ } } } - }, - "patch": { - "operationId": "updateSecret", - "x-runpod-scope": "secrets:write", - "summary": "Update a secret", + } + }, + "/v2/signup/authentication-attempts/{id}/resend": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1, + "maxLength": 64 + }, + "description": "The `attemptId` returned when the attempt started." + } + ], + "post": { + "operationId": "resendAuthenticationAttempt", + "security": [], "x-mint": { "metadata": { - "description": "Update a Runpod account secret's description or rotate its value. The new value takes effect the next time a referencing Pod or worker boots." + "description": "Email a new verification code for a pending authentication attempt." } }, - "description": "Rotates a secret's value and/or updates its description. Only the\nprovided fields are changed and at least one field is required; the\n`name` is immutable.\n\nPods and workers receive the new value at their next boot — running\ninstances keep the value they were started with.\n\nWhen both fields are sent, the value is applied first, then the\ndescription. The two updates are not atomic: if the description\nupdate fails after the value was rotated, the response is an error\nbut the new value has already taken effect. Send the fields in\nseparate requests when that partial outcome matters.\n", + "summary": "Resend an authentication attempt's code", + "description": "Emails a new verification code and invalidates the previous one. The attempt's `expiresAt` and wrong-code count carry over. Resending before `resendAfter` is a `429` with `Retry-After`.", "tags": [ - "Account" + "Signup" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateSecretRequest" - }, - "examples": { - "rotateSecret": { - "summary": "Rotate the value", - "value": { - "value": "hf_********************************" - } - }, - "updateDescription": { - "summary": "Update the description", - "value": { - "description": "Rotated HF token" - } - } + "$ref": "#/components/schemas/ResendAuthenticationAttemptRequest" } } } }, "responses": { "200": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "OK", + "description": "OK. A new code was emailed.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Secret" - }, - "examples": { - "secret": { - "summary": "Successful response after rotation", - "value": { - "id": "2q9m7x4cavgd", - "name": "hf-token", - "description": "Rotated HF token", - "createdAt": "2026-08-01T12:00:00Z", - "valueLastUpdatedAt": "2026-09-10T17:40:12Z" - } - } + "$ref": "#/components/schemas/AuthenticationAttempt" } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, "404": { - "$ref": "#/components/responses/NotFoundError" + "description": "No usable attempt matches this id and `codeVerifier`. It does not exist, expired, already issued a key, or locked after five wrong codes.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "400": { + "description": "The request is malformed or its body could not be read.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "413": { - "$ref": "#/components/responses/RequestTooLargeError" + "description": "The incoming request body exceeds 4096 bytes (4 KiB).", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "422": { "$ref": "#/components/responses/UnprocessableEntityError" @@ -11015,14 +12743,6 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -11033,22 +12753,46 @@ } } } - }, - "delete": { - "operationId": "deleteSecret", - "x-runpod-scope": "secrets:write", - "summary": "Delete a secret", + } + }, + "/v2/pods": { + "get": { + "operationId": "listPods", + "x-runpod-scope": "pods:read", + "summary": "List pods", "x-mint": { "metadata": { - "description": "Delete a Runpod account secret so Pods, Serverless endpoints, and templates can no longer resolve it from environment variables." + "description": "List Pods owned by the authenticated Runpod user, with an option to include member Pods that belong to Runpod Clusters." } }, - "description": "Permanently deletes a secret. Environment variables referencing the\ndeleted secret's name will no longer resolve to a value.\n", + "description": "Returns pods owned by the authenticated user. Cluster member\npods are excluded by default; set `includeClusterPods=true` to include\nthem (each carries a non-null `cluster` membership block).\n\nResults are cursor-paginated newest-first; an omitted `limit`\ndefaults to 1000. The cluster-member exclusion is applied before the\npage is cut, so a page holds `limit` pods whenever that many remain.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", "tags": [ - "Account" + "Pods" + ], + "parameters": [ + { + "name": "includeClusterPods", + "in": "query", + "required": false, + "description": "Include cluster member pods in the result. Defaults to false.", + "schema": { + "type": "boolean", + "default": false + }, + "example": false + }, + { + "$ref": "#/components/parameters/ResourceFilters" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" + } ], "responses": { - "204": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -11056,8 +12800,82 @@ "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" } - }, - "description": "Deleted. Response has no body." + }, + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListPodsResponse" + }, + "examples": { + "pods": { + "summary": "Successful response", + "value": { + "pods": [ + { + "id": "7h9k2m4n6p", + "name": "pytorch-training", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "ports": [ + "8888/http", + "22/tcp" + ], + "env": { + "MODEL_NAME": "llama-3" + }, + "registry": null, + "status": "RUNNING", + "actions": [ + "stop", + "restart", + "terminate" + ], + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" + } + }, + "gpu": { + "id": "NVIDIA GeForce RTX 4090", + "count": 1, + "vcpuCount": 16, + "memory": 64 + }, + "cloud": "SECURE", + "dataCenterId": "US-KS-2", + "cudaVersion": "12.8", + "ssh": { + "proxy": { + "host": "ssh.runpod.io", + "port": 22, + "username": "7h9k2m4n6p-64411eb2", + "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" + }, + "direct": null + }, + "template": "9x4m2p7v", + "cost": 0.44, + "locked": false, + "globalNetworking": { + "enabled": false + }, + "runtime": null, + "createdAt": "2026-06-01T12:00:00Z", + "startedAt": "2026-06-01T12:02:00Z" + } + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } + } + } + } + } + } }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -11065,8 +12883,11 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -11090,34 +12911,25 @@ } } } - } - }, - "/v2/signup/authentication-attempts": { + }, "post": { - "operationId": "createAuthenticationAttempt", - "security": [], + "operationId": "createPod", + "x-runpod-scope": "pods:write", + "summary": "Create a pod", "x-mint": { "metadata": { - "description": "Email a verification code to sign in or create a Runpod account without an API key." + "description": "Create a Runpod Pod with GPU or CPU compute, container or template settings, storage, networking, and deployment constraints." } }, - "summary": "Start an authentication attempt", - "description": "Emails a verification code to sign in to an existing account or create a new one, without an API key. The response is the same whether or not an account exists for the email.", + "description": "Creates a new pod. `name` is always required; supply exactly one of\n`gpu` or `cpu` to select compute (a GPU or a CPU pod). Container\nsettings come from the body, from a template referenced by\n`templateId` (body fields override the template's), or both; `image`\nis required unless `templateId` is set. See `CreatePodRequest` for\nthe full body.\n\nReturns `201` with the created pod. Provisioning is asynchronous: the\npod starts in `PROVISIONING`, transitions through `STARTING`, and\nreaches `RUNNING` once its container is healthy. Poll `getPod` (or\nwatch the pod's `status`) to observe readiness rather than assuming\nthe pod is running when this call returns.\n\n## Checking what you can deploy\n\nThis endpoint places one specific GPU type. It does not search for\ncapacity, and it does not fall back to a different GPU. To find out\nwhat is deployable before you call it, read the catalog:\n\n- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)\n — GPU types with pricing, per-cloud ceilings, and, with\n `include=AVAILABILITY&product=POD`, current pod stock.\n- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)\n — locations, with `include=GPU_AVAILABILITY` for stock per data\n center.\n\nBoth accept filters that combine, so you can narrow by location and by\ncompute in one request — for example\n`GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY`\nreturns only European data centers, each carrying the GPU types\ncurrently available there.\n\n## Deploying under region and GPU constraints\n\nIf you need a particular GPU in a particular geography, the working\npattern is read-then-create: narrow the catalog to an acceptable\n(data center, GPU) set, then call this endpoint once per candidate in\nyour order of preference until one returns `201`. The runnable sample\nalongside this operation does exactly that.\n\nAvailability can change between the catalog read and the create call,\nso treat the catalog as a way to order your candidates, not as a\nreservation — a create can still fail for capacity on a GPU the\ncatalog just reported as available.\n\nWhich failures are worth retrying:\n\n| Status | Meaning | Do |\n| --- | --- | --- |\n| `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. |\n| `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. |\n| `402` | Insufficient balance. | Stop; no candidate will succeed. |\n| `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. |\n| `429` | Rate limited. | Back off using `Retry-After`, then resume. |\n| `5xx` | Transient server failure. | Retry the same candidate with backoff. |\n\nRequests larger than 102400 bytes receive `413` after authentication\nand rate limiting, before deployment processing. Reduce the serialized\nJSON request body and retry.\n\nThis limit also applies to the deployment request built from your input\nand any referenced template. A small request can therefore receive `413`\nif inherited template settings make the combined request too large.\nReduce environment variables or command values in your request or template\nand retry.\n\n`400` covers both \"your request breaks a rule\" and \"no capacity\",\nbecause capacity exhaustion currently carries no machine-readable code\nof its own — only a human-readable `detail`. A rule violation is\ndeterministic, so it fails identically on every candidate: if *every*\ncandidate returns `400`, read the last `detail` as a problem with the\nrequest rather than as absent capacity.\n", "tags": [ - "Signup" + "Pods" ], - "parameters": [ + "x-codeSamples": [ { - "name": "Idempotency-Key", - "in": "header", - "required": true, - "schema": { - "type": "string", - "minLength": 1, - "maxLength": 128 - }, - "description": "Use an unpredictable unique key, such as a UUID, for each new attempt. Retrying with the same key and body returns the same attempt without sending another email. For the same email, the same key with a different body is a `422`.", - "example": "0f8c2d4e-6a1b-4c3d-9e7f-1a2b3c4d5e6f" + "lang": "Python", + "label": "Region-constrained deploy loop", + "source": "import os\nimport time\n\nimport requests\n\nAPI = \"https://api.runpod.io\"\nSESSION = requests.Session()\nSESSION.headers[\"Authorization\"] = f\"Bearer {os.environ['RUNPOD_API_KEY']}\"\n\n# Most preferred GPU first. The loop stops at the first one that places.\nGPU_PREFERENCE = [\n \"NVIDIA GeForce RTX 4090\",\n \"NVIDIA GeForce RTX 5090\",\n \"NVIDIA H100 PCIe\",\n]\nUSABLE = {\"LOW\", \"MEDIUM\", \"HIGH\"} # anything but NONE\n\n\ndef candidates(region):\n \"\"\"(gpu_id, datacenter_id) pairs that the catalog reports as deployable,\n ordered by GPU_PREFERENCE then by descending stock.\"\"\"\n response = SESSION.get(\n f\"{API}/v2/catalog/datacenters\",\n params={\"regions\": region, \"include\": \"GPU_AVAILABILITY\"},\n timeout=30,\n )\n response.raise_for_status()\n\n rank = {\"HIGH\": 0, \"MEDIUM\": 1, \"LOW\": 2}\n found = []\n for datacenter in response.json()[\"dataCenters\"]:\n for gpu in datacenter.get(\"gpuAvailability\", []):\n if gpu[\"id\"] in GPU_PREFERENCE and gpu[\"availability\"] in USABLE:\n found.append((gpu[\"id\"], datacenter[\"id\"], gpu[\"availability\"]))\n\n found.sort(key=lambda c: (GPU_PREFERENCE.index(c[0]), rank[c[2]]))\n return [(gpu_id, dc_id) for gpu_id, dc_id, _ in found]\n\n\ndef create(gpu_id, datacenter_id):\n return SESSION.post(\n f\"{API}/v2/pods\",\n json={\n \"name\": \"inference-worker\",\n \"image\": \"runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404\",\n \"gpu\": {\"id\": gpu_id, \"count\": 1},\n \"dataCenterIds\": [datacenter_id],\n \"disk\": 50,\n },\n timeout=60,\n )\n\n\ndef create_with_backoff(gpu_id, datacenter_id, attempts=5):\n \"\"\"Rate limits and 5xx are not the candidate's fault, so they are\n retried in place rather than moving to the next GPU.\"\"\"\n for attempt in range(attempts):\n response = create(gpu_id, datacenter_id)\n if response.status_code == 429:\n # Retry-After is integer seconds on this API.\n time.sleep(int(response.headers.get(\"Retry-After\", 5)))\n continue\n if response.status_code >= 500:\n time.sleep(2**attempt)\n continue\n return response\n raise RuntimeError(f\"{attempts} transient failures for {gpu_id}; service unhealthy\")\n\n\ndef deploy(region=\"EUROPE\"):\n last_detail = None\n\n for gpu_id, datacenter_id in candidates(region):\n response = create_with_backoff(gpu_id, datacenter_id)\n\n if response.status_code == 201:\n return response.json()\n\n problem = response.json()\n last_detail = problem.get(\"detail\")\n\n if response.status_code == 422:\n # Contract violation — identical on every candidate.\n raise SystemExit(f\"Bad request: {problem.get('errors', last_detail)}\")\n if response.status_code == 402:\n raise SystemExit(f\"Cannot deploy: {last_detail}\")\n if response.status_code in (400, 403):\n # 403: no access to this pool. 400: rule violation, or this\n # GPU/data center could not be placed. Either way, move on.\n continue\n\n response.raise_for_status()\n\n # Every candidate was refused. A rule violation fails the same way on\n # all of them, so the last detail is the useful signal here.\n raise SystemExit(f\"No candidate placed in {region}. Last error: {last_detail}\")\n\n\nif __name__ == \"__main__\":\n pod = deploy()\n print(f\"{pod['id']} placed in {pod['dataCenterId']} on {pod['gpu']['id']}\")\n" } ], "requestBody": { @@ -11125,142 +12937,173 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateAuthenticationAttemptRequest" + "$ref": "#/components/schemas/CreatePodRequest" + }, + "examples": { + "gpuPod": { + "summary": "GPU pod", + "value": { + "name": "pytorch-training", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "gpu": { + "id": "NVIDIA GeForce RTX 4090", + "count": 1, + "minRamPerGpu": 32, + "minVcpuCountPerGpu": 8 + }, + "disk": 50 + } + } } } } }, "responses": { "201": { - "description": "Created. A verification code was emailed.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationAttempt" - } - } - } - }, - "400": { - "description": "The request is malformed or its body could not be read.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "413": { - "description": "The incoming request body exceeds 4096 bytes (4 KiB).", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" } - } - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" - }, - "default": { - "description": "Error", + }, + "description": "Created", "content": { - "application/problem+json": { + "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/Pod" + }, + "examples": { + "pod": { + "summary": "Successful response", + "value": { + "id": "7h9k2m4n6p", + "name": "pytorch-training", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "ports": [ + "8888/http", + "22/tcp" + ], + "env": { + "MODEL_NAME": "llama-3" + }, + "registry": null, + "status": "PROVISIONING", + "actions": [ + "start", + "terminate" + ], + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" + } + }, + "gpu": { + "id": "NVIDIA GeForce RTX 4090", + "count": 1, + "vcpuCount": 16, + "memory": 64 + }, + "cloud": "SECURE", + "dataCenterId": "US-KS-2", + "cudaVersion": "12.8", + "ssh": { + "proxy": { + "host": "ssh.runpod.io", + "port": 22, + "username": "7h9k2m4n6p-64411eb2", + "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" + }, + "direct": null + }, + "template": "9x4m2p7v", + "cost": 0.44, + "locked": false, + "globalNetworking": { + "enabled": false + }, + "runtime": null, + "createdAt": "2026-06-01T12:00:00Z", + "startedAt": null + } + } } } } - } - } - } - }, - "/v2/signup/authentication-attempts/{id}/verify": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "minLength": 1, - "maxLength": 64 }, - "description": "The `attemptId` returned when the attempt started." - } - ], - "post": { - "operationId": "verifyAuthenticationAttempt", - "security": [], - "x-mint": { - "metadata": { - "description": "Exchange an emailed verification code for a new Runpod API key." - } - }, - "summary": "Verify an authentication attempt", - "description": "Exchanges the emailed code and the `codeVerifier` whose hash started the attempt for a new API key, visible and revocable in the console. A wrong code is a `422`, and five wrong codes lock the attempt.", - "tags": [ - "Signup" - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VerifyAuthenticationAttemptRequest" - } - } - } - }, - "responses": { - "200": { - "description": "OK. The attempt is consumed and the key is issued.", + "202": { "headers": { - "Cache-Control": { - "required": true, + "Location": { + "description": "Where to read the queued pod (`GET /v2/queued-pods/{id}`).", "schema": { - "type": "string", - "enum": [ - "no-store" - ] - } + "type": "string" + }, + "example": "/v2/queued-pods/clz1x9k4a0000qw3h8s7d2f1g" + }, + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" } }, + "description": "Queued. The request carried `queue` and the GPU had no capacity\n(or `queue.startsAt` is in the future), so no pod exists yet. The\nbody is the queued pod; poll `Location` until its `status` leaves\n`QUEUED`, or cancel it with `DELETE /v2/queued-pods/{id}`.\n", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthenticationAttemptResult" + "$ref": "#/components/schemas/QueuedPod" + }, + "examples": { + "queuedPod": { + "summary": "Queued for capacity", + "value": { + "id": "clz1x9k4a0000qw3h8s7d2f1g", + "status": "QUEUED", + "podId": null, + "failureReason": null, + "name": "pytorch-training", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "templateId": null, + "gpu": { + "id": "NVIDIA GeForce RTX 4090", + "count": 1 + }, + "cloud": "SECURE", + "dataCenterIds": [ + "EU-RO-1" + ], + "queue": { + "startsAt": null, + "expiresAt": "2026-07-01T12:00:00Z", + "allowedHours": null, + "notifyEmail": null + }, + "createdAt": "2026-06-01T12:00:00Z", + "resolvedAt": null + } + } } } } }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, "403": { - "description": "The account requires SSO or MFA, or belongs to an organization. Sign in through the console instead.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "$ref": "#/components/responses/ForbiddenError" + }, + "400": { + "$ref": "#/components/responses/BadRequestError" }, "404": { - "description": "No usable attempt matches this id and `codeVerifier`. It does not exist, expired, already issued a key, or locked after five wrong codes.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "$ref": "#/components/responses/NotFoundError" }, - "400": { - "description": "The request is malformed or its body could not be read.", + "409": { + "description": "The request carried `queue`, but the account already has as many\nqueued pods as its plan allows. Cancel a queued pod or upgrade the\nplan.\n", "content": { "application/problem+json": { "schema": { @@ -11270,7 +13113,15 @@ } }, "413": { - "description": "The incoming request body exceeds 4096 bytes (4 KiB).", + "description": "The incoming request body, or the request it expands into, exceeds the 102400 byte limit or is rejected as too large.", + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "content": { "application/problem+json": { "schema": { @@ -11286,6 +13137,14 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -11298,139 +13157,32 @@ } } }, - "/v2/signup/authentication-attempts/{id}/resend": { + "/v2/pods/{id}": { "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { - "type": "string", - "minLength": 1, - "maxLength": 64 + "type": "string" }, - "description": "The `attemptId` returned when the attempt started." + "description": "Pod identifier", + "example": "pod_abc123" } ], - "post": { - "operationId": "resendAuthenticationAttempt", - "security": [], - "x-mint": { - "metadata": { - "description": "Email a new verification code for a pending authentication attempt." - } - }, - "summary": "Resend an authentication attempt's code", - "description": "Emails a new verification code and invalidates the previous one. The attempt's `expiresAt` and wrong-code count carry over. Resending before `resendAfter` is a `429` with `Retry-After`.", - "tags": [ - "Signup" - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResendAuthenticationAttemptRequest" - } - } - } - }, - "responses": { - "200": { - "description": "OK. A new code was emailed.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationAttempt" - } - } - } - }, - "404": { - "description": "No usable attempt matches this id and `codeVerifier`. It does not exist, expired, already issued a key, or locked after five wrong codes.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "400": { - "description": "The request is malformed or its body could not be read.", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "413": { - "description": "The incoming request body exceeds 4096 bytes (4 KiB).", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" - }, - "default": { - "description": "Error", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/v2/pods": { "get": { - "operationId": "listPods", + "operationId": "getPod", "x-runpod-scope": "pods:read", - "summary": "List pods", + "summary": "Get a pod", "x-mint": { "metadata": { - "description": "List Pods owned by the authenticated Runpod user, with an option to include member Pods that belong to Runpod Clusters." + "description": "Retrieve a Runpod Pod by ID with its compute, container, storage, networking, lifecycle status, and connection details." } }, - "description": "Returns pods owned by the authenticated user. Cluster member\npods are excluded by default; set `includeClusterPods=true` to include\nthem (each carries a non-null `cluster` membership block).\n\nResults are cursor-paginated newest-first; an omitted `limit`\ndefaults to 1000. The cluster-member exclusion is applied before the\npage is cut, so a page holds `limit` pods whenever that many remain.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", + "description": "Returns a single pod by ID.", "tags": [ "Pods" ], - "parameters": [ - { - "name": "includeClusterPods", - "in": "query", - "required": false, - "description": "Include cluster member pods in the result. Defaults to false.", - "schema": { - "type": "boolean", - "default": false - }, - "example": false - }, - { - "$ref": "#/components/parameters/ResourceFilters" - }, - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimit" - } - ], "responses": { "200": { "headers": { @@ -11439,78 +13191,85 @@ }, "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListPodsResponse" - }, - "examples": { - "pods": { - "summary": "Successful response", - "value": { - "pods": [ - { - "id": "7h9k2m4n6p", - "name": "pytorch-training", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "ports": [ - "8888/http", - "22/tcp" - ], - "env": { - "MODEL_NAME": "llama-3" - }, - "registry": null, - "status": "RUNNING", - "actions": [ - "stop", - "restart", - "terminate" - ], - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "gpu": { - "id": "NVIDIA GeForce RTX 4090", - "count": 1, - "vcpuCount": 16, - "memory": 64 - }, - "cloud": "SECURE", - "dataCenterId": "US-KS-2", - "cudaVersion": "12.8", - "ssh": { - "proxy": { - "host": "ssh.runpod.io", - "port": 22, - "username": "7h9k2m4n6p-64411eb2", - "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" - }, - "direct": null - }, - "template": "9x4m2p7v", - "cost": 0.44, - "locked": false, - "globalNetworking": { - "enabled": false - }, - "runtime": null, - "createdAt": "2026-06-01T12:00:00Z", - "startedAt": "2026-06-01T12:02:00Z" - } + } + }, + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pod" + }, + "examples": { + "pod": { + "summary": "Successful response", + "value": { + "id": "7h9k2m4n6p", + "name": "pytorch-training", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "ports": [ + "8888/http", + "22/tcp" ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } + "env": { + "MODEL_NAME": "llama-3" + }, + "registry": null, + "status": "RUNNING", + "actions": [ + "stop", + "restart", + "terminate" + ], + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" + } + }, + "gpu": { + "id": "NVIDIA GeForce RTX 4090", + "count": 1, + "vcpuCount": 16, + "memory": 64 + }, + "cloud": "SECURE", + "dataCenterId": "US-KS-2", + "cudaVersion": "12.8", + "ssh": { + "proxy": { + "host": "ssh.runpod.io", + "port": 22, + "username": "7h9k2m4n6p-64411eb2", + "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" + }, + "direct": { + "host": "195.26.233.3", + "port": 34446, + "username": "root", + "command": "ssh root@195.26.233.3 -p 34446" + } + }, + "template": "9x4m2p7v", + "cost": 0.44, + "locked": false, + "globalNetworking": { + "enabled": false + }, + "runtime": { + "uptime": 3600, + "ports": [ + { + "private": 22, + "public": 34446, + "type": "tcp", + "ip": "195.26.233.3" + } + ] + }, + "createdAt": "2026-06-01T12:00:00Z", + "startedAt": "2026-06-01T12:02:00Z" } } } @@ -11523,11 +13282,8 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "413": { - "$ref": "#/components/responses/ResponseTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "404": { + "$ref": "#/components/responses/NotFoundError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -11552,46 +13308,74 @@ } } }, - "post": { - "operationId": "createPod", + "patch": { + "operationId": "updatePod", "x-runpod-scope": "pods:write", - "summary": "Create a pod", + "summary": "Update a pod", "x-mint": { "metadata": { - "description": "Create a Runpod Pod with GPU or CPU compute, container or template settings, storage, networking, and deployment constraints." + "description": "Update selected settings on an existing Runpod Pod while preserving omitted fields, with guidance on mutable fields and restart behavior." } }, - "description": "Creates a new pod. `name` is always required; supply exactly one of\n`gpu` or `cpu` to select compute (a GPU or a CPU pod). Container\nsettings come from the body, from a template referenced by\n`templateId` (body fields override the template's), or both; `image`\nis required unless `templateId` is set. See `CreatePodRequest` for\nthe full body.\n\nReturns `201` with the created pod. Provisioning is asynchronous: the\npod starts in `PROVISIONING`, transitions through `STARTING`, and\nreaches `RUNNING` once its container is healthy. Poll `getPod` (or\nwatch the pod's `status`) to observe readiness rather than assuming\nthe pod is running when this call returns.\n\n## Checking what you can deploy\n\nThis endpoint places one specific GPU type. It does not search for\ncapacity, and it does not fall back to a different GPU. To find out\nwhat is deployable before you call it, read the catalog:\n\n- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)\n — GPU types with pricing, per-cloud ceilings, and, with\n `include=AVAILABILITY&product=POD`, current pod stock.\n- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)\n — locations, with `include=GPU_AVAILABILITY` for stock per data\n center.\n\nBoth accept filters that combine, so you can narrow by location and by\ncompute in one request — for example\n`GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY`\nreturns only European data centers, each carrying the GPU types\ncurrently available there.\n\n## Deploying under region and GPU constraints\n\nIf you need a particular GPU in a particular geography, the working\npattern is read-then-create: narrow the catalog to an acceptable\n(data center, GPU) set, then call this endpoint once per candidate in\nyour order of preference until one returns `201`. The runnable sample\nalongside this operation does exactly that.\n\nAvailability can change between the catalog read and the create call,\nso treat the catalog as a way to order your candidates, not as a\nreservation — a create can still fail for capacity on a GPU the\ncatalog just reported as available.\n\nWhich failures are worth retrying:\n\n| Status | Meaning | Do |\n| --- | --- | --- |\n| `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. |\n| `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. |\n| `402` | Insufficient balance. | Stop; no candidate will succeed. |\n| `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. |\n| `429` | Rate limited. | Back off using `Retry-After`, then resume. |\n| `5xx` | Transient server failure. | Retry the same candidate with backoff. |\n\nRequests larger than 102400 bytes receive `413` after authentication\nand rate limiting, before deployment processing. Reduce the serialized\nJSON request body and retry.\n\nThis limit also applies to the deployment request built from your input\nand any referenced template. A small request can therefore receive `413`\nif inherited template settings make the combined request too large.\nReduce environment variables or command values in your request or template\nand retry.\n\n`400` covers both \"your request breaks a rule\" and \"no capacity\",\nbecause capacity exhaustion currently carries no machine-readable code\nof its own — only a human-readable `detail`. A rule violation is\ndeterministic, so it fails identically on every candidate: if *every*\ncandidate returns `400`, read the last `detail` as a problem with the\nrequest rather than as absent capacity.\n", + "description": "Partially updates a pod's configuration. This is a PATCH: only the\nfields present in the body are changed, and omitted fields are left\nuntouched. Use empty values only when you explicitly mean to clear a\nfield (for example, set `registry` to `null` or set `ports` to `[]`).\nSee `UpdatePodRequest` for the full body.\n\nMutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,\n`registry`, `mounts`, `locked`, and `globalNetworking`. Some changes\napply immediately while others (e.g. `globalNetworking`) take effect\non the pod's next start/restart, as noted on the individual fields.\n\nVolumes can be mounted, moved, or unmounted after creation through\n`mounts`, one entry per volume; see `UpdatePodMounts` for the rules.\n\nPods that belong to a Cluster cannot be updated here — manage them\nthrough `/v2/clusters/{id}`.\n\nReturns `200` with the full updated pod.\n", "tags": [ "Pods" ], - "x-codeSamples": [ - { - "lang": "Python", - "label": "Region-constrained deploy loop", - "source": "import os\nimport time\n\nimport requests\n\nAPI = \"https://api.runpod.io\"\nSESSION = requests.Session()\nSESSION.headers[\"Authorization\"] = f\"Bearer {os.environ['RUNPOD_API_KEY']}\"\n\n# Most preferred GPU first. The loop stops at the first one that places.\nGPU_PREFERENCE = [\n \"NVIDIA GeForce RTX 4090\",\n \"NVIDIA GeForce RTX 5090\",\n \"NVIDIA H100 PCIe\",\n]\nUSABLE = {\"LOW\", \"MEDIUM\", \"HIGH\"} # anything but NONE\n\n\ndef candidates(region):\n \"\"\"(gpu_id, datacenter_id) pairs that the catalog reports as deployable,\n ordered by GPU_PREFERENCE then by descending stock.\"\"\"\n response = SESSION.get(\n f\"{API}/v2/catalog/datacenters\",\n params={\"regions\": region, \"include\": \"GPU_AVAILABILITY\"},\n timeout=30,\n )\n response.raise_for_status()\n\n rank = {\"HIGH\": 0, \"MEDIUM\": 1, \"LOW\": 2}\n found = []\n for datacenter in response.json()[\"dataCenters\"]:\n for gpu in datacenter.get(\"gpuAvailability\", []):\n if gpu[\"id\"] in GPU_PREFERENCE and gpu[\"availability\"] in USABLE:\n found.append((gpu[\"id\"], datacenter[\"id\"], gpu[\"availability\"]))\n\n found.sort(key=lambda c: (GPU_PREFERENCE.index(c[0]), rank[c[2]]))\n return [(gpu_id, dc_id) for gpu_id, dc_id, _ in found]\n\n\ndef create(gpu_id, datacenter_id):\n return SESSION.post(\n f\"{API}/v2/pods\",\n json={\n \"name\": \"inference-worker\",\n \"image\": \"runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404\",\n \"gpu\": {\"id\": gpu_id, \"count\": 1},\n \"dataCenterIds\": [datacenter_id],\n \"disk\": 50,\n },\n timeout=60,\n )\n\n\ndef create_with_backoff(gpu_id, datacenter_id, attempts=5):\n \"\"\"Rate limits and 5xx are not the candidate's fault, so they are\n retried in place rather than moving to the next GPU.\"\"\"\n for attempt in range(attempts):\n response = create(gpu_id, datacenter_id)\n if response.status_code == 429:\n # Retry-After is integer seconds on this API.\n time.sleep(int(response.headers.get(\"Retry-After\", 5)))\n continue\n if response.status_code >= 500:\n time.sleep(2**attempt)\n continue\n return response\n raise RuntimeError(f\"{attempts} transient failures for {gpu_id}; service unhealthy\")\n\n\ndef deploy(region=\"EUROPE\"):\n last_detail = None\n\n for gpu_id, datacenter_id in candidates(region):\n response = create_with_backoff(gpu_id, datacenter_id)\n\n if response.status_code == 201:\n return response.json()\n\n problem = response.json()\n last_detail = problem.get(\"detail\")\n\n if response.status_code == 422:\n # Contract violation — identical on every candidate.\n raise SystemExit(f\"Bad request: {problem.get('errors', last_detail)}\")\n if response.status_code == 402:\n raise SystemExit(f\"Cannot deploy: {last_detail}\")\n if response.status_code in (400, 403):\n # 403: no access to this pool. 400: rule violation, or this\n # GPU/data center could not be placed. Either way, move on.\n continue\n\n response.raise_for_status()\n\n # Every candidate was refused. A rule violation fails the same way on\n # all of them, so the last detail is the useful signal here.\n raise SystemExit(f\"No candidate placed in {region}. Last error: {last_detail}\")\n\n\nif __name__ == \"__main__\":\n pod = deploy()\n print(f\"{pod['id']} placed in {pod['dataCenterId']} on {pod['gpu']['id']}\")\n" - } - ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreatePodRequest" + "$ref": "#/components/schemas/UpdatePodRequest" }, "examples": { - "gpuPod": { - "summary": "GPU pod", + "renamePod": { + "summary": "Rename pod", "value": { - "name": "pytorch-training", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "gpu": { - "id": "NVIDIA GeForce RTX 4090", - "count": 1, - "minRamPerGpu": 32, - "minVcpuCountPerGpu": 8 - }, - "disk": 50 + "name": "renamed-training-pod" + } + }, + "mountNetworkVolume": { + "summary": "Mount a network volume", + "value": { + "mounts": { + "network": [ + { + "volumeId": "vol_abc", + "path": "/datasets" + } + ] + } + } + }, + "swapNetworkVolume": { + "summary": "Swap one network volume for another", + "value": { + "mounts": { + "network": [ + { + "volumeId": "vol_xyz", + "remove": true + }, + { + "volumeId": "vol_abc", + "path": "/workspace" + } + ] + } + } + }, + "unmountNetworkVolume": { + "summary": "Unmount a network volume", + "value": { + "mounts": { + "network": [ + { + "volumeId": "vol_xyz", + "remove": true + } + ] + } } } } @@ -11599,7 +13383,7 @@ } }, "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -11608,7 +13392,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Created", + "description": "OK", "content": { "application/json": { "schema": { @@ -11619,7 +13403,7 @@ "summary": "Successful response", "value": { "id": "7h9k2m4n6p", - "name": "pytorch-training", + "name": "renamed-training-pod", "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", "args": "", "disk": 50, @@ -11631,9 +13415,10 @@ "MODEL_NAME": "llama-3" }, "registry": null, - "status": "PROVISIONING", + "status": "RUNNING", "actions": [ - "start", + "stop", + "restart", "terminate" ], "mounts": { @@ -11658,7 +13443,12 @@ "username": "7h9k2m4n6p-64411eb2", "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" }, - "direct": null + "direct": { + "host": "195.26.233.3", + "port": 34446, + "username": "root", + "command": "ssh root@195.26.233.3 -p 34446" + } }, "template": "9x4m2p7v", "cost": 0.44, @@ -11666,64 +13456,19 @@ "globalNetworking": { "enabled": false }, - "runtime": null, - "createdAt": "2026-06-01T12:00:00Z", - "startedAt": null - } - } - } - } - } - }, - "202": { - "headers": { - "Location": { - "description": "Where to read the queued pod (`GET /v2/queued-pods/{id}`).", - "schema": { - "type": "string" - }, - "example": "/v2/queued-pods/clz1x9k4a0000qw3h8s7d2f1g" - }, - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Queued. The request carried `queue` and the GPU had no capacity\n(or `queue.startsAt` is in the future), so no pod exists yet. The\nbody is the queued pod; poll `Location` until its `status` leaves\n`QUEUED`, or cancel it with `DELETE /v2/queued-pods/{id}`.\n", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueuedPod" - }, - "examples": { - "queuedPod": { - "summary": "Queued for capacity", - "value": { - "id": "clz1x9k4a0000qw3h8s7d2f1g", - "status": "QUEUED", - "podId": null, - "failureReason": null, - "name": "pytorch-training", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "templateId": null, - "gpu": { - "id": "NVIDIA GeForce RTX 4090", - "count": 1 - }, - "cloud": "SECURE", - "dataCenterIds": [ - "EU-RO-1" - ], - "queue": { - "startsAt": null, - "expiresAt": "2026-07-01T12:00:00Z", - "allowedHours": null, - "notifyEmail": null + "runtime": { + "uptime": 3600, + "ports": [ + { + "private": 22, + "public": 34446, + "type": "tcp", + "ip": "195.26.233.3" + } + ] }, "createdAt": "2026-06-01T12:00:00Z", - "resolvedAt": null + "startedAt": "2026-06-01T12:02:00Z" } } } @@ -11736,14 +13481,14 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "404": { "$ref": "#/components/responses/NotFoundError" }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "409": { - "description": "The request carried `queue`, but the account already has as many\nqueued pods as its plan allows. Cancel a queued pod or upgrade the\nplan.\n", + "description": "Pod belongs to a cluster and cannot be modified via the pod endpoints.", "content": { "application/problem+json": { "schema": { @@ -11753,7 +13498,15 @@ } }, "413": { - "description": "The incoming request body, or the request it expands into, exceeds the 102400 byte limit or is rejected as too large.", + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -11762,6 +13515,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, + "description": "Error", "content": { "application/problem+json": { "schema": { @@ -11769,9 +13523,52 @@ } } } + } + } + }, + "delete": { + "operationId": "deletePod", + "x-runpod-scope": "pods:write", + "summary": "Terminate a pod", + "x-mint": { + "metadata": { + "description": "Permanently terminate a Runpod Pod, release its compute, and understand what happens to persistent mounts, network volumes, and Cluster members." + } + }, + "description": "Permanently terminates and deletes a pod. This is irreversible:\ncompute is released, any `mounts.persistent` host-local storage is\ndestroyed with it (a `mounts.network` volume is only detached — the\nvolume itself is not deleted), and the pod no longer appears in\n`listPods`.\n\nPods that belong to a Cluster cannot be terminated here — delete the\ncluster via `DELETE /v2/clusters/{id}`.\n", + "tags": [ + "Pods" + ], + "responses": { + "204": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Deleted. Response has no body." }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "409": { + "description": "Pod belongs to a cluster and cannot be terminated via the pod endpoints.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -11797,7 +13594,7 @@ } } }, - "/v2/pods/{id}": { + "/v2/pods/{id}/logs": { "parameters": [ { "name": "id", @@ -11811,106 +13608,71 @@ } ], "get": { - "operationId": "getPod", + "operationId": "getPodLogs", "x-runpod-scope": "pods:read", - "summary": "Get a pod", + "summary": "Stream pod logs", "x-mint": { "metadata": { - "description": "Retrieve a Runpod Pod by ID with its compute, container, storage, networking, lifecycle status, and connection details." + "description": "Stream a Runpod Pod's container and system logs in real time as Server-Sent Events, with resumable reconnects via Last-Event-ID." } }, - "description": "Returns a single pod by ID.", + "description": "Streams pod logs as Server-Sent Events. The `source` query parameter\nselects which log source to include.\n\nThe SSE `data` payload shape is:\n`{ \"source\": \"container\", \"line\": \"...\", \"ts\": \"...\" }`.\nLog-event `id` values are the event `ts` timestamp so\nbrowser/EventSource reconnects can resume with `Last-Event-ID`.\n", "tags": [ "Pods" ], + "parameters": [ + { + "$ref": "#/components/parameters/LogSourceParam" + }, + { + "$ref": "#/components/parameters/LogTail" + }, + { + "$ref": "#/components/parameters/LogSince" + }, + { + "$ref": "#/components/parameters/LogLastEventID" + } + ], "responses": { "200": { + "description": "Pod log event stream", "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" }, "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" + }, + "Cache-Control": { + "schema": { + "type": "string" + }, + "description": "Always `no-cache` for SSE responses." + }, + "Connection": { + "schema": { + "type": "string" + }, + "description": "Always `keep-alive` to hold the SSE stream open." + }, + "X-Accel-Buffering": { + "schema": { + "type": "string" + }, + "description": "Always `no` to disable proxy buffering of the SSE stream." } }, - "description": "OK", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/Pod" + "type": "string", + "description": "Server-Sent Events stream. Each event includes an `id:` line and a JSON `data:` payload with `source`, `line`, and `ts` fields." }, "examples": { - "pod": { + "logLine": { "summary": "Successful response", - "value": { - "id": "7h9k2m4n6p", - "name": "pytorch-training", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "ports": [ - "8888/http", - "22/tcp" - ], - "env": { - "MODEL_NAME": "llama-3" - }, - "registry": null, - "status": "RUNNING", - "actions": [ - "stop", - "restart", - "terminate" - ], - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "gpu": { - "id": "NVIDIA GeForce RTX 4090", - "count": 1, - "vcpuCount": 16, - "memory": 64 - }, - "cloud": "SECURE", - "dataCenterId": "US-KS-2", - "cudaVersion": "12.8", - "ssh": { - "proxy": { - "host": "ssh.runpod.io", - "port": 22, - "username": "7h9k2m4n6p-64411eb2", - "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" - }, - "direct": { - "host": "195.26.233.3", - "port": 34446, - "username": "root", - "command": "ssh root@195.26.233.3 -p 34446" - } - }, - "template": "9x4m2p7v", - "cost": 0.44, - "locked": false, - "globalNetworking": { - "enabled": false - }, - "runtime": { - "uptime": 3600, - "ports": [ - { - "private": 22, - "public": 34446, - "type": "tcp", - "ip": "195.26.233.3" - } - ] - }, - "createdAt": "2026-06-01T12:00:00Z", - "startedAt": "2026-06-01T12:02:00Z" - } + "value": "id: 2026-06-01T12:02:03Z/000000000001\ndata: {\"ts\":\"2026-06-01T12:02:03Z\",\"source\":\"container\",\"line\":\"Model loaded.\"}\n" } } } @@ -11947,17 +13709,30 @@ } } } - }, - "patch": { - "operationId": "updatePod", + } + }, + "/v2/pods/{id}/action": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "example": "pod_abc123" + } + ], + "post": { + "operationId": "podAction", "x-runpod-scope": "pods:write", - "summary": "Update a pod", + "summary": "Trigger a pod state transition", "x-mint": { "metadata": { - "description": "Update selected settings on an existing Runpod Pod while preserving omitted fields, with guidance on mutable fields and restart behavior." + "description": "Start, stop, or restart a Runpod Pod by sending a supported state transition action and retrieving the Pod's updated lifecycle state." } }, - "description": "Partially updates a pod's configuration. This is a PATCH: only the\nfields present in the body are changed, and omitted fields are left\nuntouched. Use empty values only when you explicitly mean to clear a\nfield (for example, set `registry` to `null` or set `ports` to `[]`).\nSee `UpdatePodRequest` for the full body.\n\nMutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,\n`registry`, `mounts`, `locked`, and `globalNetworking`. Some changes\napply immediately while others (e.g. `globalNetworking`) take effect\non the pod's next start/restart, as noted on the individual fields.\n\nVolumes can be mounted, moved, or unmounted after creation through\n`mounts`, one entry per volume; see `UpdatePodMounts` for the rules.\n\nPods that belong to a Cluster cannot be updated here — manage them\nthrough `/v2/clusters/{id}`.\n\nReturns `200` with the full updated pod.\n", + "description": "Triggers a state transition on a pod. Send a JSON body with a single\n`action` field, e.g. `{ \"action\": \"stop\" }`.\n\nValid actions:\n- `start` — boot a stopped pod (`EXITED` or `ERROR`) back toward\n `RUNNING`.\n- `stop` — stop a running or provisioning pod, releasing GPU/CPU\n compute while keeping its disk. The pod moves to `EXITED`.\n- `restart` — restart a `RUNNING` pod's container in place.\n- `terminate` — permanently delete the pod and release its resources\n (equivalent to `deletePod`).\n\nWhich actions are valid depends on the pod's current status, and the\ncurrently permitted set is published in the pod's `actions` field:\n`RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR`\nallow `start`/`terminate`; `PROVISIONING` and `STARTING` allow\n`stop`/`terminate`.\n\n`start`, `stop`, and `restart` return `200` with the updated pod.\n`terminate` returns `204` with no body. Requesting an action that is\nnot valid for the pod's current status returns `409`.\n", "tags": [ "Pods" ], @@ -11966,56 +13741,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdatePodRequest" - }, - "examples": { - "renamePod": { - "summary": "Rename pod", - "value": { - "name": "renamed-training-pod" - } - }, - "mountNetworkVolume": { - "summary": "Mount a network volume", - "value": { - "mounts": { - "network": [ - { - "volumeId": "vol_abc", - "path": "/datasets" - } - ] - } - } - }, - "swapNetworkVolume": { - "summary": "Swap one network volume for another", - "value": { - "mounts": { - "network": [ - { - "volumeId": "vol_xyz", - "remove": true - }, - { - "volumeId": "vol_abc", - "path": "/workspace" - } - ] - } - } - }, - "unmountNetworkVolume": { - "summary": "Unmount a network volume", - "value": { - "mounts": { - "network": [ - { - "volumeId": "vol_xyz", - "remove": true - } - ] - } + "$ref": "#/components/schemas/PodActionRequest" + }, + "examples": { + "startPod": { + "summary": "Start pod", + "value": { + "action": "start" } } } @@ -12032,7 +13764,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", + "description": "Action applied — returns updated pod", "content": { "application/json": { "schema": { @@ -12043,7 +13775,7 @@ "summary": "Successful response", "value": { "id": "7h9k2m4n6p", - "name": "renamed-training-pod", + "name": "pytorch-training", "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", "args": "", "disk": 50, @@ -12115,6 +13847,17 @@ } } }, + "204": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Only returned when `action=terminate`; response has no body." + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -12124,11 +13867,16 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "409": { - "description": "Pod belongs to a cluster and cannot be modified via the pod endpoints.", + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Action not valid for current pod status", "content": { "application/problem+json": { "schema": { @@ -12137,6 +13885,9 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -12165,22 +13916,80 @@ } } } - }, - "delete": { - "operationId": "deletePod", + } + }, + "/v2/pods/{id}/exec": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Pod identifier", + "example": "pod_abc123" + } + ], + "post": { + "operationId": "execPod", "x-runpod-scope": "pods:write", - "summary": "Terminate a pod", + "summary": "Run a command in a pod", "x-mint": { "metadata": { - "description": "Permanently terminate a Runpod Pod, release its compute, and understand what happens to persistent mounts, network volumes, and Cluster members." + "description": "Run one command inside a running Runpod Pod's container and get its stdout, stderr, and exit code back, with no SSH setup." } }, - "description": "Permanently terminates and deletes a pod. This is irreversible:\ncompute is released, any `mounts.persistent` host-local storage is\ndestroyed with it (a `mounts.network` volume is only detached — the\nvolume itself is not deleted), and the pod no longer appears in\n`listPods`.\n\nPods that belong to a Cluster cannot be terminated here — delete the\ncluster via `DELETE /v2/clusters/{id}`.\n", + "description": "Runs one command inside the pod's container and returns its stdout,\nstderr and exit code once it finishes. No SSH key, public IP or exposed\nport is needed, and it works with any image.\n\n`command` is an argv array, run directly and never through a shell. For\npipes, redirects or globbing pass `[\"sh\", \"-c\", \"...\"]`.\n\nA command that exits non-zero is a result, not an error: the call\nanswers `200` with `exitCode` set. A command still running after\n`timeoutSeconds` (1-25, default 20) answers `200` with\n`timedOut: true` and a null `exitCode`. `timedOut` means the call\nstopped waiting, not that the command was stopped: it may keep\nrunning in the container.\n\n`stdout` and `stderr` are each capped at 1 MiB. Output past the cap is\ncut and `truncated` is `true`.\n\nThe pod must be running with its container up, otherwise this answers\n`409`; while the container is still starting, the `409` carries\n`Retry-After`. A pod whose machine has not been updated for exec yet\nanswers `503` with `Retry-After`.\n\nA caller whose team or organization role lacks the Terminal permission\ngets `403`.\n", "tags": [ "Pods" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PodExecRequest" + }, + "examples": { + "gpuQuery": { + "summary": "Query the GPU", + "value": { + "command": [ + "nvidia-smi", + "--query-gpu=name,memory.used", + "--format=csv" + ], + "timeoutSeconds": 10 + } + }, + "failingInstall": { + "summary": "Shell command in a working directory", + "value": { + "command": [ + "sh", + "-c", + "pip install -q nosuchpackage" + ], + "cwd": "/workspace" + } + }, + "timeout": { + "summary": "Command that outlives its timeout", + "value": { + "command": [ + "sleep", + "120" + ], + "timeoutSeconds": 5 + } + } + } + } + } + }, "responses": { - "204": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -12189,7 +13998,52 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Deleted. Response has no body." + "description": "The command finished or the call stopped waiting for it. A non-zero `exitCode` is a result, not an error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PodExecResult" + }, + "examples": { + "gpuQuery": { + "summary": "Command succeeded", + "value": { + "stdout": "name, memory.used [MiB]\nNVIDIA H100 80GB HBM3, 0 MiB\n", + "stderr": "", + "exitCode": 0, + "timedOut": false, + "truncated": false, + "durationMs": 412 + } + }, + "failingInstall": { + "summary": "Command exited non-zero", + "value": { + "stdout": "", + "stderr": "ERROR: No matching distribution found for nosuchpackage\n", + "exitCode": 1, + "timedOut": false, + "truncated": false, + "durationMs": 2310 + } + }, + "timeout": { + "summary": "Call stopped waiting", + "value": { + "stdout": "", + "stderr": "", + "exitCode": null, + "timedOut": true, + "truncated": false, + "durationMs": 5003 + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequestError" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -12201,7 +14055,22 @@ "$ref": "#/components/responses/NotFoundError" }, "409": { - "description": "Pod belongs to a cluster and cannot be terminated via the pod endpoints.", + "headers": { + "Retry-After": { + "description": "Seconds to wait before retrying. Sent only while the pod's container is starting.", + "schema": { + "type": "integer" + }, + "example": 5 + }, + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "The pod is not running, or its container has not started yet. A\ncontainer that is starting answers with `Retry-After`.\n", "content": { "application/problem+json": { "schema": { @@ -12210,10 +14079,16 @@ } } }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, - "default": { + "502": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -12222,7 +14097,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Error", + "description": "The call did not complete. When the pod could not be looked up, or\nits machine or the exec service could not be reached, the command\ndid not start: retry the call. When the command was sent but no\nusable answer came back, it may still be running: check before you\nretry. When the result could not be read, the command ran.\n", "content": { "application/problem+json": { "schema": { @@ -12230,89 +14105,145 @@ } } } - } - } - } - }, - "/v2/pods/{id}/logs": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" }, - "description": "Pod identifier", - "example": "pod_abc123" + "503": { + "headers": { + "Retry-After": { + "description": "Seconds to wait before retrying.", + "schema": { + "type": "integer" + }, + "example": 30 + }, + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Command execution is not available for this pod right now: its\nmachine has not been updated for exec, execution is busy, or it is\ntemporarily unavailable. The pod itself is unaffected; retry after\n`Retry-After`.\n", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "504": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "The pod's machine, or the exec service in front of it, did not\nanswer in time. The command may still be running: check before you\nretry.\n", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ], + } + }, + "/v2/queued-pods": { "get": { - "operationId": "getPodLogs", + "operationId": "listQueuedPods", "x-runpod-scope": "pods:read", - "summary": "Stream pod logs", + "summary": "List queued pods", "x-mint": { "metadata": { - "description": "Stream a Runpod Pod's container and system logs in real time as Server-Sent Events, with resumable reconnects via Last-Event-ID." + "description": "List the Runpod Pods queued for deploy-when-available, with each one's status, the pod it created, and why any failed." } }, - "description": "Streams pod logs as Server-Sent Events. The `source` query parameter\nselects which log source to include.\n\nThe SSE `data` payload shape is:\n`{ \"source\": \"container\", \"line\": \"...\", \"ts\": \"...\" }`.\nLog-event `id` values are the event `ts` timestamp so\nbrowser/EventSource reconnects can resume with `Last-Event-ID`.\n", + "description": "Returns the caller's queued pods, cursor-paginated newest-first; an\nomitted `limit` defaults to 1000. Every queued pod is listed whatever\nits `status`, so the outcome of a queued create can be read after the\nfact. Follow `pagination.nextCursor` until `hasNextPage` is false.\n", "tags": [ "Pods" ], "parameters": [ { - "$ref": "#/components/parameters/LogSourceParam" - }, - { - "$ref": "#/components/parameters/LogTail" - }, - { - "$ref": "#/components/parameters/LogSince" + "$ref": "#/components/parameters/PaginationCursor" }, { - "$ref": "#/components/parameters/LogLastEventID" + "$ref": "#/components/parameters/PaginationLimit" } ], "responses": { "200": { - "description": "Pod log event stream", "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" }, "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" - }, - "Cache-Control": { - "schema": { - "type": "string" - }, - "description": "Always `no-cache` for SSE responses." - }, - "Connection": { - "schema": { - "type": "string" - }, - "description": "Always `keep-alive` to hold the SSE stream open." - }, - "X-Accel-Buffering": { - "schema": { - "type": "string" - }, - "description": "Always `no` to disable proxy buffering of the SSE stream." } }, + "description": "OK", "content": { - "text/event-stream": { + "application/json": { "schema": { - "type": "string", - "description": "Server-Sent Events stream. Each event includes an `id:` line and a JSON `data:` payload with `source`, `line`, and `ts` fields." + "$ref": "#/components/schemas/ListQueuedPodsResponse" }, "examples": { - "logLine": { + "queuedPods": { "summary": "Successful response", - "value": "id: 2026-06-01T12:02:03Z/000000000001\ndata: {\"ts\":\"2026-06-01T12:02:03Z\",\"source\":\"container\",\"line\":\"Model loaded.\"}\n" + "value": { + "queuedPods": [ + { + "id": "clz1x9k4a0000qw3h8s7d2f1g", + "status": "DEPLOYED", + "podId": "7h9k2m4n6p", + "failureReason": null, + "name": "pytorch-training", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "templateId": null, + "gpu": { + "id": "NVIDIA GeForce RTX 4090", + "count": 1 + }, + "cloud": "SECURE", + "dataCenterIds": [ + "EU-RO-1" + ], + "queue": { + "startsAt": null, + "expiresAt": "2026-07-01T12:00:00Z", + "allowedHours": null, + "notifyEmail": null + }, + "createdAt": "2026-06-01T12:00:00Z", + "resolvedAt": "2026-06-01T13:05:00Z" + } + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } + } } } } @@ -12324,8 +14255,11 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -12351,7 +14285,7 @@ } } }, - "/v2/pods/{id}/action": { + "/v2/queued-pods/{id}": { "parameters": [ { "name": "id", @@ -12360,40 +14294,23 @@ "schema": { "type": "string" }, - "example": "pod_abc123" + "description": "Queued pod identifier", + "example": "clz1x9k4a0000qw3h8s7d2f1g" } ], - "post": { - "operationId": "podAction", - "x-runpod-scope": "pods:write", - "summary": "Trigger a pod state transition", + "get": { + "operationId": "getQueuedPod", + "x-runpod-scope": "pods:read", + "summary": "Get a queued pod", "x-mint": { "metadata": { - "description": "Start, stop, or restart a Runpod Pod by sending a supported state transition action and retrieving the Pod's updated lifecycle state." + "description": "Retrieve a queued Runpod Pod by ID to see whether it is still waiting for capacity, which pod it created, or why it failed." } }, - "description": "Triggers a state transition on a pod. Send a JSON body with a single\n`action` field, e.g. `{ \"action\": \"stop\" }`.\n\nValid actions:\n- `start` — boot a stopped pod (`EXITED` or `ERROR`) back toward\n `RUNNING`.\n- `stop` — stop a running or provisioning pod, releasing GPU/CPU\n compute while keeping its disk. The pod moves to `EXITED`.\n- `restart` — restart a `RUNNING` pod's container in place.\n- `terminate` — permanently delete the pod and release its resources\n (equivalent to `deletePod`).\n\nWhich actions are valid depends on the pod's current status, and the\ncurrently permitted set is published in the pod's `actions` field:\n`RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR`\nallow `start`/`terminate`; `PROVISIONING` and `STARTING` allow\n`stop`/`terminate`.\n\n`start`, `stop`, and `restart` return `200` with the updated pod.\n`terminate` returns `204` with no body. Requesting an action that is\nnot valid for the pod's current status returns `409`.\n", + "description": "Returns a single queued pod by ID. Poll it after a `202` from\n`createPod`: `status` moves from `QUEUED` to `DEPLOYED` (with\n`podId`), `FAILED` (with `failureReason`), `EXPIRED`, or `CANCELLED`.\n", "tags": [ "Pods" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PodActionRequest" - }, - "examples": { - "startPod": { - "summary": "Start pod", - "value": { - "action": "start" - } - } - } - } - } - }, "responses": { "200": { "headers": { @@ -12404,89 +14321,102 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Action applied — returns updated pod", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Pod" + "$ref": "#/components/schemas/QueuedPod" }, "examples": { - "pod": { - "summary": "Successful response", + "queuedPod": { + "summary": "Still waiting", "value": { - "id": "7h9k2m4n6p", + "id": "clz1x9k4a0000qw3h8s7d2f1g", + "status": "QUEUED", + "podId": null, + "failureReason": null, "name": "pytorch-training", "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "ports": [ - "8888/http", - "22/tcp" - ], - "env": { - "MODEL_NAME": "llama-3" - }, - "registry": null, - "status": "RUNNING", - "actions": [ - "stop", - "restart", - "terminate" - ], - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, + "templateId": null, "gpu": { "id": "NVIDIA GeForce RTX 4090", - "count": 1, - "vcpuCount": 16, - "memory": 64 + "count": 1 }, "cloud": "SECURE", - "dataCenterId": "US-KS-2", - "cudaVersion": "12.8", - "ssh": { - "proxy": { - "host": "ssh.runpod.io", - "port": 22, - "username": "7h9k2m4n6p-64411eb2", - "command": "ssh 7h9k2m4n6p-64411eb2@ssh.runpod.io" + "dataCenterIds": [ + "EU-RO-1" + ], + "queue": { + "startsAt": null, + "expiresAt": "2026-07-01T12:00:00Z", + "allowedHours": { + "monday": [ + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16 + ] }, - "direct": { - "host": "195.26.233.3", - "port": 34446, - "username": "root", - "command": "ssh root@195.26.233.3 -p 34446" - } - }, - "template": "9x4m2p7v", - "cost": 0.44, - "locked": false, - "globalNetworking": { - "enabled": false - }, - "runtime": { - "uptime": 3600, - "ports": [ - { - "private": 22, - "public": 34446, - "type": "tcp", - "ip": "195.26.233.3" - } - ] + "notifyEmail": null }, "createdAt": "2026-06-01T12:00:00Z", - "startedAt": "2026-06-01T12:02:00Z" + "resolvedAt": null } } } } } }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "operationId": "deleteQueuedPod", + "x-runpod-scope": "pods:write", + "summary": "Cancel a queued pod", + "x-mint": { + "metadata": { + "description": "Cancel a queued Runpod Pod so it is no longer deployed when capacity opens." + } + }, + "description": "Cancels a queued pod: it leaves the queue and is never deployed. A\npod it already created is untouched; terminate that with\n`DELETE /v2/pods/{id}`. Cancelling a queued pod that already\ndeployed, failed or expired changes nothing and still answers `204`.\n", + "tags": [ + "Pods" + ], + "responses": { "204": { "headers": { "RateLimit": { @@ -12496,7 +14426,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Only returned when `action=terminate`; response has no body." + "description": "Cancelled. Response has no body." }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -12507,7 +14437,10 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, - "409": { + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -12516,7 +14449,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Action not valid for current pod status", + "description": "Error", "content": { "application/problem+json": { "schema": { @@ -12524,12 +14457,54 @@ } } } + } + } + } + }, + "/v2/clusters": { + "get": { + "operationId": "listClusters", + "x-runpod-scope": "clusters:read", + "summary": "List clusters", + "x-mint": { + "metadata": { + "description": "List all Runpod Clusters owned by the authenticated user, including each Cluster's configuration, status, and aggregate Pod counts." + } + }, + "description": "Returns clusters owned by the authenticated user, cursor-paginated\nnewest-first; an omitted `limit` defaults to 1000. Follow\n`pagination.nextCursor` until `hasNextPage` is false.\n", + "tags": [ + "Clusters" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceFilters" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListClustersResponse" + } + } + } }, - "400": { - "$ref": "#/components/responses/BadRequestError" + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" }, "413": { - "$ref": "#/components/responses/RequestTooLargeError" + "$ref": "#/components/responses/ResponseTooLargeError" }, "422": { "$ref": "#/components/responses/UnprocessableEntityError" @@ -12538,14 +14513,6 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -12556,128 +14523,37 @@ } } } - } - }, - "/v2/pods/{id}/exec": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "Pod identifier", - "example": "pod_abc123" - } - ], + }, "post": { - "operationId": "execPod", - "x-runpod-scope": "pods:write", - "summary": "Run a command in a pod", + "operationId": "createCluster", + "x-runpod-scope": "clusters:write", + "summary": "Create a cluster", "x-mint": { "metadata": { - "description": "Run one command inside a running Runpod Pod's container and get its stdout, stderr, and exit code back, with no SSH setup." + "description": "Create a multi-node Runpod Cluster with a consistent compute shape and container configuration across every member Pod." } }, - "description": "Runs one command inside the pod's container and returns its stdout,\nstderr and exit code once it finishes. No SSH key, public IP or exposed\nport is needed, and it works with any image.\n\n`command` is an argv array, run directly and never through a shell. For\npipes, redirects or globbing pass `[\"sh\", \"-c\", \"...\"]`.\n\nA command that exits non-zero is a result, not an error: the call\nanswers `200` with `exitCode` set. A command still running after\n`timeoutSeconds` (1-25, default 20) answers `200` with\n`timedOut: true` and a null `exitCode`. `timedOut` means the call\nstopped waiting, not that the command was stopped: it may keep\nrunning in the container.\n\n`stdout` and `stderr` are each capped at 1 MiB. Output past the cap is\ncut and `truncated` is `true`.\n\nThe pod must be running with its container up, otherwise this answers\n`409`; while the container is still starting, the `409` carries\n`Retry-After`. A pod whose machine has not been updated for exec yet\nanswers `503` with `Retry-After`.\n\nA caller whose team or organization role lacks the Terminal permission\ngets `403`.\n", + "description": "Creates a multi-node cluster. `compute` sets the homogeneous\npod shape; the container configuration applies to every pod and can be spread\nfrom a template response.\n", "tags": [ - "Pods" + "Clusters" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PodExecRequest" - }, - "examples": { - "gpuQuery": { - "summary": "Query the GPU", - "value": { - "command": [ - "nvidia-smi", - "--query-gpu=name,memory.used", - "--format=csv" - ], - "timeoutSeconds": 10 - } - }, - "failingInstall": { - "summary": "Shell command in a working directory", - "value": { - "command": [ - "sh", - "-c", - "pip install -q nosuchpackage" - ], - "cwd": "/workspace" - } - }, - "timeout": { - "summary": "Command that outlives its timeout", - "value": { - "command": [ - "sleep", - "120" - ], - "timeoutSeconds": 5 - } - } + "$ref": "#/components/schemas/CreateClusterRequest" } } } }, "responses": { - "200": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "The command finished or the call stopped waiting for it. A non-zero `exitCode` is a result, not an error.", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PodExecResult" - }, - "examples": { - "gpuQuery": { - "summary": "Command succeeded", - "value": { - "stdout": "name, memory.used [MiB]\nNVIDIA H100 80GB HBM3, 0 MiB\n", - "stderr": "", - "exitCode": 0, - "timedOut": false, - "truncated": false, - "durationMs": 412 - } - }, - "failingInstall": { - "summary": "Command exited non-zero", - "value": { - "stdout": "", - "stderr": "ERROR: No matching distribution found for nosuchpackage\n", - "exitCode": 1, - "timedOut": false, - "truncated": false, - "durationMs": 2310 - } - }, - "timeout": { - "summary": "Call stopped waiting", - "value": { - "stdout": "", - "stderr": "", - "exitCode": null, - "timedOut": true, - "truncated": false, - "durationMs": 5003 - } - } + "$ref": "#/components/schemas/Cluster" } } } @@ -12691,34 +14567,6 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "409": { - "headers": { - "Retry-After": { - "description": "Seconds to wait before retrying. Sent only while the pod's container is starting.", - "schema": { - "type": "integer" - }, - "example": 5 - }, - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "The pod is not running, or its container has not started yet. A\ncontainer that is starting answers with `Retry-After`.\n", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -12728,41 +14576,58 @@ "429": { "$ref": "#/components/responses/TooManyRequestsError" }, - "502": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" + "default": { + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "description": "The call did not complete. When the pod could not be looked up, or\nits machine or the exec service could not be reached, the command\ndid not start: retry the call. When the command was sent but no\nusable answer came back, it may still be running: check before you\nretry. When the result could not be read, the command ran.\n", + } + } + } + } + }, + "/v2/clusters/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Cluster identifier", + "example": "cluster_abc123" + } + ], + "get": { + "operationId": "getCluster", + "x-runpod-scope": "clusters:read", + "summary": "Get a cluster", + "x-mint": { + "metadata": { + "description": "Retrieve a Runpod Cluster by ID with its configuration, status, and an aggregate summary of member Pods by status." + } + }, + "description": "Returns a single cluster by ID. The pods field is an aggregate summary (total + count by status); fetch the member pods themselves from /v2/clusters/{id}/pods.", + "tags": [ + "Clusters" + ], + "responses": { + "200": { + "description": "OK", "content": { - "application/problem+json": { + "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/Cluster" } } } }, - "503": { - "headers": { - "Retry-After": { - "description": "Seconds to wait before retrying.", - "schema": { - "type": "integer" - }, - "example": 30 - }, - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Command execution is not available for this pod right now: its\nmachine has not been updated for exec, execution is busy, or it is\ntemporarily unavailable. The pod itself is unaffected; retry after\n`Retry-After`.\n", + "404": { + "description": "Cluster not found", "content": { "application/problem+json": { "schema": { @@ -12771,33 +14636,16 @@ } } }, - "504": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "The pod's machine, or the exec service in front of it, did not\nanswer in time. The command may still be running: check before you\nretry.\n", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -12808,87 +14656,54 @@ } } } - } - }, - "/v2/queued-pods": { - "get": { - "operationId": "listQueuedPods", - "x-runpod-scope": "pods:read", - "summary": "List queued pods", + }, + "patch": { + "operationId": "updateCluster", + "x-runpod-scope": "clusters:write", + "summary": "Rename a cluster", "x-mint": { "metadata": { - "description": "List the Runpod Pods queued for deploy-when-available, with each one's status, the pod it created, and why any failed." + "description": "Rename a Runpod Cluster. Compute shape, type, and container configuration are fixed at creation and cannot be changed." } }, - "description": "Returns the caller's queued pods, cursor-paginated newest-first; an\nomitted `limit` defaults to 1000. Every queued pod is listed whatever\nits `status`, so the outcome of a queued create can be read after the\nfact. Follow `pagination.nextCursor` until `hasNextPage` is false.\n", + "description": "Renames a cluster. This endpoint only changes the cluster\nname — compute shape, type, and container configuration are fixed at\ncreation and cannot be updated.\n", "tags": [ - "Pods" + "Clusters" ], - "parameters": [ - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimit" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateClusterRequest" + } + } } - ], + }, "responses": { "200": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListQueuedPodsResponse" - }, - "examples": { - "queuedPods": { - "summary": "Successful response", - "value": { - "queuedPods": [ - { - "id": "clz1x9k4a0000qw3h8s7d2f1g", - "status": "DEPLOYED", - "podId": "7h9k2m4n6p", - "failureReason": null, - "name": "pytorch-training", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "templateId": null, - "gpu": { - "id": "NVIDIA GeForce RTX 4090", - "count": 1 - }, - "cloud": "SECURE", - "dataCenterIds": [ - "EU-RO-1" - ], - "queue": { - "startsAt": null, - "expiresAt": "2026-07-01T12:00:00Z", - "allowedHours": null, - "notifyEmail": null - }, - "createdAt": "2026-06-01T12:00:00Z", - "resolvedAt": "2026-06-01T13:05:00Z" - } - ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } - } - } + "$ref": "#/components/schemas/Cluster" + } + } + } + }, + "404": { + "description": "Cluster not found", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -12896,7 +14711,7 @@ "$ref": "#/components/responses/ForbiddenError" }, "413": { - "$ref": "#/components/responses/ResponseTooLargeError" + "$ref": "#/components/responses/RequestTooLargeError" }, "422": { "$ref": "#/components/responses/UnprocessableEntityError" @@ -12905,14 +14720,6 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -12923,90 +14730,30 @@ } } } - } - }, - "/v2/queued-pods/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "Queued pod identifier", - "example": "clz1x9k4a0000qw3h8s7d2f1g" - } - ], - "get": { - "operationId": "getQueuedPod", - "x-runpod-scope": "pods:read", - "summary": "Get a queued pod", - "x-mint": { - "metadata": { - "description": "Retrieve a queued Runpod Pod by ID to see whether it is still waiting for capacity, which pod it created, or why it failed." - } - }, - "description": "Returns a single queued pod by ID. Poll it after a `202` from\n`createPod`: `status` moves from `QUEUED` to `DEPLOYED` (with\n`podId`), `FAILED` (with `failureReason`), `EXPIRED`, or `CANCELLED`.\n", - "tags": [ - "Pods" - ], - "responses": { - "200": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueuedPod" - }, - "examples": { - "queuedPod": { - "summary": "Still waiting", - "value": { - "id": "clz1x9k4a0000qw3h8s7d2f1g", - "status": "QUEUED", - "podId": null, - "failureReason": null, - "name": "pytorch-training", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "templateId": null, - "gpu": { - "id": "NVIDIA GeForce RTX 4090", - "count": 1 - }, - "cloud": "SECURE", - "dataCenterIds": [ - "EU-RO-1" - ], - "queue": { - "startsAt": null, - "expiresAt": "2026-07-01T12:00:00Z", - "allowedHours": { - "monday": [ - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16 - ] - }, - "notifyEmail": null - }, - "createdAt": "2026-06-01T12:00:00Z", - "resolvedAt": null - } - } + }, + "delete": { + "operationId": "deleteCluster", + "x-runpod-scope": "clusters:write", + "summary": "Delete a cluster", + "x-mint": { + "metadata": { + "description": "Permanently delete a Runpod Cluster and terminate all of its member Pods, with the response confirming the deleted Cluster." + } + }, + "description": "Permanently deletes a cluster and terminates all of its member pods.", + "tags": [ + "Clusters" + ], + "responses": { + "204": { + "description": "Deleted" + }, + "404": { + "description": "Cluster not found", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -13017,21 +14764,10 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -13042,31 +14778,54 @@ } } } - }, - "delete": { - "operationId": "deleteQueuedPod", - "x-runpod-scope": "pods:write", - "summary": "Cancel a queued pod", + } + }, + "/v2/clusters/{id}/pods": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Cluster identifier", + "example": "cluster_abc123" + } + ], + "get": { + "operationId": "listClusterPods", + "x-runpod-scope": "clusters:read", + "summary": "List a cluster's pods", "x-mint": { "metadata": { - "description": "Cancel a queued Runpod Pod so it is no longer deployed when capacity opens." + "description": "List every Pod in a Runpod Cluster with each member's complete configuration and status, beyond the aggregate counts in the Cluster summary." } }, - "description": "Cancels a queued pod: it leaves the queue and is never deployed. A\npod it already created is untouched; terminate that with\n`DELETE /v2/pods/{id}`. Cancelling a queued pod that already\ndeployed, failed or expired changes nothing and still answers `204`.\n", + "description": "Returns the full member pods of a cluster. The cluster summary (`GET /v2/clusters/{id}`) carries only aggregate pod counts; this endpoint returns each member as a complete Pod object.", "tags": [ - "Pods" + "Clusters" ], "responses": { - "204": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PodList" + } } - }, - "description": "Cancelled. Response has no body." + } + }, + "404": { + "description": "Cluster not found", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -13074,21 +14833,10 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, "description": "Error", "content": { "application/problem+json": { @@ -13101,19 +14849,19 @@ } } }, - "/v2/clusters": { + "/v2/serverless": { "get": { - "operationId": "listClusters", - "x-runpod-scope": "clusters:read", - "summary": "List clusters", + "operationId": "listEndpoints", + "x-runpod-scope": "serverless:read", + "summary": "List serverless endpoints", "x-mint": { "metadata": { - "description": "List all Runpod Clusters owned by the authenticated user, including each Cluster's configuration, status, and aggregate Pod counts." + "description": "List all Runpod Serverless endpoints owned by the authenticated user, including compute, worker, scaling, and deployment settings." } }, - "description": "Returns clusters owned by the authenticated user, cursor-paginated\nnewest-first; an omitted `limit` defaults to 1000. Follow\n`pagination.nextCursor` until `hasNextPage` is false.\n", + "description": "Returns serverless endpoints owned by the authenticated user,\ncursor-paginated newest-first; an omitted `limit` defaults to 1000.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", "tags": [ - "Clusters" + "Serverless" ], "parameters": [ { @@ -13128,11 +14876,92 @@ ], "responses": { "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListClustersResponse" + "$ref": "#/components/schemas/ListEndpointsResponse" + }, + "examples": { + "endpoints": { + "summary": "Successful response", + "value": { + "endpoints": [ + { + "id": "4m7x2k9q", + "name": "image-generator", + "type": "QUEUE", + "requestUrls": { + "run": "https://api.runpod.ai/v2/4m7x2k9q/run", + "runSync": "https://api.runpod.ai/v2/4m7x2k9q/runsync", + "status": "https://api.runpod.ai/v2/4m7x2k9q/status/{job_id}", + "stream": "https://api.runpod.ai/v2/4m7x2k9q/stream/{job_id}", + "cancel": "https://api.runpod.ai/v2/4m7x2k9q/cancel/{job_id}", + "retry": "https://api.runpod.ai/v2/4m7x2k9q/retry/{job_id}", + "purgeQueue": "https://api.runpod.ai/v2/4m7x2k9q/purge-queue", + "health": "https://api.runpod.ai/v2/4m7x2k9q/health" + }, + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 20, + "ports": [ + "8000/http" + ], + "env": { + "MODEL_NAME": "sdxl" + }, + "registry": null, + "gpu": { + "pools": [ + "ADA_24" + ], + "count": 1, + "allowedCudaVersions": [], + "minCudaVersion": null + }, + "workers": { + "min": 0, + "max": 5, + "idleTimeout": 5, + "initTimeout": null + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 4 + }, + "dataCenterIds": [ + "US-KS-2" + ], + "networkVolumes": [ + "2q9m7x4c" + ], + "mounts": { + "network": [ + { + "volumeId": "2q9m7x4c" + } + ], + "global": [] + }, + "timeout": 300000, + "flashboot": "OFF", + "createdAt": "2026-06-01T12:00:00Z" + } + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } + } + } } } } @@ -13153,6 +14982,14 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -13165,48 +15002,236 @@ } }, "post": { - "operationId": "createCluster", - "x-runpod-scope": "clusters:write", - "summary": "Create a cluster", + "operationId": "createEndpoint", + "x-runpod-scope": "serverless:write", + "summary": "Create a serverless endpoint", "x-mint": { "metadata": { - "description": "Create a multi-node Runpod Cluster with a consistent compute shape and container configuration across every member Pod." + "description": "Create a Runpod Serverless endpoint with GPU or CPU compute, container or template settings, worker limits, and scaling policies." } }, - "description": "Creates a multi-node cluster. `compute` sets the homogeneous\npod shape; the container configuration applies to every pod and can be spread\nfrom a template response.\n", + "description": "Creates a serverless endpoint. Callers specify exactly one of `gpu` or\n`cpu`; neither or both returns 400. Container settings come from the\nbody, from a serverless template referenced by `templateId` (body\nfields override the template's), or both; `image` is required unless\n`templateId` is set. See `CreateEndpointRequest` for the full body.\nAn image in a private Amazon ECR registry with no `registry`\ncredential must be covered by one of your ECR delegations (see\n`registry`); otherwise the create returns 400 here rather than\nworkers failing their image pull. A caller whose organization role\ncannot use ECR delegations gets 403.\n\nThe CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and\n`gpu.minCudaVersion` — so a CPU create cannot express them and the\nschema rejects the attempt with a 422. A non-empty set and a floor are\nmutually exclusive (400 if both are sent); an explicit empty set states\nno constraint and may accompany a floor.\n\nReturns `201` with the created endpoint. The endpoint can accept jobs\nimmediately, but starts with no active workers unless `workers.min`\nis greater than 0. Workers are provisioned on demand and autoscaled\nbetween `workers.min` and `workers.max` according to the `scaling`\npolicy, so the first request to an idle endpoint may incur cold-start\nlatency while a worker pulls its image and boots.\n\n## Checking what you can deploy\n\n`gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs\nused for pods. `gpu.excludedTypes` takes the type IDs — it subtracts\nspecific cards from the pools you picked. Read both from the catalog\nbefore you create:\n\n- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)\n — the `pool` field carries the pool ID for each GPU type (`null`\n means that type is not in a serverless pool). Add\n `include=AVAILABILITY&product=SERVERLESS` for current serverless\n stock.\n- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)\n — locations to constrain with `dataCenterIds`, with\n `include=GPU_AVAILABILITY` for stock per data center.\n\nUnlike pod creation, you do not need to retry across GPUs yourself:\nlist every pool you are willing to run on and workers are placed on\nwhichever one has capacity. Listing more pools — and leaving\n`dataCenterIds` unset — gives the scheduler more room and reduces the\nchance of workers failing to start when a single pool is exhausted.\n\nIf your workload needs a specific card, pick the pool that holds it and\nexclude the rest of that pool with `gpu.excludedTypes`. Keep at least\none type in the selection — a selection that leaves none is\nrejected.\n", "tags": [ - "Clusters" + "Serverless" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateClusterRequest" + "$ref": "#/components/schemas/CreateEndpointRequest" + }, + "examples": { + "serverlessEndpoint": { + "summary": "Serverless GPU endpoint", + "value": { + "name": "image-generator", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "type": "QUEUE", + "gpu": { + "pools": [ + "ADA_24" + ], + "count": 1 + }, + "workers": { + "min": 0, + "max": 5, + "idleTimeout": 5 + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 4 + }, + "dataCenterIds": [ + "US-KS-2" + ], + "timeout": 300000 + } + }, + "cpuServerlessEndpoint": { + "summary": "Serverless CPU endpoint with multiple configurations", + "value": { + "name": "cpu-inference", + "image": "python:3.11-slim", + "type": "QUEUE", + "cpu": [ + { + "id": "cpu5c", + "vcpuCount": 4 + }, + { + "id": "cpu5g", + "vcpuCount": 8 + } + ], + "workers": { + "min": 0, + "max": 3, + "idleTimeout": 10 + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 4 + }, + "timeout": 300000 + } + } } } } }, "responses": { "201": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cluster" + "$ref": "#/components/schemas/Endpoint" + }, + "examples": { + "endpoint": { + "summary": "Successful response", + "value": { + "id": "4m7x2k9q", + "name": "image-generator", + "type": "QUEUE", + "requestUrls": { + "run": "https://api.runpod.ai/v2/4m7x2k9q/run", + "runSync": "https://api.runpod.ai/v2/4m7x2k9q/runsync", + "status": "https://api.runpod.ai/v2/4m7x2k9q/status/{job_id}", + "stream": "https://api.runpod.ai/v2/4m7x2k9q/stream/{job_id}", + "cancel": "https://api.runpod.ai/v2/4m7x2k9q/cancel/{job_id}", + "retry": "https://api.runpod.ai/v2/4m7x2k9q/retry/{job_id}", + "purgeQueue": "https://api.runpod.ai/v2/4m7x2k9q/purge-queue", + "health": "https://api.runpod.ai/v2/4m7x2k9q/health" + }, + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 20, + "ports": [ + "8000/http" + ], + "env": { + "MODEL_NAME": "sdxl" + }, + "registry": null, + "gpu": { + "pools": [ + "ADA_24" + ], + "count": 1, + "allowedCudaVersions": [], + "minCudaVersion": null + }, + "workers": { + "min": 0, + "max": 5, + "idleTimeout": 5, + "initTimeout": null + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 4 + }, + "dataCenterIds": [ + "US-KS-2" + ], + "networkVolumes": [ + "2q9m7x4c" + ], + "mounts": { + "network": [ + { + "volumeId": "2q9m7x4c" + } + ], + "global": [] + }, + "timeout": 300000, + "flashboot": "OFF", + "createdAt": "2026-06-01T12:00:00Z" + } + }, + "cpuEndpoint": { + "summary": "Successful response for a CPU endpoint", + "value": { + "id": "7c3v1n8p", + "name": "cpu-inference", + "type": "QUEUE", + "requestUrls": { + "run": "https://api.runpod.ai/v2/7c3v1n8p/run", + "runSync": "https://api.runpod.ai/v2/7c3v1n8p/runsync", + "status": "https://api.runpod.ai/v2/7c3v1n8p/status/{job_id}", + "stream": "https://api.runpod.ai/v2/7c3v1n8p/stream/{job_id}", + "cancel": "https://api.runpod.ai/v2/7c3v1n8p/cancel/{job_id}", + "retry": "https://api.runpod.ai/v2/7c3v1n8p/retry/{job_id}", + "purgeQueue": "https://api.runpod.ai/v2/7c3v1n8p/purge-queue", + "health": "https://api.runpod.ai/v2/7c3v1n8p/health" + }, + "image": "python:3.11-slim", + "args": "", + "disk": 20, + "ports": [], + "env": {}, + "registry": null, + "cpu": [ + { + "id": "cpu5c", + "vcpuCount": 4, + "memory": 16 + }, + { + "id": "cpu5g", + "vcpuCount": 8, + "memory": 16 + } + ], + "workers": { + "min": 0, + "max": 3, + "idleTimeout": 10, + "initTimeout": null + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 4 + }, + "dataCenterIds": [], + "networkVolumes": [], + "mounts": { + "network": [], + "global": [] + }, + "timeout": 300000, + "flashboot": "OFF", + "createdAt": "2026-06-01T12:00:00Z" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -13217,6 +15242,14 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -13229,7 +15262,7 @@ } } }, - "/v2/clusters/{id}": { + "/v2/serverless/{id}": { "parameters": [ { "name": "id", @@ -13238,40 +15271,97 @@ "schema": { "type": "string" }, - "description": "Cluster identifier", - "example": "cluster_abc123" + "description": "Serverless endpoint identifier", + "example": "ep_abc123" } ], "get": { - "operationId": "getCluster", - "x-runpod-scope": "clusters:read", - "summary": "Get a cluster", + "operationId": "getEndpoint", + "x-runpod-scope": "serverless:read", + "summary": "Get a serverless endpoint", "x-mint": { "metadata": { - "description": "Retrieve a Runpod Cluster by ID with its configuration, status, and an aggregate summary of member Pods by status." + "description": "Retrieve a Runpod Serverless endpoint by ID with its compute, worker, scaling, container, storage, and current status settings." } }, - "description": "Returns a single cluster by ID. The pods field is an aggregate summary (total + count by status); fetch the member pods themselves from /v2/clusters/{id}/pods.", + "description": "Returns a single serverless endpoint by ID.", "tags": [ - "Clusters" + "Serverless" ], "responses": { "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cluster" - } - } - } - }, - "404": { - "description": "Cluster not found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/Endpoint" + }, + "examples": { + "endpoint": { + "summary": "Successful response", + "value": { + "id": "4m7x2k9q", + "name": "image-generator", + "type": "LOAD_BALANCER", + "requestUrls": { + "base": "https://4m7x2k9q.api.runpod.ai", + "health": "https://4m7x2k9q.api.runpod.ai/ping" + }, + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 20, + "ports": [ + "8000/http" + ], + "env": { + "MODEL_NAME": "sdxl" + }, + "registry": null, + "gpu": { + "pools": [ + "ADA_24" + ], + "count": 1, + "allowedCudaVersions": [], + "minCudaVersion": null + }, + "workers": { + "min": 0, + "max": 5, + "idleTimeout": 5, + "initTimeout": null + }, + "scaling": { + "type": "REQUEST_COUNT", + "requestCount": 4 + }, + "dataCenterIds": [ + "US-KS-2" + ], + "networkVolumes": [ + "2q9m7x4c" + ], + "mounts": { + "network": [ + { + "volumeId": "2q9m7x4c" + } + ], + "global": [] + }, + "timeout": 300000, + "flashboot": "OFF", + "createdAt": "2026-06-01T12:00:00Z" + } + } } } } @@ -13282,10 +15372,21 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -13298,58 +15399,181 @@ } }, "patch": { - "operationId": "updateCluster", - "x-runpod-scope": "clusters:write", - "summary": "Rename a cluster", + "operationId": "updateEndpoint", + "x-runpod-scope": "serverless:write", + "summary": "Update a serverless endpoint", "x-mint": { "metadata": { - "description": "Rename a Runpod Cluster. Compute shape, type, and container configuration are fixed at creation and cannot be changed." + "description": "Update selected settings on a Runpod Serverless endpoint, including compute, workers, scaling, storage, and container configuration." } }, - "description": "Renames a cluster. This endpoint only changes the cluster\nname — compute shape, type, and container configuration are fixed at\ncreation and cannot be updated.\n", + "description": "Partially updates a serverless endpoint. This is a PATCH: only the\nfields present in the body are changed; omitted fields are left\nuntouched. See `UpdateEndpointRequest` for the full body.\n\nMutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`/`initTimeout`),\n`scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`,\n`networkVolumes`, `timeout`, `flashboot`, and the\ncontainer settings (`image`, `args`, `disk`, `ports`, `env`,\n`registry`). A patch that leaves the endpoint pulling a private\nAmazon ECR image with no `registry` credential is checked against\nyour ECR delegations as on create (400 when none covers the\nrepository, 403 when the caller's organization role cannot use\ndelegations); a patch that changes neither `image` nor `registry`\nis not.\n\nOmitted compute preserves the current selection. `cpu` completely\nreplaces a CPU endpoint's selection; compute family is immutable.\n`gpu` on CPU, `cpu` on GPU, or both fields returns 400.\n\nReturns `200` with the full updated endpoint. Effect timing differs\nby field: scaling and worker-bound settings (`workers`, `scaling`,\n`timeout`) are applied to the autoscaler promptly, while\ncontainer-affecting changes (e.g. `image`, `env`) create a new\nendpoint release that rolls out as workers cycle — in-flight workers\nkeep the previous version until they are replaced. Track rollout via\n`listEndpointReleases`.\n", "tags": [ - "Clusters" + "Serverless" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateClusterRequest" + "$ref": "#/components/schemas/UpdateEndpointRequest" + }, + "examples": { + "scaleEndpoint": { + "summary": "Scale endpoint", + "value": { + "workers": { + "min": 1, + "max": 10, + "idleTimeout": 10 + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 8 + } + } + }, + "setInitTimeout": { + "summary": "Give workers longer to start", + "value": { + "workers": { + "initTimeout": 1800 + } + } + }, + "clearInitTimeout": { + "summary": "Clear the initialization timeout", + "description": "`null` removes the endpoint setting so the platform default\napplies. Omitting `initTimeout` leaves it unchanged.\n", + "value": { + "workers": { + "initTimeout": null + } + } + }, + "changeGpuPoolsKeepingExclusions": { + "summary": "Change GPU pools and keep the existing exclusions", + "description": "`pools` and `excludedTypes` are replaced together, so both\nare sent. Omitting `excludedTypes` here would clear it.\nRead the current value with `GET /v2/serverless/{id}` first\nand resend the entries that still apply to the new pools —\nan exclusion naming a type that is not in `pools` is\nrejected with 400.\n", + "value": { + "gpu": { + "pools": [ + "ADA_24", + "AMPERE_80" + ], + "excludedTypes": [ + "NVIDIA L40" + ] + } + } + }, + "changeCudaOnly": { + "summary": "Change a CUDA constraint without touching the GPU selection", + "description": "No `pools`, so the pool list and any `excludedTypes` are\nboth left exactly as they are. Same shape for a `count`-only\nchange.\n", + "value": { + "gpu": { + "minCudaVersion": "12.4" + } + } + } } } } }, "responses": { "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cluster" - } - } - } - }, - "404": { - "description": "Cluster not found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/Endpoint" + }, + "examples": { + "endpoint": { + "summary": "Successful response", + "value": { + "id": "4m7x2k9q", + "name": "image-generator", + "type": "QUEUE", + "requestUrls": { + "run": "https://api.runpod.ai/v2/4m7x2k9q/run", + "runSync": "https://api.runpod.ai/v2/4m7x2k9q/runsync", + "status": "https://api.runpod.ai/v2/4m7x2k9q/status/{job_id}", + "stream": "https://api.runpod.ai/v2/4m7x2k9q/stream/{job_id}", + "cancel": "https://api.runpod.ai/v2/4m7x2k9q/cancel/{job_id}", + "retry": "https://api.runpod.ai/v2/4m7x2k9q/retry/{job_id}", + "purgeQueue": "https://api.runpod.ai/v2/4m7x2k9q/purge-queue", + "health": "https://api.runpod.ai/v2/4m7x2k9q/health" + }, + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 20, + "ports": [ + "8000/http" + ], + "env": { + "MODEL_NAME": "sdxl" + }, + "registry": null, + "gpu": { + "pools": [ + "ADA_24" + ], + "count": 1, + "allowedCudaVersions": [], + "minCudaVersion": null + }, + "workers": { + "min": 1, + "max": 10, + "idleTimeout": 10, + "initTimeout": null + }, + "scaling": { + "type": "QUEUE_DELAY", + "queueDelay": 8 + }, + "dataCenterIds": [ + "US-KS-2" + ], + "networkVolumes": [ + "2q9m7x4c" + ], + "mounts": { + "network": [ + { + "volumeId": "2q9m7x4c" + } + ], + "global": [] + }, + "timeout": 300000, + "flashboot": "OFF", + "createdAt": "2026-06-01T12:00:00Z" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -13360,6 +15584,14 @@ "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -13372,31 +15604,29 @@ } }, "delete": { - "operationId": "deleteCluster", - "x-runpod-scope": "clusters:write", - "summary": "Delete a cluster", + "operationId": "deleteEndpoint", + "x-runpod-scope": "serverless:write", + "summary": "Delete a serverless endpoint", "x-mint": { "metadata": { - "description": "Permanently delete a Runpod Cluster and terminate all of its member Pods, with the response confirming the deleted Cluster." + "description": "Permanently delete a Runpod Serverless endpoint, terminate its workers, cancel queued and active jobs, and remove its bound template." } }, - "description": "Permanently deletes a cluster and terminates all of its member pods.", + "description": "Permanently deletes a serverless endpoint and its bound template.\nThis is irreversible: all workers are terminated and any queued or\nin-progress jobs are cancelled.\n", "tags": [ - "Clusters" + "Serverless" ], "responses": { "204": { - "description": "Deleted" - }, - "404": { - "description": "Cluster not found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" } - } + }, + "description": "Deleted. Response has no body." }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -13404,10 +15634,21 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -13420,7 +15661,7 @@ } } }, - "/v2/clusters/{id}/pods": { + "/v2/serverless/{id}/workers": { "parameters": [ { "name": "id", @@ -13429,40 +15670,68 @@ "schema": { "type": "string" }, - "description": "Cluster identifier", - "example": "cluster_abc123" + "description": "Serverless endpoint identifier", + "example": "ep_abc123" } ], "get": { - "operationId": "listClusterPods", - "x-runpod-scope": "clusters:read", - "summary": "List a cluster's pods", + "operationId": "listEndpointWorkers", + "x-runpod-scope": "serverless:read", + "summary": "List serverless endpoint workers", "x-mint": { "metadata": { - "description": "List every Pod in a Runpod Cluster with each member's complete configuration and status, beyond the aggregate counts in the Cluster summary." + "description": "List active workers for a Runpod Serverless endpoint with worker status, runtime details, and summary counts grouped by status." } }, - "description": "Returns the full member pods of a cluster. The cluster summary (`GET /v2/clusters/{id}`) carries only aggregate pod counts; this endpoint returns each member as a complete Pod object.", + "description": "Lists the active workers for a serverless endpoint.\n\n**Returns.** A `200` with a `ListEndpointWorkersResponse`: a\n`workers` array (one entry per active worker, each carrying its `id`,\n`status`, and runtime details) plus a `summary` of worker counts\ngrouped by status. Only currently active workers are included;\nscaled-down workers are not returned.\n\n**How `status` is determined.** Each worker's `status` is derived by\nreconciling the worker pod's lifecycle status with the endpoint's\nlive job-queue view (which workers are actively serving requests).\nWhen the job-queue view is unavailable, the response degrades\ngracefully: the shape is unchanged, but each `status` and the summary\ncounts fall back to pod lifecycle alone.\n", "tags": [ - "Clusters" + "Serverless" ], "responses": { "200": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PodList" - } - } - } - }, - "404": { - "description": "Cluster not found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ListEndpointWorkersResponse" + }, + "examples": { + "workers": { + "summary": "Successful response", + "value": { + "endpointVersion": 4, + "summary": { + "running": 1, + "idle": 1, + "initializing": 0, + "throttled": 0, + "unhealthy": 0, + "total": 2 + }, + "workers": [ + { + "id": "8g3n5t6r", + "status": "RUNNING", + "isStale": false, + "version": 4, + "gpuCount": 1, + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "uptimeSeconds": 3600, + "gpuTypeId": "NVIDIA GeForce RTX 4090", + "dataCenterId": "US-KS-2", + "startedAt": "2026-06-01T12:05:00Z" + } + ] + } + } } } } @@ -13473,10 +15742,21 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, "description": "Error", "content": { "application/problem+json": { @@ -13489,24 +15769,33 @@ } } }, - "/v2/serverless": { + "/v2/serverless/{id}/releases": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Serverless endpoint identifier", + "example": "ep_abc123" + } + ], "get": { - "operationId": "listEndpoints", + "operationId": "listEndpointReleases", "x-runpod-scope": "serverless:read", - "summary": "List serverless endpoints", + "summary": "List serverless endpoint releases", "x-mint": { "metadata": { - "description": "List all Runpod Serverless endpoints owned by the authenticated user, including compute, worker, scaling, and deployment settings." + "description": "List a Serverless endpoint's release history, configuration changes, build IDs, and current worker rollout status, newest release first." } }, - "description": "Returns serverless endpoints owned by the authenticated user,\ncursor-paginated newest-first; an omitted `limit` defaults to 1000.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", + "description": "Returns the endpoint's release history (newest first) plus a rollout\nsummary of how many workers are running the current version. Each\nrelease is a versioned configuration snapshot with a `diff` of what\nchanged; build-driven releases carry a `buildId` (fetch build detail via\nthe builds sub-routes).\n\nReleases are cursor-paginated newest-first; an omitted `limit`\ndefaults to 1000. The rollout summary always describes the endpoint's\ncurrent state, independent of the page requested.\n", "tags": [ "Serverless" ], "parameters": [ - { - "$ref": "#/components/parameters/ResourceFilters" - }, { "$ref": "#/components/parameters/PaginationCursor" }, @@ -13528,72 +15817,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListEndpointsResponse" + "$ref": "#/components/schemas/ListEndpointReleasesResponse" }, "examples": { - "endpoints": { + "releases": { "summary": "Successful response", "value": { - "endpoints": [ + "endpointVersion": 4, + "rollout": { + "inProgress": true, + "workersOnLatest": 1, + "workersTotal": 2, + "percentOnLatest": 50 + }, + "releases": [ { - "id": "4m7x2k9q", - "name": "image-generator", - "type": "QUEUE", - "requestUrls": { - "run": "https://api.runpod.ai/v2/4m7x2k9q/run", - "runSync": "https://api.runpod.ai/v2/4m7x2k9q/runsync", - "status": "https://api.runpod.ai/v2/4m7x2k9q/status/{job_id}", - "stream": "https://api.runpod.ai/v2/4m7x2k9q/stream/{job_id}", - "cancel": "https://api.runpod.ai/v2/4m7x2k9q/cancel/{job_id}", - "retry": "https://api.runpod.ai/v2/4m7x2k9q/retry/{job_id}", - "purgeQueue": "https://api.runpod.ai/v2/4m7x2k9q/purge-queue", - "health": "https://api.runpod.ai/v2/4m7x2k9q/health" - }, - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 20, - "ports": [ - "8000/http" - ], - "env": { - "MODEL_NAME": "sdxl" - }, - "registry": null, - "gpu": { - "pools": [ - "ADA_24" - ], - "count": 1, - "allowedCudaVersions": [], - "minCudaVersion": null - }, - "workers": { - "min": 0, - "max": 5, - "idleTimeout": 5, - "initTimeout": null - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 4 - }, - "dataCenterIds": [ - "US-KS-2" - ], - "networkVolumes": [ - "2q9m7x4c" - ], - "mounts": { - "network": [ - { - "volumeId": "2q9m7x4c" - } - ], - "global": [] - }, - "timeout": 300000, - "flashboot": "OFF", - "createdAt": "2026-06-01T12:00:00Z" + "id": "5r9x2m7q", + "version": 4, + "source": "MANUAL", + "buildId": null, + "createdByUserId": null, + "workerCount": 2, + "createdAt": "2026-06-01T12:10:00Z", + "diff": [ + { + "field": "workers.max", + "old": 5, + "new": 10 + } + ] } ], "pagination": { @@ -13612,12 +15864,12 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "413": { "$ref": "#/components/responses/ResponseTooLargeError" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -13633,96 +15885,51 @@ "description": "Error", "content": { "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "post": { - "operationId": "createEndpoint", - "x-runpod-scope": "serverless:write", - "summary": "Create a serverless endpoint", - "x-mint": { - "metadata": { - "description": "Create a Runpod Serverless endpoint with GPU or CPU compute, container or template settings, worker limits, and scaling policies." - } - }, - "description": "Creates a serverless endpoint. Callers specify exactly one of `gpu` or\n`cpu`; neither or both returns 400. Container settings come from the\nbody, from a serverless template referenced by `templateId` (body\nfields override the template's), or both; `image` is required unless\n`templateId` is set. See `CreateEndpointRequest` for the full body.\nAn image in a private Amazon ECR registry with no `registry`\ncredential must be covered by one of your ECR delegations (see\n`registry`); otherwise the create returns 400 here rather than\nworkers failing their image pull. A caller whose organization role\ncannot use ECR delegations gets 403.\n\nThe CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and\n`gpu.minCudaVersion` — so a CPU create cannot express them and the\nschema rejects the attempt with a 422. A non-empty set and a floor are\nmutually exclusive (400 if both are sent); an explicit empty set states\nno constraint and may accompany a floor.\n\nReturns `201` with the created endpoint. The endpoint can accept jobs\nimmediately, but starts with no active workers unless `workers.min`\nis greater than 0. Workers are provisioned on demand and autoscaled\nbetween `workers.min` and `workers.max` according to the `scaling`\npolicy, so the first request to an idle endpoint may incur cold-start\nlatency while a worker pulls its image and boots.\n\n## Checking what you can deploy\n\n`gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs\nused for pods. `gpu.excludedTypes` takes the type IDs — it subtracts\nspecific cards from the pools you picked. Read both from the catalog\nbefore you create:\n\n- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)\n — the `pool` field carries the pool ID for each GPU type (`null`\n means that type is not in a serverless pool). Add\n `include=AVAILABILITY&product=SERVERLESS` for current serverless\n stock.\n- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)\n — locations to constrain with `dataCenterIds`, with\n `include=GPU_AVAILABILITY` for stock per data center.\n\nUnlike pod creation, you do not need to retry across GPUs yourself:\nlist every pool you are willing to run on and workers are placed on\nwhichever one has capacity. Listing more pools — and leaving\n`dataCenterIds` unset — gives the scheduler more room and reduces the\nchance of workers failing to start when a single pool is exhausted.\n\nIf your workload needs a specific card, pick the pool that holds it and\nexclude the rest of that pool with `gpu.excludedTypes`. Keep at least\none type in the selection — a selection that leaves none is\nrejected.\n", - "tags": [ - "Serverless" - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEndpointRequest" - }, - "examples": { - "serverlessEndpoint": { - "summary": "Serverless GPU endpoint", - "value": { - "name": "image-generator", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "type": "QUEUE", - "gpu": { - "pools": [ - "ADA_24" - ], - "count": 1 - }, - "workers": { - "min": 0, - "max": 5, - "idleTimeout": 5 - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 4 - }, - "dataCenterIds": [ - "US-KS-2" - ], - "timeout": 300000 - } - }, - "cpuServerlessEndpoint": { - "summary": "Serverless CPU endpoint with multiple configurations", - "value": { - "name": "cpu-inference", - "image": "python:3.11-slim", - "type": "QUEUE", - "cpu": [ - { - "id": "cpu5c", - "vcpuCount": 4 - }, - { - "id": "cpu5g", - "vcpuCount": 8 - } - ], - "workers": { - "min": 0, - "max": 3, - "idleTimeout": 10 - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 4 - }, - "timeout": 300000 - } + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } } + } + } + }, + "/v2/serverless/{id}/builds": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Serverless endpoint identifier", + "example": "ep_abc123" + } + ], + "get": { + "operationId": "listEndpointBuilds", + "x-runpod-scope": "serverless:read", + "summary": "List serverless endpoint builds", + "x-mint": { + "metadata": { + "description": "List a Runpod Serverless endpoint's GitHub build history, newest first, capped to the 100 most recent builds, with older builds fetchable by ID." + } }, + "description": "Returns the endpoint's GitHub build history, newest first (Runpod\nGitHub-build integration), cursor-paginated; an omitted `limit`\ndefaults to 100, so a bare request returns at most the 100 most\nrecent builds. Any build can also be fetched by id via\n`GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via\n`/v2/serverless/{id}/builds/{buildId}/logs`.\n", + "tags": [ + "Serverless" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimitBuilds" + } + ], "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -13731,129 +15938,34 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Created", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Endpoint" + "$ref": "#/components/schemas/ListEndpointBuildsResponse" }, "examples": { - "endpoint": { + "builds": { "summary": "Successful response", "value": { - "id": "4m7x2k9q", - "name": "image-generator", - "type": "QUEUE", - "requestUrls": { - "run": "https://api.runpod.ai/v2/4m7x2k9q/run", - "runSync": "https://api.runpod.ai/v2/4m7x2k9q/runsync", - "status": "https://api.runpod.ai/v2/4m7x2k9q/status/{job_id}", - "stream": "https://api.runpod.ai/v2/4m7x2k9q/stream/{job_id}", - "cancel": "https://api.runpod.ai/v2/4m7x2k9q/cancel/{job_id}", - "retry": "https://api.runpod.ai/v2/4m7x2k9q/retry/{job_id}", - "purgeQueue": "https://api.runpod.ai/v2/4m7x2k9q/purge-queue", - "health": "https://api.runpod.ai/v2/4m7x2k9q/health" - }, - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 20, - "ports": [ - "8000/http" - ], - "env": { - "MODEL_NAME": "sdxl" - }, - "registry": null, - "gpu": { - "pools": [ - "ADA_24" - ], - "count": 1, - "allowedCudaVersions": [], - "minCudaVersion": null - }, - "workers": { - "min": 0, - "max": 5, - "idleTimeout": 5, - "initTimeout": null - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 4 - }, - "dataCenterIds": [ - "US-KS-2" - ], - "networkVolumes": [ - "2q9m7x4c" - ], - "mounts": { - "network": [ - { - "volumeId": "2q9m7x4c" - } - ], - "global": [] - }, - "timeout": 300000, - "flashboot": "OFF", - "createdAt": "2026-06-01T12:00:00Z" - } - }, - "cpuEndpoint": { - "summary": "Successful response for a CPU endpoint", - "value": { - "id": "7c3v1n8p", - "name": "cpu-inference", - "type": "QUEUE", - "requestUrls": { - "run": "https://api.runpod.ai/v2/7c3v1n8p/run", - "runSync": "https://api.runpod.ai/v2/7c3v1n8p/runsync", - "status": "https://api.runpod.ai/v2/7c3v1n8p/status/{job_id}", - "stream": "https://api.runpod.ai/v2/7c3v1n8p/stream/{job_id}", - "cancel": "https://api.runpod.ai/v2/7c3v1n8p/cancel/{job_id}", - "retry": "https://api.runpod.ai/v2/7c3v1n8p/retry/{job_id}", - "purgeQueue": "https://api.runpod.ai/v2/7c3v1n8p/purge-queue", - "health": "https://api.runpod.ai/v2/7c3v1n8p/health" - }, - "image": "python:3.11-slim", - "args": "", - "disk": 20, - "ports": [], - "env": {}, - "registry": null, - "cpu": [ - { - "id": "cpu5c", - "vcpuCount": 4, - "memory": 16 - }, + "builds": [ { - "id": "cpu5g", - "vcpuCount": 8, - "memory": 16 + "id": "build_abc123", + "status": "COMPLETED", + "commitHash": "abc1234", + "commitMessage": "bump model", + "branch": "main", + "commitDate": "2026-06-01T12:00:00Z", + "imageName": "registry.runpod.net/repo:abc1234", + "startedAt": "2026-06-01T12:00:05Z", + "completedAt": "2026-06-01T12:04:31Z", + "error": null } ], - "workers": { - "min": 0, - "max": 3, - "idleTimeout": 10, - "initTimeout": null - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 4 - }, - "dataCenterIds": [], - "networkVolumes": [], - "mounts": { - "network": [], - "global": [] - }, - "timeout": 300000, - "flashboot": "OFF", - "createdAt": "2026-06-01T12:00:00Z" + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } @@ -13866,17 +15978,11 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "404": { "$ref": "#/components/responses/NotFoundError" }, "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "$ref": "#/components/responses/ResponseTooLargeError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -13902,7 +16008,7 @@ } } }, - "/v2/serverless/{id}": { + "/v2/serverless/{id}/builds/{buildId}": { "parameters": [ { "name": "id", @@ -13913,18 +16019,28 @@ }, "description": "Serverless endpoint identifier", "example": "ep_abc123" + }, + { + "name": "buildId", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "GitHub build identifier (from GET /v2/serverless/{id}/builds or a release's `buildId`)", + "example": "build_abc123" } ], "get": { - "operationId": "getEndpoint", + "operationId": "getEndpointBuild", "x-runpod-scope": "serverless:read", - "summary": "Get a serverless endpoint", + "summary": "Get a serverless endpoint build", "x-mint": { "metadata": { - "description": "Retrieve a Runpod Serverless endpoint by ID with its compute, worker, scaling, container, storage, and current status settings." + "description": "Retrieve a single GitHub build for a Runpod Serverless endpoint by its build ID, returning that build regardless of how old it is." } }, - "description": "Returns a single serverless endpoint by ID.", + "description": "Returns one of the endpoint's GitHub builds by id, regardless of age —\nno need to page through `GET /v2/serverless/{id}/builds` to reach it.\n", "tags": [ "Serverless" ], @@ -13942,64 +16058,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Endpoint" + "$ref": "#/components/schemas/Build" }, "examples": { - "endpoint": { - "summary": "Successful response", - "value": { - "id": "4m7x2k9q", - "name": "image-generator", - "type": "LOAD_BALANCER", - "requestUrls": { - "base": "https://4m7x2k9q.api.runpod.ai", - "health": "https://4m7x2k9q.api.runpod.ai/ping" - }, - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 20, - "ports": [ - "8000/http" - ], - "env": { - "MODEL_NAME": "sdxl" - }, - "registry": null, - "gpu": { - "pools": [ - "ADA_24" - ], - "count": 1, - "allowedCudaVersions": [], - "minCudaVersion": null - }, - "workers": { - "min": 0, - "max": 5, - "idleTimeout": 5, - "initTimeout": null - }, - "scaling": { - "type": "REQUEST_COUNT", - "requestCount": 4 - }, - "dataCenterIds": [ - "US-KS-2" - ], - "networkVolumes": [ - "2q9m7x4c" - ], - "mounts": { - "network": [ - { - "volumeId": "2q9m7x4c" - } - ], - "global": [] - }, - "timeout": 300000, - "flashboot": "OFF", - "createdAt": "2026-06-01T12:00:00Z" + "build": { + "summary": "Successful response", + "value": { + "id": "build_abc123", + "status": "COMPLETED", + "commitHash": "abc1234", + "commitMessage": "bump model", + "branch": "main", + "commitDate": "2026-06-01T12:00:00Z", + "imageName": "registry.runpod.net/repo:abc1234", + "startedAt": "2026-06-01T12:00:05Z", + "completedAt": "2026-06-01T12:04:31Z", + "error": null } } } @@ -14037,87 +16111,51 @@ } } } - }, - "patch": { - "operationId": "updateEndpoint", - "x-runpod-scope": "serverless:write", - "summary": "Update a serverless endpoint", + } + }, + "/v2/serverless/{id}/metrics/requests": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Serverless endpoint identifier", + "example": "ep_abc123" + } + ], + "get": { + "operationId": "getEndpointRequestMetrics", + "x-runpod-scope": "serverless:read", + "summary": "Get serverless endpoint request metrics", "x-mint": { "metadata": { - "description": "Update selected settings on a Runpod Serverless endpoint, including compute, workers, scaling, storage, and container configuration." + "description": "Get request counts, execution time, and queue delay for a Runpod Serverless endpoint as a time series." } }, - "description": "Partially updates a serverless endpoint. This is a PATCH: only the\nfields present in the body are changed; omitted fields are left\nuntouched. See `UpdateEndpointRequest` for the full body.\n\nMutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`/`initTimeout`),\n`scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`,\n`networkVolumes`, `timeout`, `flashboot`, and the\ncontainer settings (`image`, `args`, `disk`, `ports`, `env`,\n`registry`). A patch that leaves the endpoint pulling a private\nAmazon ECR image with no `registry` credential is checked against\nyour ECR delegations as on create (400 when none covers the\nrepository, 403 when the caller's organization role cannot use\ndelegations); a patch that changes neither `image` nor `registry`\nis not.\n\nOmitted compute preserves the current selection. `cpu` completely\nreplaces a CPU endpoint's selection; compute family is immutable.\n`gpu` on CPU, `cpu` on GPU, or both fields returns 400.\n\nReturns `200` with the full updated endpoint. Effect timing differs\nby field: scaling and worker-bound settings (`workers`, `scaling`,\n`timeout`) are applied to the autoscaler promptly, while\ncontainer-affecting changes (e.g. `image`, `env`) create a new\nendpoint release that rolls out as workers cycle — in-flight workers\nkeep the previous version until they are replaced. Track rollout via\n`listEndpointReleases`.\n", + "description": "Returns the request series shown on the endpoint's Metrics tab in the console.\n\n**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are\noptional: `endTime` defaults to now and `startTime` to 24 hours before\n`endTime`, rounded down to the start of an `interval` bucket. An\n`endTime` in the future is treated as now. Metrics are kept for 90 days,\nso `startTime` must be within the last 90 days.\n\n**Interval.** Each record covers one `interval`-sized bucket, aligned to\nUTC.\n\n**Paging.** Records are oldest first, at most `limit` (default 1000) per\npage. Follow `pagination.nextCursor` while `pagination.hasNextPage` is\ntrue. The cursor keeps the first page's window, so `startTime`,\n`endTime`, and `interval` can be left out on later pages; if sent, they\nmust match the first page or the cursor is rejected with 422.\n\n**Sparse series.** Buckets with no activity are omitted, not zero-filled,\nso `records` can be shorter than the number of buckets in the window, or\nempty.\n\n**Units.** Durations are milliseconds. `executionTimeMs` is the time a\nworker spent running a request; `delayTimeMs` is the time a request\nwaited in the queue before a worker picked it up.\n", "tags": [ "Serverless" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateEndpointRequest" - }, - "examples": { - "scaleEndpoint": { - "summary": "Scale endpoint", - "value": { - "workers": { - "min": 1, - "max": 10, - "idleTimeout": 10 - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 8 - } - } - }, - "setInitTimeout": { - "summary": "Give workers longer to start", - "value": { - "workers": { - "initTimeout": 1800 - } - } - }, - "clearInitTimeout": { - "summary": "Clear the initialization timeout", - "description": "`null` removes the endpoint setting so the platform default\napplies. Omitting `initTimeout` leaves it unchanged.\n", - "value": { - "workers": { - "initTimeout": null - } - } - }, - "changeGpuPoolsKeepingExclusions": { - "summary": "Change GPU pools and keep the existing exclusions", - "description": "`pools` and `excludedTypes` are replaced together, so both\nare sent. Omitting `excludedTypes` here would clear it.\nRead the current value with `GET /v2/serverless/{id}` first\nand resend the entries that still apply to the new pools —\nan exclusion naming a type that is not in `pools` is\nrejected with 400.\n", - "value": { - "gpu": { - "pools": [ - "ADA_24", - "AMPERE_80" - ], - "excludedTypes": [ - "NVIDIA L40" - ] - } - } - }, - "changeCudaOnly": { - "summary": "Change a CUDA constraint without touching the GPU selection", - "description": "No `pools`, so the pool list and any `excludedTypes` are\nboth left exactly as they are. Same shape for a `count`-only\nchange.\n", - "value": { - "gpu": { - "minCudaVersion": "12.4" - } - } - } - } - } + "parameters": [ + { + "$ref": "#/components/parameters/MetricsStartTime" + }, + { + "$ref": "#/components/parameters/MetricsEndTime" + }, + { + "$ref": "#/components/parameters/MetricsInterval" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" } - }, + ], "responses": { "200": { "headers": { @@ -14132,76 +16170,55 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Endpoint" + "$ref": "#/components/schemas/EndpointRequestMetricsResponse" }, "examples": { - "endpoint": { + "metrics": { "summary": "Successful response", "value": { - "id": "4m7x2k9q", - "name": "image-generator", - "type": "QUEUE", - "requestUrls": { - "run": "https://api.runpod.ai/v2/4m7x2k9q/run", - "runSync": "https://api.runpod.ai/v2/4m7x2k9q/runsync", - "status": "https://api.runpod.ai/v2/4m7x2k9q/status/{job_id}", - "stream": "https://api.runpod.ai/v2/4m7x2k9q/stream/{job_id}", - "cancel": "https://api.runpod.ai/v2/4m7x2k9q/cancel/{job_id}", - "retry": "https://api.runpod.ai/v2/4m7x2k9q/retry/{job_id}", - "purgeQueue": "https://api.runpod.ai/v2/4m7x2k9q/purge-queue", - "health": "https://api.runpod.ai/v2/4m7x2k9q/health" - }, - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 20, - "ports": [ - "8000/http" - ], - "env": { - "MODEL_NAME": "sdxl" - }, - "registry": null, - "gpu": { - "pools": [ - "ADA_24" - ], - "count": 1, - "allowedCudaVersions": [], - "minCudaVersion": null - }, - "workers": { - "min": 1, - "max": 10, - "idleTimeout": 10, - "initTimeout": null - }, - "scaling": { - "type": "QUEUE_DELAY", - "queueDelay": 8 - }, - "dataCenterIds": [ - "US-KS-2" - ], - "networkVolumes": [ - "2q9m7x4c" - ], - "mounts": { - "network": [ - { - "volumeId": "2q9m7x4c" + "startTime": "2026-10-11T00:00:00Z", + "endTime": "2026-10-12T00:00:00Z", + "interval": "1h", + "records": [ + { + "time": "2026-10-11T13:00:00Z", + "requests": 120, + "completed": 117, + "failed": 3, + "retries": 2, + "executionTimeMs": { + "min": 210, + "max": 9400, + "total": 182400, + "p70": 1500, + "p90": 3100, + "p95": 4800, + "p98": 7700 + }, + "delayTimeMs": { + "min": 4, + "max": 2100, + "total": 15600, + "p70": 90, + "p90": 310, + "p95": 820, + "p98": 1500 } - ], - "global": [] - }, - "timeout": 300000, - "flashboot": "OFF", - "createdAt": "2026-06-01T12:00:00Z" + } + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -14210,72 +16227,12 @@ }, "404": { "$ref": "#/components/responses/NotFoundError" - }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" - }, - "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Error", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "delete": { - "operationId": "deleteEndpoint", - "x-runpod-scope": "serverless:write", - "summary": "Delete a serverless endpoint", - "x-mint": { - "metadata": { - "description": "Permanently delete a Runpod Serverless endpoint, terminate its workers, cancel queued and active jobs, and remove its bound template." - } - }, - "description": "Permanently deletes a serverless endpoint and its bound template.\nThis is irreversible: all workers are terminated and any queued or\nin-progress jobs are cancelled.\n", - "tags": [ - "Serverless" - ], - "responses": { - "204": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Deleted. Response has no body." - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "404": { - "$ref": "#/components/responses/NotFoundError" + }, + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -14301,7 +16258,7 @@ } } }, - "/v2/serverless/{id}/workers": { + "/v2/serverless/{id}/metrics/cold-starts": { "parameters": [ { "name": "id", @@ -14315,18 +16272,35 @@ } ], "get": { - "operationId": "listEndpointWorkers", + "operationId": "getEndpointColdStartMetrics", "x-runpod-scope": "serverless:read", - "summary": "List serverless endpoint workers", + "summary": "Get serverless endpoint cold start metrics", "x-mint": { "metadata": { - "description": "List active workers for a Runpod Serverless endpoint with worker status, runtime details, and summary counts grouped by status." + "description": "Get cold start counts and durations for a Runpod Serverless endpoint as a time series." } }, - "description": "Lists the active workers for a serverless endpoint.\n\n**Returns.** A `200` with a `ListEndpointWorkersResponse`: a\n`workers` array (one entry per active worker, each carrying its `id`,\n`status`, and runtime details) plus a `summary` of worker counts\ngrouped by status. Only currently active workers are included;\nscaled-down workers are not returned.\n\n**How `status` is determined.** Each worker's `status` is derived by\nreconciling the worker pod's lifecycle status with the endpoint's\nlive job-queue view (which workers are actively serving requests).\nWhen the job-queue view is unavailable, the response degrades\ngracefully: the shape is unchanged, but each `status` and the summary\ncounts fall back to pod lifecycle alone.\n", + "description": "Returns the cold start series shown on the endpoint's Metrics tab in the console.\n\n**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are\noptional: `endTime` defaults to now and `startTime` to 24 hours before\n`endTime`, rounded down to the start of an `interval` bucket. An\n`endTime` in the future is treated as now. Metrics are kept for 90 days,\nso `startTime` must be within the last 90 days.\n\n**Interval.** Each record covers one `interval`-sized bucket, aligned to\nUTC.\n\n**Paging.** Records are oldest first, at most `limit` (default 1000) per\npage. Follow `pagination.nextCursor` while `pagination.hasNextPage` is\ntrue. The cursor keeps the first page's window, so `startTime`,\n`endTime`, and `interval` can be left out on later pages; if sent, they\nmust match the first page or the cursor is rejected with 422.\n\n**Sparse series.** Buckets with no activity are omitted, not zero-filled,\nso `records` can be shorter than the number of buckets in the window, or\nempty.\n\n**Units.** `durationMs` is how long each cold start took, in milliseconds.\n", "tags": [ "Serverless" ], + "parameters": [ + { + "$ref": "#/components/parameters/MetricsStartTime" + }, + { + "$ref": "#/components/parameters/MetricsEndTime" + }, + { + "$ref": "#/components/parameters/MetricsInterval" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" + } + ], "responses": { "200": { "headers": { @@ -14341,41 +16315,43 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListEndpointWorkersResponse" + "$ref": "#/components/schemas/EndpointColdStartMetricsResponse" }, "examples": { - "workers": { + "metrics": { "summary": "Successful response", "value": { - "endpointVersion": 4, - "summary": { - "running": 1, - "idle": 1, - "initializing": 0, - "throttled": 0, - "unhealthy": 0, - "total": 2 - }, - "workers": [ + "startTime": "2026-10-11T00:00:00Z", + "endTime": "2026-10-12T00:00:00Z", + "interval": "1h", + "records": [ { - "id": "8g3n5t6r", - "status": "RUNNING", - "isStale": false, - "version": 4, - "gpuCount": 1, - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "uptimeSeconds": 3600, - "gpuTypeId": "NVIDIA GeForce RTX 4090", - "dataCenterId": "US-KS-2", - "startedAt": "2026-06-01T12:05:00Z" + "time": "2026-10-11T13:00:00Z", + "count": 2, + "durationMs": { + "min": 8200, + "max": 11900, + "total": 20100, + "p70": 11900, + "p90": 11900, + "p95": 11900, + "p98": 11900 + } } - ] + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -14385,6 +16361,12 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -14409,7 +16391,7 @@ } } }, - "/v2/serverless/{id}/releases": { + "/v2/serverless/{id}/metrics/workers": { "parameters": [ { "name": "id", @@ -14423,19 +16405,28 @@ } ], "get": { - "operationId": "listEndpointReleases", + "operationId": "getEndpointWorkerMetrics", "x-runpod-scope": "serverless:read", - "summary": "List serverless endpoint releases", + "summary": "Get serverless endpoint worker metrics", "x-mint": { "metadata": { - "description": "List a Serverless endpoint's release history, configuration changes, build IDs, and current worker rollout status, newest release first." + "description": "Get worker counts by state for a Runpod Serverless endpoint as a time series." } }, - "description": "Returns the endpoint's release history (newest first) plus a rollout\nsummary of how many workers are running the current version. Each\nrelease is a versioned configuration snapshot with a `diff` of what\nchanged; build-driven releases carry a `buildId` (fetch build detail via\nthe builds sub-routes).\n\nReleases are cursor-paginated newest-first; an omitted `limit`\ndefaults to 1000. The rollout summary always describes the endpoint's\ncurrent state, independent of the page requested.\n", + "description": "Returns the worker state series shown on the endpoint's Metrics tab in the console.\nFor the current worker list, use `GET /v2/serverless/{id}/workers`.\n\n**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are\noptional: `endTime` defaults to now and `startTime` to 24 hours before\n`endTime`, rounded down to the start of an `interval` bucket. An\n`endTime` in the future is treated as now. Metrics are kept for 90 days,\nso `startTime` must be within the last 90 days.\n\n**Interval.** Each record covers one `interval`-sized bucket, aligned to\nUTC.\n\n**Paging.** Records are oldest first, at most `limit` (default 1000) per\npage. Follow `pagination.nextCursor` while `pagination.hasNextPage` is\ntrue. The cursor keeps the first page's window, so `startTime`,\n`endTime`, and `interval` can be left out on later pages; if sent, they\nmust match the first page or the cursor is rejected with 422.\n\n**Sparse series.** Buckets with no activity are omitted, not zero-filled,\nso `records` can be shorter than the number of buckets in the window, or\nempty.\n\n**Snapshots.** Each record holds the last worker-count snapshot in its\nbucket, as point-in-time counts.\n", "tags": [ "Serverless" ], "parameters": [ + { + "$ref": "#/components/parameters/MetricsStartTime" + }, + { + "$ref": "#/components/parameters/MetricsEndTime" + }, + { + "$ref": "#/components/parameters/MetricsInterval" + }, { "$ref": "#/components/parameters/PaginationCursor" }, @@ -14457,35 +16448,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListEndpointReleasesResponse" + "$ref": "#/components/schemas/EndpointWorkerMetricsResponse" }, "examples": { - "releases": { + "metrics": { "summary": "Successful response", "value": { - "endpointVersion": 4, - "rollout": { - "inProgress": true, - "workersOnLatest": 1, - "workersTotal": 2, - "percentOnLatest": 50 - }, - "releases": [ + "startTime": "2026-10-11T00:00:00Z", + "endTime": "2026-10-12T00:00:00Z", + "interval": "1h", + "records": [ { - "id": "5r9x2m7q", - "version": 4, - "source": "MANUAL", - "buildId": null, - "createdByUserId": null, - "workerCount": 2, - "createdAt": "2026-06-01T12:10:00Z", - "diff": [ - { - "field": "workers.max", - "old": 5, - "new": 10 - } - ] + "time": "2026-10-11T13:00:00Z", + "running": 3, + "idle": 1, + "initializing": 0, + "throttled": 0, + "unhealthy": 0 } ], "pagination": { @@ -14498,6 +16477,9 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -14510,6 +16492,9 @@ "413": { "$ref": "#/components/responses/ResponseTooLargeError" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -14534,7 +16519,7 @@ } } }, - "/v2/serverless/{id}/builds": { + "/v2/serverless/{id}/workers/{workerId}/logs": { "parameters": [ { "name": "id", @@ -14545,68 +16530,84 @@ }, "description": "Serverless endpoint identifier", "example": "ep_abc123" + }, + { + "name": "workerId", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Worker identifier (from GET /v2/serverless/{id}/workers)", + "example": "worker_abc" } ], "get": { - "operationId": "listEndpointBuilds", + "operationId": "getWorkerLogs", "x-runpod-scope": "serverless:read", - "summary": "List serverless endpoint builds", + "summary": "Stream serverless worker logs", "x-mint": { "metadata": { - "description": "List a Runpod Serverless endpoint's GitHub build history, newest first, capped to the 100 most recent builds, with older builds fetchable by ID." + "description": "Stream a Runpod Serverless worker's logs in real time as Server-Sent Events, with resumable reconnects via Last-Event-ID." } }, - "description": "Returns the endpoint's GitHub build history, newest first (Runpod\nGitHub-build integration), cursor-paginated; an omitted `limit`\ndefaults to 100, so a bare request returns at most the 100 most\nrecent builds. Any build can also be fetched by id via\n`GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via\n`/v2/serverless/{id}/builds/{buildId}/logs`.\n", + "description": "Streams a serverless worker's logs as Server-Sent Events. The `source`\nquery parameter selects which log source to include.\n\nThe SSE `data` payload shape is:\n`{ \"source\": \"container\", \"line\": \"...\", \"ts\": \"...\" }`.\nLog-event `id` values are the event `ts` timestamp so browser/EventSource\nreconnects can resume with `Last-Event-ID`.\n", "tags": [ "Serverless" ], "parameters": [ { - "$ref": "#/components/parameters/PaginationCursor" + "$ref": "#/components/parameters/LogSourceParam" }, { - "$ref": "#/components/parameters/PaginationLimitBuilds" + "$ref": "#/components/parameters/LogTail" + }, + { + "$ref": "#/components/parameters/LogSince" + }, + { + "$ref": "#/components/parameters/LogLastEventID" } ], "responses": { "200": { + "description": "Worker log event stream", "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" }, "RateLimit-Policy": { "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "OK", - "content": { - "application/json": { + }, + "Cache-Control": { "schema": { - "$ref": "#/components/schemas/ListEndpointBuildsResponse" + "type": "string" }, - "examples": { - "builds": { - "summary": "Successful response", - "value": { - "builds": [ - { - "id": "build_abc123", - "status": "COMPLETED", - "commitHash": "abc1234", - "commitMessage": "bump model", - "branch": "main", - "commitDate": "2026-06-01T12:00:00Z", - "imageName": "registry.runpod.net/repo:abc1234", - "startedAt": "2026-06-01T12:00:05Z", - "completedAt": "2026-06-01T12:04:31Z", - "error": null - } - ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } - } + "description": "Always `no-cache` for SSE responses." + }, + "Connection": { + "schema": { + "type": "string" + }, + "description": "Always `keep-alive` to hold the SSE stream open." + }, + "X-Accel-Buffering": { + "schema": { + "type": "string" + }, + "description": "Always `no` to disable proxy buffering of the SSE stream." + } + }, + "content": { + "text/event-stream": { + "schema": { + "type": "string", + "description": "Server-Sent Events stream. Each event includes an `id:` line and a JSON `data:` payload with `source`, `line`, and `ts` fields." + }, + "examples": { + "logLine": { + "summary": "Successful response", + "value": "id: 2026-06-01T12:05:04Z/000000000042\ndata: {\"ts\":\"2026-06-01T12:05:04Z\",\"source\":\"container\",\"line\":\"Worker ready.\"}\n" } } } @@ -14621,9 +16622,6 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, - "413": { - "$ref": "#/components/responses/ResponseTooLargeError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -14648,41 +16646,27 @@ } } }, - "/v2/serverless/{id}/builds/{buildId}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "Serverless endpoint identifier", - "example": "ep_abc123" - }, - { - "name": "buildId", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "GitHub build identifier (from GET /v2/serverless/{id}/builds or a release's `buildId`)", - "example": "build_abc123" - } - ], + "/v2/templates": { "get": { - "operationId": "getEndpointBuild", - "x-runpod-scope": "serverless:read", - "summary": "Get a serverless endpoint build", + "operationId": "listTemplates", + "x-runpod-scope": "templates:read", + "summary": "List templates", + "description": "Returns templates owned by the authenticated user (including\nteam/organization-scoped ones), cursor-paginated; an omitted `limit`\ndefaults to 1000. Follow `pagination.nextCursor` until `hasNextPage`\nis false.\n", "x-mint": { "metadata": { - "description": "Retrieve a single GitHub build for a Runpod Serverless endpoint by its build ID, returning that build regardless of how old it is." + "description": "List all reusable Runpod templates owned by the authenticated user, including Pod and Serverless container configuration details." } }, - "description": "Returns one of the endpoint's GitHub builds by id, regardless of age —\nno need to page through `GET /v2/serverless/{id}/builds` to reach it.\n", "tags": [ - "Serverless" + "Templates" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" + } ], "responses": { "200": { @@ -14698,22 +16682,44 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/ListTemplatesResponse" }, "examples": { - "build": { + "templates": { "summary": "Successful response", "value": { - "id": "build_abc123", - "status": "COMPLETED", - "commitHash": "abc1234", - "commitMessage": "bump model", - "branch": "main", - "commitDate": "2026-06-01T12:00:00Z", - "imageName": "registry.runpod.net/repo:abc1234", - "startedAt": "2026-06-01T12:00:05Z", - "completedAt": "2026-06-01T12:04:31Z", - "error": null + "templates": [ + { + "id": "9x4m2p7v", + "name": "PyTorch GPU Template", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" + } + }, + "ports": [ + "8888/http" + ], + "env": { + "JUPYTER_ENABLE_LAB": "yes" + }, + "registry": null, + "serverless": false, + "public": false, + "category": "NVIDIA", + "startSsh": true, + "startJupyter": false, + "allowedCudaVersions": [] + } + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } @@ -14726,8 +16732,8 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -14751,53 +16757,57 @@ } } } - } - }, - "/v2/serverless/{id}/metrics/requests": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "Serverless endpoint identifier", - "example": "ep_abc123" - } - ], - "get": { - "operationId": "getEndpointRequestMetrics", - "x-runpod-scope": "serverless:read", - "summary": "Get serverless endpoint request metrics", + }, + "post": { + "operationId": "createTemplate", + "x-runpod-scope": "templates:write", + "summary": "Create a template", "x-mint": { "metadata": { - "description": "Get request counts, execution time, and queue delay for a Runpod Serverless endpoint as a time series." + "description": "Create a reusable Runpod template for Pod and Serverless container settings, including images, storage, ports, environment, and mounts." } }, - "description": "Returns the request series shown on the endpoint's Metrics tab in the console.\n\n**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are\noptional: `endTime` defaults to now and `startTime` to 24 hours before\n`endTime`, rounded down to the start of an `interval` bucket. An\n`endTime` in the future is treated as now. Metrics are kept for 90 days,\nso `startTime` must be within the last 90 days.\n\n**Interval.** Each record covers one `interval`-sized bucket, aligned to\nUTC.\n\n**Paging.** Records are oldest first, at most `limit` (default 1000) per\npage. Follow `pagination.nextCursor` while `pagination.hasNextPage` is\ntrue. The cursor keeps the first page's window, so `startTime`,\n`endTime`, and `interval` can be left out on later pages; if sent, they\nmust match the first page or the cursor is rejected with 422.\n\n**Sparse series.** Buckets with no activity are omitted, not zero-filled,\nso `records` can be shorter than the number of buckets in the window, or\nempty.\n\n**Units.** Durations are milliseconds. `executionTimeMs` is the time a\nworker spent running a request; `delayTimeMs` is the time a request\nwaited in the queue before a worker picked it up.\n", + "description": "Creates a reusable container-configuration preset — image, disk,\nports, env, registry, and mount settings — for pods and serverless\nendpoints. Pass its ID as `templateId` to `createPod` or\n`createEndpoint`, or spread its fields into the request body\ndirectly. Returns the created template.\n", "tags": [ - "Serverless" + "Templates" ], - "parameters": [ - { - "$ref": "#/components/parameters/MetricsStartTime" - }, - { - "$ref": "#/components/parameters/MetricsEndTime" - }, - { - "$ref": "#/components/parameters/MetricsInterval" - }, - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimit" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplateRequest" + }, + "examples": { + "podTemplate": { + "summary": "Pod template", + "value": { + "name": "PyTorch GPU Template", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "category": "NVIDIA", + "disk": 50, + "ports": [ + "8888/http" + ], + "env": { + "JUPYTER_ENABLE_LAB": "yes" + }, + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" + } + }, + "serverless": false, + "public": false + } + } + } + } } - ], + }, "responses": { - "200": { + "201": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -14806,70 +16816,57 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EndpointRequestMetricsResponse" + "$ref": "#/components/schemas/Template" }, "examples": { - "metrics": { + "template": { "summary": "Successful response", "value": { - "startTime": "2026-10-11T00:00:00Z", - "endTime": "2026-10-12T00:00:00Z", - "interval": "1h", - "records": [ - { - "time": "2026-10-11T13:00:00Z", - "requests": 120, - "completed": 117, - "failed": 3, - "retries": 2, - "executionTimeMs": { - "min": 210, - "max": 9400, - "total": 182400, - "p70": 1500, - "p90": 3100, - "p95": 4800, - "p98": 7700 - }, - "delayTimeMs": { - "min": 4, - "max": 2100, - "total": 15600, - "p70": 90, - "p90": 310, - "p95": 820, - "p98": 1500 - } + "id": "9x4m2p7v", + "name": "PyTorch GPU Template", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" } + }, + "ports": [ + "8888/http" ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } + "env": { + "JUPYTER_ENABLE_LAB": "yes" + }, + "registry": null, + "serverless": false, + "public": false, + "category": "NVIDIA", + "startSsh": true, + "startJupyter": false, + "allowedCudaVersions": [] } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "400": { + "$ref": "#/components/responses/BadRequestError" }, "413": { - "$ref": "#/components/responses/ResponseTooLargeError" + "$ref": "#/components/responses/RequestTooLargeError" }, "422": { "$ref": "#/components/responses/UnprocessableEntityError" @@ -14898,7 +16895,7 @@ } } }, - "/v2/serverless/{id}/metrics/cold-starts": { + "/v2/templates/{id}": { "parameters": [ { "name": "id", @@ -14907,39 +16904,21 @@ "schema": { "type": "string" }, - "description": "Serverless endpoint identifier", - "example": "ep_abc123" + "example": "tpl_abc" } ], "get": { - "operationId": "getEndpointColdStartMetrics", - "x-runpod-scope": "serverless:read", - "summary": "Get serverless endpoint cold start metrics", + "operationId": "getTemplate", + "x-runpod-scope": "templates:read", + "summary": "Get a template", "x-mint": { "metadata": { - "description": "Get cold start counts and durations for a Runpod Serverless endpoint as a time series." + "description": "Retrieve the complete configuration of an owned or public Runpod template by ID, including settings used to create Pods and endpoints." } }, - "description": "Returns the cold start series shown on the endpoint's Metrics tab in the console.\n\n**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are\noptional: `endTime` defaults to now and `startTime` to 24 hours before\n`endTime`, rounded down to the start of an `interval` bucket. An\n`endTime` in the future is treated as now. Metrics are kept for 90 days,\nso `startTime` must be within the last 90 days.\n\n**Interval.** Each record covers one `interval`-sized bucket, aligned to\nUTC.\n\n**Paging.** Records are oldest first, at most `limit` (default 1000) per\npage. Follow `pagination.nextCursor` while `pagination.hasNextPage` is\ntrue. The cursor keeps the first page's window, so `startTime`,\n`endTime`, and `interval` can be left out on later pages; if sent, they\nmust match the first page or the cursor is rejected with 422.\n\n**Sparse series.** Buckets with no activity are omitted, not zero-filled,\nso `records` can be shorter than the number of buckets in the window, or\nempty.\n\n**Units.** `durationMs` is how long each cold start took, in milliseconds.\n", + "description": "Returns the full configuration of a single template by ID. Serves\nboth templates you own and public catalog templates — everything you\ncan read. Updates and deletes remain restricted to templates you own.\n", "tags": [ - "Serverless" - ], - "parameters": [ - { - "$ref": "#/components/parameters/MetricsStartTime" - }, - { - "$ref": "#/components/parameters/MetricsEndTime" - }, - { - "$ref": "#/components/parameters/MetricsInterval" - }, - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimit" - } + "Templates" ], "responses": { "200": { @@ -14955,43 +16934,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EndpointColdStartMetricsResponse" + "$ref": "#/components/schemas/Template" }, "examples": { - "metrics": { + "template": { "summary": "Successful response", "value": { - "startTime": "2026-10-11T00:00:00Z", - "endTime": "2026-10-12T00:00:00Z", - "interval": "1h", - "records": [ - { - "time": "2026-10-11T13:00:00Z", - "count": 2, - "durationMs": { - "min": 8200, - "max": 11900, - "total": 20100, - "p70": 11900, - "p90": 11900, - "p95": 11900, - "p98": 11900 - } + "id": "9x4m2p7v", + "name": "PyTorch GPU Template", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" } + }, + "ports": [ + "8888/http" ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } + "env": { + "JUPYTER_ENABLE_LAB": "yes" + }, + "registry": null, + "serverless": false, + "public": false, + "category": "NVIDIA", + "startSsh": true, + "startJupyter": false, + "allowedCudaVersions": [] } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, @@ -15001,12 +16979,6 @@ "404": { "$ref": "#/components/responses/NotFoundError" }, - "413": { - "$ref": "#/components/responses/ResponseTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -15029,51 +17001,38 @@ } } } - } - }, - "/v2/serverless/{id}/metrics/workers": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "Serverless endpoint identifier", - "example": "ep_abc123" - } - ], - "get": { - "operationId": "getEndpointWorkerMetrics", - "x-runpod-scope": "serverless:read", - "summary": "Get serverless endpoint worker metrics", + }, + "patch": { + "operationId": "updateTemplate", + "x-runpod-scope": "templates:write", + "summary": "Update a template", "x-mint": { "metadata": { - "description": "Get worker counts by state for a Runpod Serverless endpoint as a time series." + "description": "Update selected fields on a Runpod template while preserving omitted settings, with ownership rules and behavior for existing resources." } }, - "description": "Returns the worker state series shown on the endpoint's Metrics tab in the console.\nFor the current worker list, use `GET /v2/serverless/{id}/workers`.\n\n**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are\noptional: `endTime` defaults to now and `startTime` to 24 hours before\n`endTime`, rounded down to the start of an `interval` bucket. An\n`endTime` in the future is treated as now. Metrics are kept for 90 days,\nso `startTime` must be within the last 90 days.\n\n**Interval.** Each record covers one `interval`-sized bucket, aligned to\nUTC.\n\n**Paging.** Records are oldest first, at most `limit` (default 1000) per\npage. Follow `pagination.nextCursor` while `pagination.hasNextPage` is\ntrue. The cursor keeps the first page's window, so `startTime`,\n`endTime`, and `interval` can be left out on later pages; if sent, they\nmust match the first page or the cursor is rejected with 422.\n\n**Sparse series.** Buckets with no activity are omitted, not zero-filled,\nso `records` can be shorter than the number of buckets in the window, or\nempty.\n\n**Snapshots.** Each record holds the last worker-count snapshot in its\nbucket, as point-in-time counts.\n", + "description": "Partially updates a template. This is a PATCH: only the fields\npresent in the body are changed; omitted fields are left untouched.\nSee `UpdateTemplateRequest` for the full body.\n\nMutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,\n`registry`, `mounts`, `serverless`, `public`, and `category`.\n\nOnly the template's owner can update it (authenticated via the\nrequest's API key); public catalog templates are readable via GET\nbut return `404` here. Returns `200` with the full updated template. Pods and\nendpoints already created from this template are not changed\nretroactively — the template is a snapshot applied at creation time.\n", "tags": [ - "Serverless" + "Templates" ], - "parameters": [ - { - "$ref": "#/components/parameters/MetricsStartTime" - }, - { - "$ref": "#/components/parameters/MetricsEndTime" - }, - { - "$ref": "#/components/parameters/MetricsInterval" - }, - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimit" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTemplateRequest" + }, + "examples": { + "renameTemplate": { + "summary": "Rename template", + "value": { + "name": "Renamed PyTorch Template" + } + } + } + } } - ], + }, "responses": { "200": { "headers": { @@ -15088,53 +17047,135 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EndpointWorkerMetricsResponse" + "$ref": "#/components/schemas/Template" }, "examples": { - "metrics": { + "template": { "summary": "Successful response", "value": { - "startTime": "2026-10-11T00:00:00Z", - "endTime": "2026-10-12T00:00:00Z", - "interval": "1h", - "records": [ - { - "time": "2026-10-11T13:00:00Z", - "running": 3, - "idle": 1, - "initializing": 0, - "throttled": 0, - "unhealthy": 0 + "id": "9x4m2p7v", + "name": "Renamed PyTorch Template", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "mounts": { + "persistent": { + "size": 20, + "path": "/workspace" } + }, + "ports": [ + "8888/http" ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } + "env": { + "JUPYTER_ENABLE_LAB": "yes" + }, + "registry": null, + "serverless": false, + "public": false, + "category": "NVIDIA", + "startSsh": true, + "startJupyter": false, + "allowedCudaVersions": [] } } } } } }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "400": { "$ref": "#/components/responses/BadRequestError" }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "operationId": "deleteTemplate", + "x-runpod-scope": "templates:write", + "summary": "Delete a template", + "x-mint": { + "metadata": { + "description": "Permanently delete an owned Runpod template by ID and understand restrictions when Pods or Serverless endpoints still reference it." + } + }, + "description": "Permanently deletes a template by ID. Only the template's owner can\ndelete it — public catalog templates return `404` here. Rejected if\nthe template is currently referenced by a pod (see that pod's\n`template` field) or bound to a serverless endpoint.\n", + "tags": [ + "Templates" + ], + "responses": { + "204": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Deleted. Response has no body." + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, + "400": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Template is in use by a pod or serverless endpoint and cannot be deleted", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "404": { "$ref": "#/components/responses/NotFoundError" }, - "413": { - "$ref": "#/components/responses/ResponseTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -15159,7 +17200,7 @@ } } }, - "/v2/serverless/{id}/workers/{workerId}/logs": { + "/v2/templates/{id}/readme": { "parameters": [ { "name": "id", @@ -15168,90 +17209,25 @@ "schema": { "type": "string" }, - "description": "Serverless endpoint identifier", - "example": "ep_abc123" - }, - { - "name": "workerId", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "Worker identifier (from GET /v2/serverless/{id}/workers)", - "example": "worker_abc" + "example": "tpl_abc" } ], "get": { - "operationId": "getWorkerLogs", - "x-runpod-scope": "serverless:read", - "summary": "Stream serverless worker logs", + "operationId": "getTemplateReadme", + "x-runpod-scope": "templates:read", + "summary": "Get a template README", "x-mint": { "metadata": { - "description": "Stream a Runpod Serverless worker's logs in real time as Server-Sent Events, with resumable reconnects via Last-Event-ID." + "description": "Retrieve the Markdown README of an owned or public Runpod template, with setup and usage instructions." } }, - "description": "Streams a serverless worker's logs as Server-Sent Events. The `source`\nquery parameter selects which log source to include.\n\nThe SSE `data` payload shape is:\n`{ \"source\": \"container\", \"line\": \"...\", \"ts\": \"...\" }`.\nLog-event `id` values are the event `ts` timestamp so browser/EventSource\nreconnects can resume with `Last-Event-ID`.\n", + "description": "Returns the template's README as raw Markdown. Serves the same\ntemplates as `GET /v2/templates/{id}`: templates you own and public\ncatalog templates. Returns `404` when the template does not exist,\nis not readable by you, or has no README.\n", "tags": [ - "Serverless" - ], - "parameters": [ - { - "$ref": "#/components/parameters/LogSourceParam" - }, - { - "$ref": "#/components/parameters/LogTail" - }, - { - "$ref": "#/components/parameters/LogSince" - }, - { - "$ref": "#/components/parameters/LogLastEventID" - } + "Templates" ], "responses": { "200": { - "description": "Worker log event stream", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - }, - "Cache-Control": { - "schema": { - "type": "string" - }, - "description": "Always `no-cache` for SSE responses." - }, - "Connection": { - "schema": { - "type": "string" - }, - "description": "Always `keep-alive` to hold the SSE stream open." - }, - "X-Accel-Buffering": { - "schema": { - "type": "string" - }, - "description": "Always `no` to disable proxy buffering of the SSE stream." - } - }, - "content": { - "text/event-stream": { - "schema": { - "type": "string", - "description": "Server-Sent Events stream. Each event includes an `id:` line and a JSON `data:` payload with `source`, `line`, and `ts` fields." - }, - "examples": { - "logLine": { - "summary": "Successful response", - "value": "id: 2026-06-01T12:05:04Z/000000000042\ndata: {\"ts\":\"2026-06-01T12:05:04Z\",\"source\":\"container\",\"line\":\"Worker ready.\"}\n" - } - } - } - } + "$ref": "#/components/responses/Readme" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -15286,21 +17262,24 @@ } } }, - "/v2/templates": { + "/v2/network-volumes": { "get": { - "operationId": "listTemplates", - "x-runpod-scope": "templates:read", - "summary": "List templates", - "description": "Returns templates owned by the authenticated user (including\nteam/organization-scoped ones), cursor-paginated; an omitted `limit`\ndefaults to 1000. Follow `pagination.nextCursor` until `hasNextPage`\nis false.\n", + "operationId": "listNetworkVolumes", + "x-runpod-scope": "volumes:read", + "summary": "List network volumes", "x-mint": { "metadata": { - "description": "List all reusable Runpod templates owned by the authenticated user, including Pod and Serverless container configuration details." + "description": "List all network volumes owned by the authenticated Runpod user, including each volume's size, data center, and storage tier." } }, + "description": "Returns network volumes owned by the authenticated user,\ncursor-paginated newest-first; an omitted `limit` defaults to 1000.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", "tags": [ - "Templates" + "Network Volumes" ], "parameters": [ + { + "$ref": "#/components/parameters/ResourceFilters" + }, { "$ref": "#/components/parameters/PaginationCursor" }, @@ -15322,38 +17301,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListTemplatesResponse" + "$ref": "#/components/schemas/ListNetworkVolumesResponse" }, "examples": { - "templates": { + "networkVolumes": { "summary": "Successful response", "value": { - "templates": [ + "networkVolumes": [ { - "id": "9x4m2p7v", - "name": "PyTorch GPU Template", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "ports": [ - "8888/http" - ], - "env": { - "JUPYTER_ENABLE_LAB": "yes" - }, - "registry": null, - "serverless": false, - "public": false, - "category": "NVIDIA", - "startSsh": true, - "startJupyter": false, - "allowedCudaVersions": [] + "id": "2q9m7x4c", + "name": "training-dataset", + "size": 100, + "dataCenter": "US-KS-2", + "type": "HIGH_PERFORMANCE" } ], "pagination": { @@ -15375,6 +17335,9 @@ "413": { "$ref": "#/components/responses/ResponseTooLargeError" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -15399,47 +17362,33 @@ } }, "post": { - "operationId": "createTemplate", - "x-runpod-scope": "templates:write", - "summary": "Create a template", + "operationId": "createNetworkVolume", + "x-runpod-scope": "volumes:write", + "summary": "Create a network volume", "x-mint": { "metadata": { - "description": "Create a reusable Runpod template for Pod and Serverless container settings, including images, storage, ports, environment, and mounts." + "description": "Create a persistent Runpod network volume with a name, size, data center, and storage tier for use by Pods and Serverless workers." } }, - "description": "Creates a reusable container-configuration preset — image, disk,\nports, env, registry, and mount settings — for pods and serverless\nendpoints. Pass its ID as `templateId` to `createPod` or\n`createEndpoint`, or spread its fields into the request body\ndirectly. Returns the created template.\n", + "description": "Provisions a new network volume — persistent, network-attached\nstorage that can be mounted into pods and serverless workers.\nRequired inputs are `name`, `size` (in GB), and `dataCenter`; an\noptional `type` selects the storage tier and is immutable after\ncreation. See `CreateNetworkVolumeRequest` for the size bounds and\ntier options.\n\nThis creates a billable persistent resource that keeps incurring\nstorage charges until it is deleted. Returns `201` with the created\nnetwork volume, including its assigned `id`.\n", "tags": [ - "Templates" + "Network Volumes" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTemplateRequest" + "$ref": "#/components/schemas/CreateNetworkVolumeRequest" }, "examples": { - "podTemplate": { - "summary": "Pod template", + "networkVolume": { + "summary": "Network volume", "value": { - "name": "PyTorch GPU Template", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "category": "NVIDIA", - "disk": 50, - "ports": [ - "8888/http" - ], - "env": { - "JUPYTER_ENABLE_LAB": "yes" - }, - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "serverless": false, - "public": false + "name": "training-dataset", + "dataCenter": "US-KS-2", + "size": 50, + "type": "HIGH_PERFORMANCE" } } } @@ -15460,36 +17409,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Template" + "$ref": "#/components/schemas/NetworkVolume" }, "examples": { - "template": { + "networkVolume": { "summary": "Successful response", "value": { - "id": "9x4m2p7v", - "name": "PyTorch GPU Template", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "ports": [ - "8888/http" - ], - "env": { - "JUPYTER_ENABLE_LAB": "yes" - }, - "registry": null, - "serverless": false, - "public": false, - "category": "NVIDIA", - "startSsh": true, - "startJupyter": false, - "allowedCudaVersions": [] + "id": "2q9m7x4c", + "name": "training-dataset", + "size": 50, + "dataCenter": "US-KS-2", + "type": "HIGH_PERFORMANCE" } } } @@ -15535,7 +17465,7 @@ } } }, - "/v2/templates/{id}": { + "/v2/network-volumes/{id}": { "parameters": [ { "name": "id", @@ -15544,21 +17474,22 @@ "schema": { "type": "string" }, - "example": "tpl_abc" + "description": "Network volume identifier", + "example": "agv6w2qcg7" } ], "get": { - "operationId": "getTemplate", - "x-runpod-scope": "templates:read", - "summary": "Get a template", + "operationId": "getNetworkVolume", + "x-runpod-scope": "volumes:read", + "summary": "Get a network volume", "x-mint": { "metadata": { - "description": "Retrieve the complete configuration of an owned or public Runpod template by ID, including settings used to create Pods and endpoints." + "description": "Retrieve a Runpod network volume by ID with its name, size, data center, storage tier, and current resource details." } }, - "description": "Returns the full configuration of a single template by ID. Serves\nboth templates you own and public catalog templates — everything you\ncan read. Updates and deletes remain restricted to templates you own.\n", + "description": "Returns a single network volume by ID.", "tags": [ - "Templates" + "Network Volumes" ], "responses": { "200": { @@ -15574,36 +17505,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Template" + "$ref": "#/components/schemas/NetworkVolume" }, "examples": { - "template": { + "networkVolume": { "summary": "Successful response", "value": { - "id": "9x4m2p7v", - "name": "PyTorch GPU Template", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "ports": [ - "8888/http" - ], - "env": { - "JUPYTER_ENABLE_LAB": "yes" - }, - "registry": null, - "serverless": false, - "public": false, - "category": "NVIDIA", - "startSsh": true, - "startJupyter": false, - "allowedCudaVersions": [] + "id": "2q9m7x4c", + "name": "training-dataset", + "size": 100, + "dataCenter": "US-KS-2", + "type": "HIGH_PERFORMANCE" } } } @@ -15643,30 +17555,30 @@ } }, "patch": { - "operationId": "updateTemplate", - "x-runpod-scope": "templates:write", - "summary": "Update a template", + "operationId": "updateNetworkVolume", + "x-runpod-scope": "volumes:write", + "summary": "Update a network volume", "x-mint": { "metadata": { - "description": "Update selected fields on a Runpod template while preserving omitted settings, with ownership rules and behavior for existing resources." + "description": "Update a Runpod network volume's mutable fields, such as its name or size. Size can only be increased, never reduced." } }, - "description": "Partially updates a template. This is a PATCH: only the fields\npresent in the body are changed; omitted fields are left untouched.\nSee `UpdateTemplateRequest` for the full body.\n\nMutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,\n`registry`, `mounts`, `serverless`, `public`, and `category`.\n\nOnly the template's owner can update it (authenticated via the\nrequest's API key); public catalog templates are readable via GET\nbut return `404` here. Returns `200` with the full updated template. Pods and\nendpoints already created from this template are not changed\nretroactively — the template is a snapshot applied at creation time.\n", + "description": "Updates mutable fields on a network volume. Only provided fields are changed.\nNote: `size` may only increase; attempts to reduce size will be rejected.\n", "tags": [ - "Templates" + "Network Volumes" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateTemplateRequest" + "$ref": "#/components/schemas/UpdateNetworkVolumeRequest" }, "examples": { - "renameTemplate": { - "summary": "Rename template", + "resizeNetworkVolume": { + "summary": "Resize network volume", "value": { - "name": "Renamed PyTorch Template" + "size": 200 } } } @@ -15687,36 +17599,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Template" + "$ref": "#/components/schemas/NetworkVolume" }, "examples": { - "template": { + "networkVolume": { "summary": "Successful response", "value": { - "id": "9x4m2p7v", - "name": "Renamed PyTorch Template", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "mounts": { - "persistent": { - "size": 20, - "path": "/workspace" - } - }, - "ports": [ - "8888/http" - ], - "env": { - "JUPYTER_ENABLE_LAB": "yes" - }, - "registry": null, - "serverless": false, - "public": false, - "category": "NVIDIA", - "startSsh": true, - "startJupyter": false, - "allowedCudaVersions": [] + "id": "2q9m7x4c", + "name": "training-dataset", + "size": 200, + "dataCenter": "US-KS-2", + "type": "HIGH_PERFORMANCE" } } } @@ -15729,12 +17622,27 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "400": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Invalid request body or size decrease attempted", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "404": { "$ref": "#/components/responses/NotFoundError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -15765,17 +17673,17 @@ } }, "delete": { - "operationId": "deleteTemplate", - "x-runpod-scope": "templates:write", - "summary": "Delete a template", + "operationId": "deleteNetworkVolume", + "x-runpod-scope": "volumes:write", + "summary": "Delete a network volume", "x-mint": { "metadata": { - "description": "Permanently delete an owned Runpod template by ID and understand restrictions when Pods or Serverless endpoints still reference it." + "description": "Permanently delete a Runpod network volume, release its persistent storage, and confirm the removed volume in the response." } }, - "description": "Permanently deletes a template by ID. Only the template's owner can\ndelete it — public catalog templates return `404` here. Rejected if\nthe template is currently referenced by a pod (see that pod's\n`template` field) or bound to a serverless endpoint.\n", + "description": "Permanently deletes a network volume and releases its storage.", "tags": [ - "Templates" + "Network Volumes" ], "responses": { "204": { @@ -15795,31 +17703,10 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Template is in use by a pod or serverless endpoint and cannot be deleted", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, "404": { "$ref": "#/components/responses/NotFoundError" }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" - }, - "default": { + "409": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -15828,7 +17715,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Error", + "description": "The volume was created less than five minutes ago. Retry after the time given in the detail.", "content": { "application/problem+json": { "schema": { @@ -15836,47 +17723,6 @@ } } } - } - } - } - }, - "/v2/templates/{id}/readme": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "example": "tpl_abc" - } - ], - "get": { - "operationId": "getTemplateReadme", - "x-runpod-scope": "templates:read", - "summary": "Get a template README", - "x-mint": { - "metadata": { - "description": "Retrieve the Markdown README of an owned or public Runpod template, with setup and usage instructions." - } - }, - "description": "Returns the template's README as raw Markdown. Serves the same\ntemplates as `GET /v2/templates/{id}`: templates you own and public\ncatalog templates. Returns `404` when the template does not exist,\nis not readable by you, or has no README.\n", - "tags": [ - "Templates" - ], - "responses": { - "200": { - "$ref": "#/components/responses/TemplateReadme" - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "404": { - "$ref": "#/components/responses/NotFoundError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -15902,24 +17748,21 @@ } } }, - "/v2/network-volumes": { + "/v2/global-volumes": { "get": { - "operationId": "listNetworkVolumes", + "operationId": "listGlobalVolumes", "x-runpod-scope": "volumes:read", - "summary": "List network volumes", + "summary": "List global volumes", "x-mint": { "metadata": { - "description": "List all network volumes owned by the authenticated Runpod user, including each volume's size, data center, and storage tier." + "description": "List global volumes owned by your Runpod account through the REST API, using cursor pagination to retrieve additional results." } }, - "description": "Returns network volumes owned by the authenticated user,\ncursor-paginated newest-first; an omitted `limit` defaults to 1000.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", + "description": "Returns global volumes owned by the authenticated user,\ncursor-paginated newest-first; an omitted `limit` defaults to 1000.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", "tags": [ - "Network Volumes" + "Global Volumes" ], "parameters": [ - { - "$ref": "#/components/parameters/ResourceFilters" - }, { "$ref": "#/components/parameters/PaginationCursor" }, @@ -15941,19 +17784,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListNetworkVolumesResponse" + "$ref": "#/components/schemas/ListGlobalVolumesResponse" }, "examples": { - "networkVolumes": { + "globalVolumes": { "summary": "Successful response", "value": { - "networkVolumes": [ + "globalVolumes": [ { - "id": "2q9m7x4c", - "name": "training-dataset", - "size": 100, - "dataCenter": "US-KS-2", - "type": "HIGH_PERFORMANCE" + "id": "gsb_abc", + "name": "training-data", + "createdAt": "2026-09-24T00:00:00Z", + "createdByUserId": "user_123" } ], "pagination": { @@ -16002,33 +17844,30 @@ } }, "post": { - "operationId": "createNetworkVolume", + "operationId": "createGlobalVolume", "x-runpod-scope": "volumes:write", - "summary": "Create a network volume", + "summary": "Create a global volume", "x-mint": { "metadata": { - "description": "Create a persistent Runpod network volume with a name, size, data center, and storage tier for use by Pods and Serverless workers." + "description": "Create a named Runpod global volume through the REST API for storage that Pods and Serverless workers can access across data centers." } }, - "description": "Provisions a new network volume — persistent, network-attached\nstorage that can be mounted into pods and serverless workers.\nRequired inputs are `name`, `size` (in GB), and `dataCenter`; an\noptional `type` selects the storage tier and is immutable after\ncreation. See `CreateNetworkVolumeRequest` for the size bounds and\ntier options.\n\nThis creates a billable persistent resource that keeps incurring\nstorage charges until it is deleted. Returns `201` with the created\nnetwork volume, including its assigned `id`.\n", + "description": "Provisions a new global volume — storage that mounts into workloads\nin any data center. Only a `name` is required; storage is provisioned\nfor you. Accounts have a cap on how many global volumes they can\nhold; creating one past it fails with `400`.\n\nReturns `201` with the created global volume, including its assigned\n`id`.\n", "tags": [ - "Network Volumes" + "Global Volumes" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateNetworkVolumeRequest" + "$ref": "#/components/schemas/CreateGlobalVolumeRequest" }, "examples": { - "networkVolume": { - "summary": "Network volume", + "globalVolume": { + "summary": "Global volume", "value": { - "name": "training-dataset", - "dataCenter": "US-KS-2", - "size": 50, - "type": "HIGH_PERFORMANCE" + "name": "training-data" } } } @@ -16049,32 +17888,31 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkVolume" + "$ref": "#/components/schemas/GlobalVolume" }, "examples": { - "networkVolume": { + "globalVolume": { "summary": "Successful response", "value": { - "id": "2q9m7x4c", - "name": "training-dataset", - "size": 50, - "dataCenter": "US-KS-2", - "type": "HIGH_PERFORMANCE" + "id": "gsb_abc", + "name": "training-data", + "createdAt": "2026-09-24T00:00:00Z", + "createdByUserId": "user_123" } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -16105,7 +17943,7 @@ } } }, - "/v2/network-volumes/{id}": { + "/v2/global-volumes/{id}": { "parameters": [ { "name": "id", @@ -16114,22 +17952,22 @@ "schema": { "type": "string" }, - "description": "Network volume identifier", - "example": "agv6w2qcg7" + "description": "Global volume identifier", + "example": "gsb_abc" } ], "get": { - "operationId": "getNetworkVolume", + "operationId": "getGlobalVolume", "x-runpod-scope": "volumes:read", - "summary": "Get a network volume", + "summary": "Get a global volume", "x-mint": { "metadata": { - "description": "Retrieve a Runpod network volume by ID with its name, size, data center, storage tier, and current resource details." + "description": "Retrieve a Runpod global volume by its ID through the REST API, including its name, creation time, and the user who created it." } }, - "description": "Returns a single network volume by ID.", + "description": "Returns a single global volume by ID.", "tags": [ - "Network Volumes" + "Global Volumes" ], "responses": { "200": { @@ -16145,17 +17983,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkVolume" + "$ref": "#/components/schemas/GlobalVolume" }, "examples": { - "networkVolume": { + "globalVolume": { "summary": "Successful response", "value": { - "id": "2q9m7x4c", - "name": "training-dataset", - "size": 100, - "dataCenter": "US-KS-2", - "type": "HIGH_PERFORMANCE" + "id": "gsb_abc", + "name": "training-data", + "createdAt": "2026-09-24T00:00:00Z", + "createdByUserId": "user_123" } } } @@ -16195,30 +18032,30 @@ } }, "patch": { - "operationId": "updateNetworkVolume", + "operationId": "updateGlobalVolume", "x-runpod-scope": "volumes:write", - "summary": "Update a network volume", + "summary": "Update a global volume", "x-mint": { "metadata": { - "description": "Update a Runpod network volume's mutable fields, such as its name or size. Size can only be increased, never reduced." + "description": "Rename an existing Runpod global volume by ID through the REST API, updating its name while leaving omitted fields unchanged." } }, - "description": "Updates mutable fields on a network volume. Only provided fields are changed.\nNote: `size` may only increase; attempts to reduce size will be rejected.\n", + "description": "Updates mutable fields on a global volume. Only provided fields are changed.", "tags": [ - "Network Volumes" + "Global Volumes" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateNetworkVolumeRequest" + "$ref": "#/components/schemas/UpdateGlobalVolumeRequest" }, "examples": { - "resizeNetworkVolume": { - "summary": "Resize network volume", + "renameGlobalVolume": { + "summary": "Rename global volume", "value": { - "size": 200 + "name": "renamed-volume" } } } @@ -16239,30 +18076,44 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkVolume" + "$ref": "#/components/schemas/GlobalVolume" }, "examples": { - "networkVolume": { + "globalVolume": { "summary": "Successful response", "value": { - "id": "2q9m7x4c", - "name": "training-dataset", - "size": 200, - "dataCenter": "US-KS-2", - "type": "HIGH_PERFORMANCE" + "id": "gsb_abc", + "name": "renamed-volume", + "createdAt": "2026-09-24T00:00:00Z", + "createdByUserId": "user_123" } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16271,7 +18122,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Invalid request body or size decrease attempted", + "description": "Error", "content": { "application/problem+json": { "schema": { @@ -16279,15 +18130,60 @@ } } } + } + } + }, + "delete": { + "operationId": "deleteGlobalVolume", + "x-runpod-scope": "volumes:write", + "summary": "Delete a global volume", + "x-mint": { + "metadata": { + "description": "Permanently delete a Runpod global volume and its stored data through the REST API after removing Pod and Serverless attachments." + } + }, + "description": "Permanently deletes a global volume and its stored data. Fails with\n`409` while the volume is still mounted: terminate every pod that\nmounts it (stopped pods count) and detach it from every serverless\nendpoint first. Nothing is detached or terminated on your behalf.\n", + "tags": [ + "Global Volumes" + ], + "responses": { + "204": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Deleted. Response has no body." + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" }, "404": { "$ref": "#/components/responses/NotFoundError" }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "409": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "The volume is still mounted by a pod or serverless endpoint.", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -16311,22 +18207,24 @@ } } } - }, - "delete": { - "operationId": "deleteNetworkVolume", - "x-runpod-scope": "volumes:write", - "summary": "Delete a network volume", + } + }, + "/v2/registries": { + "get": { + "operationId": "listRegistries", + "x-runpod-scope": "secrets:read", + "summary": "List container registries", "x-mint": { "metadata": { - "description": "Permanently delete a Runpod network volume, release its persistent storage, and confirm the removed volume in the response." + "description": "List all container registry credentials owned by the authenticated Runpod user, with secret usernames and passwords excluded." } }, - "description": "Permanently deletes a network volume and releases its storage.", + "description": "Returns all container registry credentials owned by the authenticated user.", "tags": [ - "Network Volumes" + "Registries" ], "responses": { - "204": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16335,7 +18233,27 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Deleted. Response has no body." + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListRegistriesResponse" + }, + "examples": { + "registries": { + "summary": "Successful response", + "value": { + "registries": [ + { + "id": "6n2k8v4d", + "name": "dockerhub-private" + } + ] + } + } + } + } + } }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -16343,10 +18261,10 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "429": { + "$ref": "#/components/responses/TooManyRequestsError" }, - "409": { + "default": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16355,7 +18273,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "The volume was created less than five minutes ago. Retry after the time given in the detail.", + "description": "Error", "content": { "application/problem+json": { "schema": { @@ -16363,6 +18281,84 @@ } } } + } + } + }, + "post": { + "operationId": "createRegistry", + "x-runpod-scope": "secrets:write", + "summary": "Create a container registry credential", + "x-mint": { + "metadata": { + "description": "Store credentials for a private container registry in Runpod for authenticated image pulls while keeping the saved secrets write-only." + } + }, + "description": "Stores credentials for a private container registry. Credentials are write-only.", + "tags": [ + "Registries" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateRegistryRequest" + }, + "examples": { + "dockerHubRegistry": { + "summary": "Docker Hub registry", + "value": { + "name": "dockerhub-private", + "username": "runpod-user", + "password": "correct-horse-battery-staple" + } + } + } + } + } + }, + "responses": { + "201": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Registry" + }, + "examples": { + "registry": { + "summary": "Successful response", + "value": { + "id": "6n2k8v4d", + "name": "dockerhub-private" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, + "413": { + "$ref": "#/components/responses/RequestTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -16388,27 +18384,31 @@ } } }, - "/v2/global-volumes": { + "/v2/registries/{id}": { + "x-runpod-sensitive-request": true, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "example": "reg_abc" + } + ], "get": { - "operationId": "listGlobalVolumes", - "x-runpod-scope": "volumes:read", - "summary": "List global volumes", + "operationId": "getRegistry", + "x-runpod-scope": "secrets:read", + "summary": "Get a container registry credential", "x-mint": { "metadata": { - "description": "List global volumes owned by your Runpod account through the REST API, using cursor pagination to retrieve additional results." + "description": "Retrieve a Runpod container registry credential by ID while keeping stored usernames and passwords excluded from the response." } }, - "description": "Returns global volumes owned by the authenticated user,\ncursor-paginated newest-first; an omitted `limit` defaults to 1000.\nFollow `pagination.nextCursor` until `hasNextPage` is false.\n", + "description": "Returns a single container registry credential by ID. `username` and\n`password` are never included in the response — credentials are\nwrite-only, matching `createRegistry`.\n", "tags": [ - "Global Volumes" - ], - "parameters": [ - { - "$ref": "#/components/parameters/PaginationCursor" - }, - { - "$ref": "#/components/parameters/PaginationLimit" - } + "Registries" ], "responses": { "200": { @@ -16424,24 +18424,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListGlobalVolumesResponse" + "$ref": "#/components/schemas/Registry" }, "examples": { - "globalVolumes": { + "registry": { "summary": "Successful response", "value": { - "globalVolumes": [ - { - "id": "gsb_abc", - "name": "training-data", - "createdAt": "2026-09-24T00:00:00Z", - "createdByUserId": "user_123" - } - ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } + "id": "6n2k8v4d", + "name": "dockerhub-private" } } } @@ -16454,11 +18444,8 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "413": { - "$ref": "#/components/responses/ResponseTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" + "404": { + "$ref": "#/components/responses/NotFoundError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -16483,31 +18470,32 @@ } } }, - "post": { - "operationId": "createGlobalVolume", - "x-runpod-scope": "volumes:write", - "summary": "Create a global volume", + "patch": { + "operationId": "updateRegistry", + "x-runpod-scope": "secrets:write", + "summary": "Update a container registry credential", "x-mint": { "metadata": { - "description": "Create a named Runpod global volume through the REST API for storage that Pods and Serverless workers can access across data centers." + "description": "Rotate the username and password of a Runpod container registry credential in place, without repointing the Pods, templates, and Serverless endpoints that use it." } }, - "description": "Provisions a new global volume — storage that mounts into workloads\nin any data center. Only a `name` is required; storage is provisioned\nfor you. Accounts have a cap on how many global volumes they can\nhold; creating one past it fails with `400`.\n\nReturns `201` with the created global volume, including its assigned\n`id`.\n", + "description": "Replaces the username and password stored in a container registry\ncredential. The ID and `name` stay the same, so every pod, template,\nand Serverless endpoint that references the credential keeps\nreferencing it and needs no change.\n\nSend both `username` and `password`, even when only one of them\nchanged. They are stored together and are write-only, so there is no\nstored value to keep for an omitted field.\n\nThe new credentials apply to image pulls that start after the update.\nRunning pods and workers keep the image they already pulled.\n", "tags": [ - "Global Volumes" + "Registries" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateGlobalVolumeRequest" + "$ref": "#/components/schemas/UpdateRegistryRequest" }, "examples": { - "globalVolume": { - "summary": "Global volume", + "rotatePassword": { + "summary": "Rotate the password", "value": { - "name": "training-data" + "username": "runpod-user", + "password": "new-correct-horse-battery-staple" } } } @@ -16515,7 +18503,7 @@ } }, "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16524,20 +18512,18 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Created", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalVolume" + "$ref": "#/components/schemas/Registry" }, "examples": { - "globalVolume": { + "registry": { "summary": "Successful response", "value": { - "id": "gsb_abc", - "name": "training-data", - "createdAt": "2026-09-24T00:00:00Z", - "createdByUserId": "user_123" + "id": "6n2k8v4d", + "name": "dockerhub-private" } } } @@ -16553,6 +18539,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, @@ -16581,33 +18570,95 @@ } } } - } - }, - "/v2/global-volumes/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" + }, + "delete": { + "operationId": "deleteRegistry", + "x-runpod-scope": "secrets:write", + "summary": "Delete a container registry credential", + "x-mint": { + "metadata": { + "description": "Delete a Runpod container registry credential by ID and understand how active Pods and templates that reference it are handled." + } + }, + "description": "Permanently deletes a container registry credential by ID. Rejected\nif any pod currently uses this credential to pull its image.\nTemplates that reference it are not part of that check — they\nsilently lose the reference (`registry` becomes null) instead of\nblocking the delete.\n", + "tags": [ + "Registries" + ], + "responses": { + "204": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Deleted. Response has no body." }, - "description": "Global volume identifier", - "example": "gsb_abc" + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "400": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Registry credential is in use by a pod and cannot be deleted", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ], + } + }, + "/v2/registries/delegations": { "get": { - "operationId": "getGlobalVolume", - "x-runpod-scope": "volumes:read", - "summary": "Get a global volume", + "operationId": "listDelegations", + "x-runpod-scope": "secrets:read", + "summary": "List all ECR delegations", "x-mint": { "metadata": { - "description": "Retrieve a Runpod global volume by its ID through the REST API, including its name, creation time, and the user who created it." + "description": "List the Amazon ECR delegations that let Runpod pull private container images from your AWS registries." } }, - "description": "Returns a single global volume by ID.", "tags": [ - "Global Volumes" + "Registries" ], "responses": { "200": { @@ -16623,18 +18674,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalVolume" - }, - "examples": { - "globalVolume": { - "summary": "Successful response", - "value": { - "id": "gsb_abc", - "name": "training-data", - "createdAt": "2026-09-24T00:00:00Z", - "createdByUserId": "user_123" - } - } + "$ref": "#/components/schemas/ListDelegationsResponse" } } } @@ -16645,9 +18685,6 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -16671,39 +18708,30 @@ } } }, - "patch": { - "operationId": "updateGlobalVolume", - "x-runpod-scope": "volumes:write", - "summary": "Update a global volume", + "post": { + "operationId": "createDelegation", + "x-runpod-scope": "secrets:write", + "summary": "Register an ECR delegation", "x-mint": { "metadata": { - "description": "Rename an existing Runpod global volume by ID through the REST API, updating its name while leaving omitted fields unchanged." + "description": "Register an Amazon ECR delegation that lets Runpod pull private container images from your AWS registry for Pods and Serverless endpoints." } }, - "description": "Updates mutable fields on a global volume. Only provided fields are changed.", "tags": [ - "Global Volumes" + "Registries" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateGlobalVolumeRequest" - }, - "examples": { - "renameGlobalVolume": { - "summary": "Rename global volume", - "value": { - "name": "renamed-volume" - } - } + "$ref": "#/components/schemas/CreateDelegationRequest" } } } }, "responses": { - "200": { + "201": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16712,44 +18740,27 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "OK", + "description": "Delegation created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalVolume" - }, - "examples": { - "globalVolume": { - "summary": "Successful response", - "value": { - "id": "gsb_abc", - "name": "renamed-volume", - "createdAt": "2026-09-24T00:00:00Z", - "createdByUserId": "user_123" - } - } + "$ref": "#/components/schemas/EcrDelegation" } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "400": { + "$ref": "#/components/responses/BadRequestError" }, "413": { "$ref": "#/components/responses/RequestTooLargeError" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -16772,19 +18783,31 @@ } } } - }, + } + }, + "/v2/registries/delegations/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "example": "deleg_abc" + } + ], "delete": { - "operationId": "deleteGlobalVolume", - "x-runpod-scope": "volumes:write", - "summary": "Delete a global volume", + "operationId": "revokeDelegation", + "x-runpod-scope": "secrets:write", + "summary": "Revoke an ECR delegation", "x-mint": { "metadata": { - "description": "Permanently delete a Runpod global volume and its stored data through the REST API after removing Pod and Serverless attachments." + "description": "Revoke an Amazon ECR delegation so Runpod can no longer pull private container images from that AWS registry on your behalf." } }, - "description": "Permanently deletes a global volume and its stored data. Fails with\n`409` while the volume is still mounted: terminate every pod that\nmounts it (stopped pods count) and detach it from every serverless\nendpoint first. Nothing is detached or terminated on your behalf.\n", "tags": [ - "Global Volumes" + "Registries" ], "responses": { "204": { @@ -16796,7 +18819,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Deleted. Response has no body." + "description": "Delegation revoked" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -16805,9 +18828,6 @@ "$ref": "#/components/responses/ForbiddenError" }, "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "409": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16816,7 +18836,7 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "The volume is still mounted by a pod or serverless endpoint.", + "description": "Delegation not found", "content": { "application/problem+json": { "schema": { @@ -16849,116 +18869,51 @@ } } }, - "/v2/registries": { + "/v2/catalog/gpus": { "get": { - "operationId": "listRegistries", - "x-runpod-scope": "secrets:read", - "summary": "List container registries", + "operationId": "listGpuTypes", + "x-runpod-scope": "catalog:read", + "summary": "List GPU types", "x-mint": { "metadata": { - "description": "List all container registry credentials owned by the authenticated Runpod user, with secret usernames and passwords excluded." + "description": "List available Runpod GPU types with pricing and optional availability filters by product, country, and deployment context." } }, - "description": "Returns all container registry credentials owned by the authenticated user.", + "description": "Returns available GPU types with pricing. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context. With countryCodes, the list is narrowed to GPU types deployable in those countries, so \"this geography + this chip\" resolves in one read.", "tags": [ - "Registries" + "Catalog" ], - "responses": { - "200": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListRegistriesResponse" - }, - "examples": { - "registries": { - "summary": "Successful response", - "value": { - "registries": [ - { - "id": "6n2k8v4d", - "name": "dockerhub-private" - } - ] - } - } - } - } - } + "parameters": [ + { + "$ref": "#/components/parameters/CatalogIncludeParam" }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" + { + "$ref": "#/components/parameters/GpuProductFilter" }, - "403": { - "$ref": "#/components/responses/ForbiddenError" + { + "$ref": "#/components/parameters/GpuCountFilter" }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" + { + "$ref": "#/components/parameters/GpuCloudFilter" }, - "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Error", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "post": { - "operationId": "createRegistry", - "x-runpod-scope": "secrets:write", - "summary": "Create a container registry credential", - "x-mint": { - "metadata": { - "description": "Store credentials for a private container registry in Runpod for authenticated image pulls while keeping the saved secrets write-only." + { + "$ref": "#/components/parameters/CountryCodesFilter" + }, + { + "$ref": "#/components/parameters/CudaVersionsFilter" + }, + { + "$ref": "#/components/parameters/MinCudaVersionFilter" + }, + { + "$ref": "#/components/parameters/MinVcpuCountPerGpuFilter" + }, + { + "$ref": "#/components/parameters/MinRamPerGpuFilter" } - }, - "description": "Stores credentials for a private container registry. Credentials are write-only.", - "tags": [ - "Registries" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateRegistryRequest" - }, - "examples": { - "dockerHubRegistry": { - "summary": "Docker Hub registry", - "value": { - "name": "dockerhub-private", - "username": "runpod-user", - "password": "correct-horse-battery-staple" - } - } - } - } - } - }, "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -16967,18 +18922,44 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Created", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Registry" + "$ref": "#/components/schemas/ListGpuTypesResponse" }, "examples": { - "registry": { + "gpus": { "summary": "Successful response", "value": { - "id": "6n2k8v4d", - "name": "dockerhub-private" + "gpus": [ + { + "id": "NVIDIA GeForce RTX 4090", + "name": "RTX 4090", + "pool": "ADA_24", + "manufacturer": "NVIDIA", + "memory": 24, + "secure": true, + "community": true, + "price": { + "secure": 0.44, + "community": 0.31, + "serverless": 1.1 + }, + "maxCount": { + "secure": 8, + "community": 4 + }, + "availability": "HIGH", + "dataCenters": [ + { + "id": "US-KS-2", + "name": "US Kansas 2", + "availability": "HIGH" + } + ] + } + ] } } } @@ -16991,15 +18972,6 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17024,8 +18996,7 @@ } } }, - "/v2/registries/{id}": { - "x-runpod-sensitive-request": true, + "/v2/catalog/gpus/{id}": { "parameters": [ { "name": "id", @@ -17034,21 +19005,50 @@ "schema": { "type": "string" }, - "example": "reg_abc" + "example": "NVIDIA GeForce RTX 4090" } ], "get": { - "operationId": "getRegistry", - "x-runpod-scope": "secrets:read", - "summary": "Get a container registry credential", + "operationId": "getGpuType", + "x-runpod-scope": "catalog:read", + "summary": "Get a GPU type", "x-mint": { "metadata": { - "description": "Retrieve a Runpod container registry credential by ID while keeping stored usernames and passwords excluded from the response." + "description": "Retrieve one Runpod GPU type with pricing and optional availability details for a specified product and deployment context." } }, - "description": "Returns a single container registry credential by ID. `username` and\n`password` are never included in the response — credentials are\nwrite-only, matching `createRegistry`.\n", + "description": "Returns a single GPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.", "tags": [ - "Registries" + "Catalog" + ], + "parameters": [ + { + "$ref": "#/components/parameters/CatalogIncludeParam" + }, + { + "$ref": "#/components/parameters/GpuProductFilter" + }, + { + "$ref": "#/components/parameters/GpuCountFilter" + }, + { + "$ref": "#/components/parameters/GpuCloudFilter" + }, + { + "$ref": "#/components/parameters/CountryCodesFilter" + }, + { + "$ref": "#/components/parameters/CudaVersionsFilter" + }, + { + "$ref": "#/components/parameters/MinCudaVersionFilter" + }, + { + "$ref": "#/components/parameters/MinVcpuCountPerGpuFilter" + }, + { + "$ref": "#/components/parameters/MinRamPerGpuFilter" + } ], "responses": { "200": { @@ -17064,14 +19064,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Registry" + "$ref": "#/components/schemas/GpuType" }, "examples": { - "registry": { + "gpu": { "summary": "Successful response", "value": { - "id": "6n2k8v4d", - "name": "dockerhub-private" + "id": "NVIDIA GeForce RTX 4090", + "name": "RTX 4090", + "pool": "ADA_24", + "manufacturer": "NVIDIA", + "memory": 24, + "secure": true, + "community": true, + "price": { + "secure": 0.44, + "community": 0.31, + "serverless": 1.1 + }, + "maxCount": { + "secure": 8, + "community": 4 + }, + "availability": "HIGH", + "dataCenters": [ + { + "id": "US-KS-2", + "name": "US Kansas 2", + "availability": "HIGH" + } + ] } } } @@ -17109,39 +19131,33 @@ } } } - }, - "patch": { - "operationId": "updateRegistry", - "x-runpod-scope": "secrets:write", - "summary": "Update a container registry credential", + } + }, + "/v2/catalog/cpus": { + "get": { + "operationId": "listCpuTypes", + "x-runpod-scope": "catalog:read", + "summary": "List CPU types", "x-mint": { "metadata": { - "description": "Rotate the username and password of a Runpod container registry credential in place, without repointing the Pods, templates, and Serverless endpoints that use it." + "description": "List available Runpod CPU types with pricing and optional availability details for a specified product and deployment context." } }, - "description": "Replaces the username and password stored in a container registry\ncredential. The ID and `name` stay the same, so every pod, template,\nand Serverless endpoint that references the credential keeps\nreferencing it and needs no change.\n\nSend both `username` and `password`, even when only one of them\nchanged. They are stored together and are write-only, so there is no\nstored value to keep for an omitted field.\n\nThe new credentials apply to image pulls that start after the update.\nRunning pods and workers keep the image they already pulled.\n", + "description": "Returns available CPU flavors. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.", "tags": [ - "Registries" + "Catalog" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateRegistryRequest" - }, - "examples": { - "rotatePassword": { - "summary": "Rotate the password", - "value": { - "username": "runpod-user", - "password": "new-correct-horse-battery-staple" - } - } - } - } + "parameters": [ + { + "$ref": "#/components/parameters/CatalogIncludeParam" + }, + { + "$ref": "#/components/parameters/CpuProductFilter" + }, + { + "$ref": "#/components/parameters/CpuVCPUCountFilter" } - }, + ], "responses": { "200": { "headers": { @@ -17156,38 +19172,48 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Registry" + "$ref": "#/components/schemas/ListCpuTypesResponse" }, "examples": { - "registry": { + "cpus": { "summary": "Successful response", "value": { - "id": "6n2k8v4d", - "name": "dockerhub-private" + "cpus": [ + { + "id": "cpu3c-2-4", + "name": "Compute-Optimized", + "group": "Gen 3", + "vcpu": { + "min": 2, + "max": 32 + }, + "ramGbPerVcpu": 2.5, + "price": { + "securePerVcpu": 0.04, + "serverlessPerVcpu": 0.03 + }, + "availability": "MEDIUM", + "dataCenters": [ + { + "id": "US-KS-2", + "name": "US Kansas 2", + "availability": "MEDIUM" + } + ] + } + ] } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntityError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17210,95 +19236,43 @@ } } } - }, - "delete": { - "operationId": "deleteRegistry", - "x-runpod-scope": "secrets:write", - "summary": "Delete a container registry credential", + } + }, + "/v2/catalog/cpus/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "example": "cpu5c" + } + ], + "get": { + "operationId": "getCpuType", + "x-runpod-scope": "catalog:read", + "summary": "Get a CPU type", "x-mint": { "metadata": { - "description": "Delete a Runpod container registry credential by ID and understand how active Pods and templates that reference it are handled." + "description": "Retrieve one Runpod CPU type with pricing and optional availability details for a specified product and deployment context." } }, - "description": "Permanently deletes a container registry credential by ID. Rejected\nif any pod currently uses this credential to pull its image.\nTemplates that reference it are not part of that check — they\nsilently lose the reference (`registry` becomes null) instead of\nblocking the delete.\n", + "description": "Returns a single CPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.", "tags": [ - "Registries" + "Catalog" ], - "responses": { - "204": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Deleted. Response has no body." - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, - "400": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Registry credential is in use by a pod and cannot be deleted", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "parameters": [ + { + "$ref": "#/components/parameters/CatalogIncludeParam" }, - "429": { - "$ref": "#/components/responses/TooManyRequestsError" + { + "$ref": "#/components/parameters/CpuProductFilter" }, - "default": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Error", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/v2/registries/delegations": { - "get": { - "operationId": "listDelegations", - "x-runpod-scope": "secrets:read", - "summary": "List all ECR delegations", - "x-mint": { - "metadata": { - "description": "List the Amazon ECR delegations that let Runpod pull private container images from your AWS registries." + { + "$ref": "#/components/parameters/CpuVCPUCountFilter" } - }, - "tags": [ - "Registries" ], "responses": { "200": { @@ -17314,7 +19288,34 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListDelegationsResponse" + "$ref": "#/components/schemas/CpuType" + }, + "examples": { + "cpu": { + "summary": "Successful response", + "value": { + "id": "cpu3c-2-4", + "name": "Compute-Optimized", + "group": "Gen 3", + "vcpu": { + "min": 2, + "max": 32 + }, + "ramGbPerVcpu": 2.5, + "price": { + "securePerVcpu": 0.04, + "serverlessPerVcpu": 0.03 + }, + "availability": "MEDIUM", + "dataCenters": [ + { + "id": "US-KS-2", + "name": "US Kansas 2", + "availability": "MEDIUM" + } + ] + } + } } } } @@ -17325,6 +19326,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17347,31 +19351,107 @@ } } } - }, - "post": { - "operationId": "createDelegation", - "x-runpod-scope": "secrets:write", - "summary": "Register an ECR delegation", + } + }, + "/v2/catalog/datacenters": { + "get": { + "operationId": "listDataCenters", + "x-runpod-scope": "catalog:read", + "summary": "List data centers", "x-mint": { "metadata": { - "description": "Register an Amazon ECR delegation that lets Runpod pull private container images from your AWS registry for Pods and Serverless endpoints." + "description": "List Runpod data centers with region, compliance, storage, networking, and optional GPU or CPU availability details." } }, + "description": "Returns available data center locations with region, compliance, supported network volume tiers, and global networking support. Use include=GPU_AVAILABILITY or include=CPU_AVAILABILITY to add per-resource availability arrays to each data center. The regions, networkVolumeTypes, compliance, and globalNetwork query parameters filter the list before it is returned.\n", "tags": [ - "Registries" + "Catalog" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateDelegationRequest" - } + "parameters": [ + { + "name": "include", + "in": "query", + "required": false, + "description": "Comma-separated optional expansions. Supported value: GPU_AVAILABILITY, CPU_AVAILABILITY.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DataCenterInclude" + }, + "example": [ + "GPU_AVAILABILITY" + ] + } + }, + { + "name": "regions", + "in": "query", + "required": false, + "description": "Comma-separated DataCenterRegion enum values. Values within this filter use OR semantics. Different filter families combine with AND.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DataCenterRegion" + }, + "example": [ + "EUROPE", + "ASIA" + ] + } + }, + { + "name": "networkVolumeTypes", + "in": "query", + "required": false, + "description": "Comma-separated volume types. Supported values: STANDARD, HIGH_PERFORMANCE. Values within this filter use AND semantics; volumes=STANDARD,HIGH_PERFORMANCE requires both storage types. Different filter families combine with AND.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VolumeType" + }, + "example": [ + "STANDARD", + "HIGH_PERFORMANCE" + ] + } + }, + { + "name": "compliance", + "in": "query", + "required": false, + "description": "Comma-separated Compliance enum values. Values within this filter use AND semantics; compliance=GDPR,SOC_2_TYPE_2 requires both certifications. Different filter families combine with AND.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Compliance" + }, + "example": [ + "GDPR", + "SOC_2_TYPE_2" + ] } + }, + { + "name": "globalNetwork", + "in": "query", + "required": false, + "description": "Filter by global networking support. true returns only data centers that support global networking; false only those that do not. Different filter families combine with AND.", + "schema": { + "type": "boolean" + }, + "example": true } - }, + ], "responses": { - "201": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -17380,11 +19460,48 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Delegation created", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EcrDelegation" + "$ref": "#/components/schemas/ListDataCentersResponse" + }, + "examples": { + "dataCenters": { + "summary": "Successful response", + "value": { + "dataCenters": [ + { + "id": "US-KS-2", + "name": "US Kansas 2", + "region": "NORTH_AMERICA", + "globalNetwork": true, + "networkVolumeTypes": [ + "STANDARD", + "HIGH_PERFORMANCE" + ], + "compliance": [ + "SOC_2_TYPE_2", + "ISO_IEC_27001" + ], + "gpuAvailability": [ + { + "id": "NVIDIA GeForce RTX 4090", + "name": "RTX 4090", + "availability": "HIGH" + } + ], + "cpuAvailability": [ + { + "id": "cpu3c-2-4", + "name": "Compute-Optimized", + "availability": "MEDIUM" + } + ] + } + ] + } + } } } } @@ -17395,12 +19512,6 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "400": { - "$ref": "#/components/responses/BadRequestError" - }, - "413": { - "$ref": "#/components/responses/RequestTooLargeError" - }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17425,7 +19536,7 @@ } } }, - "/v2/registries/delegations/{id}": { + "/v2/catalog/datacenters/{id}": { "parameters": [ { "name": "id", @@ -17434,23 +19545,43 @@ "schema": { "type": "string" }, - "example": "deleg_abc" + "example": "US-CA-2" } ], - "delete": { - "operationId": "revokeDelegation", - "x-runpod-scope": "secrets:write", - "summary": "Revoke an ECR delegation", + "get": { + "operationId": "getDataCenter", + "x-runpod-scope": "catalog:read", + "summary": "Get a data center", "x-mint": { "metadata": { - "description": "Revoke an Amazon ECR delegation so Runpod can no longer pull private container images from that AWS registry on your behalf." + "description": "Retrieve a single Runpod data center by ID, optionally including current GPU or CPU availability for Pod deployment." } }, + "description": "Returns a single data center. Availability is included only when requested with include=GPU_AVAILABILITY or include=CPU_AVAILABILITY.", "tags": [ - "Registries" + "Catalog" + ], + "parameters": [ + { + "name": "include", + "in": "query", + "required": false, + "description": "Comma-separated optional expansions. Supported value: GPU_AVAILABILITY, CPU_AVAILABILITY.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DataCenterInclude" + }, + "example": [ + "GPU_AVAILABILITY" + ] + } + } ], "responses": { - "204": { + "200": { "headers": { "RateLimit": { "$ref": "#/components/headers/RateLimit" @@ -17459,7 +19590,47 @@ "$ref": "#/components/headers/RateLimit-Policy" } }, - "description": "Delegation revoked" + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DataCenter" + }, + "examples": { + "dataCenter": { + "summary": "Successful response", + "value": { + "id": "US-KS-2", + "name": "US Kansas 2", + "region": "NORTH_AMERICA", + "globalNetwork": true, + "networkVolumeTypes": [ + "STANDARD", + "HIGH_PERFORMANCE" + ], + "compliance": [ + "SOC_2_TYPE_2", + "ISO_IEC_27001" + ], + "gpuAvailability": [ + { + "id": "NVIDIA GeForce RTX 4090", + "name": "RTX 4090", + "availability": "HIGH" + } + ], + "cpuAvailability": [ + { + "id": "cpu3c-2-4", + "name": "Compute-Optimized", + "availability": "MEDIUM" + } + ] + } + } + } + } + } }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -17467,24 +19638,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "Delegation not found", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17509,41 +19665,84 @@ } } }, - "/v2/catalog/gpus": { + "/v2/catalog/templates": { "get": { - "operationId": "listGpuTypes", + "operationId": "listPublicTemplates", "x-runpod-scope": "catalog:read", - "summary": "List GPU types", + "summary": "List public templates", "x-mint": { "metadata": { - "description": "List available Runpod GPU types with pricing and optional availability filters by product, country, and deployment context." + "description": "Search Runpod public templates by official, verified, or community source and inspect reusable Pod and Serverless configurations." } }, - "description": "Returns available GPU types with pricing. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context. With countryCodes, the list is narrowed to GPU types deployable in those countries, so \"this geography + this chip\" resolves in one read.", + "description": "Returns the public template catalog. `source` selects which slice:\n`official` (the default) is Runpod-curated templates, `verified` is\ncommunity templates Runpod has verified, and `community` is everything\nelse other users have shared publicly. Both pod and serverless\ntemplates appear — use each entry's `serverless` flag to tell them\napart. `registry` is always null for templates you don't own. Your own\ntemplates (public or private) are managed under `/v2/templates`; fetch\nany individual template — catalog or owned — via `/v2/templates/{id}`.\n\nA versioned template line appears as its current tags: each is a\ndeployable template of its own.\n\nWithout `search`, templates are ordered most deployed first: by the number\nof unique users who deployed them.\n", "tags": [ "Catalog" ], "parameters": [ { - "$ref": "#/components/parameters/CatalogIncludeParam" + "name": "source", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "official", + "verified", + "community" + ], + "default": "official" + }, + "description": "Which slice of the catalog to return: `official` for\nRunpod-curated templates (default), `verified` for\nRunpod-verified community templates, or `community` for all other\npublicly shared templates.\n", + "example": "official" }, { - "$ref": "#/components/parameters/GpuProductFilter" + "$ref": "#/components/parameters/CatalogSearchQuery" }, { - "$ref": "#/components/parameters/GpuCountFilter" + "name": "type", + "in": "query", + "required": false, + "description": "Only return standalone (`SINGLE`) or versioned (`VERSIONED`) templates. Omit for both.", + "schema": { + "$ref": "#/components/schemas/CatalogTemplateType" + }, + "example": "VERSIONED" }, { - "$ref": "#/components/parameters/GpuCloudFilter" + "$ref": "#/components/parameters/CatalogProducts" }, { - "$ref": "#/components/parameters/CountryCodesFilter" + "$ref": "#/components/parameters/CatalogMinReliability" }, { - "$ref": "#/components/parameters/CudaVersionsFilter" + "name": "category", + "in": "query", + "required": false, + "description": "Only return templates in this category.", + "schema": { + "$ref": "#/components/schemas/TemplateCategory" + }, + "example": "NVIDIA" }, { - "$ref": "#/components/parameters/MinCudaVersionFilter" + "name": "orderBy", + "in": "query", + "required": false, + "description": "Defaults to `RELEVANCE` when `search` is set and `POPULAR` otherwise. `RELEVANCE` without `search` is rejected with 400.", + "schema": { + "$ref": "#/components/schemas/CatalogOrderBy" + }, + "example": "POPULAR" + }, + { + "$ref": "#/components/parameters/CatalogOrderDirection" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" } ], "responses": { @@ -17560,52 +19759,85 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListGpuTypesResponse" + "$ref": "#/components/schemas/ListCatalogTemplatesResponse" }, "examples": { - "gpus": { + "templates": { "summary": "Successful response", "value": { - "gpus": [ + "templates": [ { - "id": "NVIDIA GeForce RTX 4090", - "name": "RTX 4090", - "pool": "ADA_24", - "manufacturer": "NVIDIA", - "memory": 24, - "secure": true, - "community": true, - "price": { - "secure": 0.44, - "community": 0.31, - "serverless": 1.1 + "id": "30zmvf89kd", + "name": "PyTorch 2.8", + "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", + "args": "", + "disk": 50, + "mounts": {}, + "ports": [ + "8888/http", + "22/tcp" + ], + "env": {}, + "registry": null, + "serverless": false, + "public": true, + "category": "NVIDIA", + "startSsh": true, + "startJupyter": true, + "allowedCudaVersions": [], + "type": "SINGLE", + "versionedTemplateId": null, + "currentVersion": null, + "official": true, + "verified": false, + "products": [ + "POD" + ], + "health": { + "tier": "VERIFIED", + "reliability": 0.99, + "computedAt": "2026-11-04T06:00:00Z" }, - "maxCount": { - "secure": 8, - "community": 4 + "gpuCompatibility": { + "recommendedGpuTypeIds": [], + "incompatibleGpuTypeIds": [], + "minVramInGb": null, + "allowedCudaVersions": [], + "minCudaVersion": null }, - "availability": "HIGH", - "dataCenters": [ - { - "id": "US-KS-2", - "name": "US Kansas 2", - "availability": "HIGH" - } - ] + "stats": { + "deployers": 1840, + "deployersLast30Days": 211 + }, + "createdAt": "2025-06-02T00:00:00Z", + "updatedAt": "2025-07-10T00:00:00Z" } - ] + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17630,7 +19862,7 @@ } } }, - "/v2/catalog/gpus/{id}": { + "/v2/catalog/templates/{id}/readme": { "parameters": [ { "name": "id", @@ -17639,94 +19871,25 @@ "schema": { "type": "string" }, - "example": "NVIDIA GeForce RTX 4090" + "example": "30zmvf89kd" } ], "get": { - "operationId": "getGpuType", + "operationId": "getPublicTemplateReadme", "x-runpod-scope": "catalog:read", - "summary": "Get a GPU type", + "summary": "Get a public template README", "x-mint": { "metadata": { - "description": "Retrieve one Runpod GPU type with pricing and optional availability details for a specified product and deployment context." + "description": "Retrieve the Markdown README of a public Runpod template, with setup and usage instructions." } }, - "description": "Returns a single GPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.", + "description": "Returns the README of a public catalog template as raw Markdown.\n`id` is a template ID, a versioned tag's ID or a versioned line's\n`versionedTemplateId`. A line returns its own README, or its current\ntag's when it has none. Only public templates are served. Returns\n`404` when the template does not exist, is not public, or has no\nREADME. Use `GET /v2/templates/{id}/readme` for your private\ntemplates.\n", "tags": [ "Catalog" ], - "parameters": [ - { - "$ref": "#/components/parameters/CatalogIncludeParam" - }, - { - "$ref": "#/components/parameters/GpuProductFilter" - }, - { - "$ref": "#/components/parameters/GpuCountFilter" - }, - { - "$ref": "#/components/parameters/GpuCloudFilter" - }, - { - "$ref": "#/components/parameters/CountryCodesFilter" - }, - { - "$ref": "#/components/parameters/CudaVersionsFilter" - }, - { - "$ref": "#/components/parameters/MinCudaVersionFilter" - } - ], "responses": { "200": { - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "RateLimit-Policy": { - "$ref": "#/components/headers/RateLimit-Policy" - } - }, - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GpuType" - }, - "examples": { - "gpu": { - "summary": "Successful response", - "value": { - "id": "NVIDIA GeForce RTX 4090", - "name": "RTX 4090", - "pool": "ADA_24", - "manufacturer": "NVIDIA", - "memory": 24, - "secure": true, - "community": true, - "price": { - "secure": 0.44, - "community": 0.31, - "serverless": 1.1 - }, - "maxCount": { - "secure": 8, - "community": 4 - }, - "availability": "HIGH", - "dataCenters": [ - { - "id": "US-KS-2", - "name": "US Kansas 2", - "availability": "HIGH" - } - ] - } - } - } - } - } + "$ref": "#/components/responses/Readme" }, "401": { "$ref": "#/components/responses/UnauthorizedError" @@ -17761,31 +19924,32 @@ } } }, - "/v2/catalog/cpus": { + "/v2/catalog/templates/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "A template ID from `GET /v2/catalog/templates`, a versioned line's ID, or any of its tags' IDs.", + "schema": { + "type": "string" + }, + "example": "opvzatg7kb" + } + ], "get": { - "operationId": "listCpuTypes", + "operationId": "getCatalogTemplate", "x-runpod-scope": "catalog:read", - "summary": "List CPU types", + "summary": "Get a public template", "x-mint": { "metadata": { - "description": "List available Runpod CPU types with pricing and optional availability details for a specified product and deployment context." + "description": "Retrieve a Runpod public template with its health, deploy stats and, for a versioned line, every version and tag." } }, - "description": "Returns available CPU flavors. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.", + "description": "Returns one public template. This covers every public template,\nincluding ones the list leaves out: your own, and ones below the\nlist's quality bar.\n\nFor a versioned line, `versions` lists every version with its tags.\nThe top-level fields are the requested tag's when you ask by tag ID,\nand the first current tag's when you ask by line ID. A line ID\nresolves only while the line has a current tag; its published tags\nresolve regardless, with `currentVersion` null when nothing is\ncurrent.\n", "tags": [ "Catalog" ], - "parameters": [ - { - "$ref": "#/components/parameters/CatalogIncludeParam" - }, - { - "$ref": "#/components/parameters/CpuProductFilter" - }, - { - "$ref": "#/components/parameters/CpuVCPUCountFilter" - } - ], "responses": { "200": { "headers": { @@ -17800,32 +19964,71 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCpuTypesResponse" + "$ref": "#/components/schemas/CatalogTemplateDetail" }, "examples": { - "cpus": { - "summary": "Successful response", + "versioned": { + "summary": "A versioned template line", "value": { - "cpus": [ - { - "id": "cpu3c-2-4", - "name": "Compute-Optimized", - "group": "Gen 3", - "vcpu": { - "min": 2, - "max": 32 - }, - "ramGbPerVcpu": 2.5, - "price": { - "securePerVcpu": 0.04, - "serverlessPerVcpu": 0.03 - }, - "availability": "MEDIUM", - "dataCenters": [ + "id": "opvzatg7kb", + "name": "ROCm", + "image": "runpod/rocm:1.6.0-rocm644-ubuntu2404-py312-pytorch271", + "args": "", + "disk": 50, + "mounts": {}, + "ports": [ + "8888/http", + "22/tcp" + ], + "env": {}, + "registry": null, + "serverless": false, + "public": true, + "category": "AMD", + "startSsh": true, + "startJupyter": true, + "allowedCudaVersions": [], + "type": "VERSIONED", + "versionedTemplateId": "cmv9r2rer000vbcnlha8hwf9c", + "currentVersion": "2.7.1", + "official": true, + "verified": false, + "products": [ + "POD" + ], + "health": { + "tier": "VERIFIED", + "reliability": 0.99, + "computedAt": "2026-11-04T06:00:00Z" + }, + "gpuCompatibility": { + "recommendedGpuTypeIds": [], + "incompatibleGpuTypeIds": [], + "minVramInGb": null, + "allowedCudaVersions": [], + "minCudaVersion": null + }, + "stats": { + "deployers": 1840, + "deployersLast30Days": 211 + }, + "createdAt": "2026-10-15T16:25:38Z", + "updatedAt": "2026-10-30T18:19:02Z", + "versions": [ + { + "id": "cmv9r2to100diufgzw2zvmr30", + "version": "2.7.1", + "name": "ROCm", + "changelog": "Template 1.6.0: ROCm 6.4.4 and PyTorch 2.7.1.", + "channel": "CURRENT", + "deprecatedAt": null, + "createdAt": "2026-10-15T16:25:39Z", + "tags": [ { - "id": "US-KS-2", - "name": "US Kansas 2", - "availability": "MEDIUM" + "templateId": "opvzatg7kb", + "name": "ROCm 6.4.4 · Ubuntu 24.04 · 1.6.0-2.7.1", + "image": "runpod/rocm:1.6.0-rocm644-ubuntu2404-py312-pytorch271", + "channel": "CURRENT" } ] } @@ -17842,6 +20045,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -17866,40 +20072,64 @@ } } }, - "/v2/catalog/cpus/{id}": { - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "example": "cpu5c" - } - ], + "/v2/catalog/skills": { "get": { - "operationId": "getCpuType", + "operationId": "listCatalogSkills", "x-runpod-scope": "catalog:read", - "summary": "Get a CPU type", + "x-runpod-strict-query": true, + "summary": "List skills", "x-mint": { "metadata": { - "description": "Retrieve one Runpod CPU type with pricing and optional availability details for a specified product and deployment context." + "description": "Search Runpod skills: step-by-step guides an agent follows to set up a workload on Runpod, such as ComfyUI on a pod." } }, - "description": "Returns a single CPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.", + "description": "Returns skills: step-by-step guides, published by Runpod, that an\nagent follows to set up a workload. Each skill has a README and one\nor more variants; open one with `GET /v2/catalog/skills/{id}`.\n\nWithout `search`, skills are ordered most recently updated first.\n`minReliability`, `product` and `category` don't apply to skills and\nare rejected with 422, as is any other undeclared parameter.\n", "tags": [ "Catalog" ], "parameters": [ { - "$ref": "#/components/parameters/CatalogIncludeParam" + "$ref": "#/components/parameters/CatalogSearchQuery" }, { - "$ref": "#/components/parameters/CpuProductFilter" + "$ref": "#/components/parameters/CatalogTags" }, { - "$ref": "#/components/parameters/CpuVCPUCountFilter" + "name": "mcpSupport", + "in": "query", + "required": false, + "description": "Only return skills with one of these MCP support levels. Comma-separated. Skills that don't state one are excluded when this is set.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CatalogSkillMcpSupport" + } + }, + "example": [ + "FULL", + "PARTIAL" + ] + }, + { + "name": "orderBy", + "in": "query", + "required": false, + "description": "Defaults to `RELEVANCE` when `search` is set and `UPDATED` otherwise. `RELEVANCE` without `search` is rejected with 400.", + "schema": { + "$ref": "#/components/schemas/CatalogSkillOrderBy" + }, + "example": "UPDATED" + }, + { + "$ref": "#/components/parameters/CatalogOrderDirection" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" } ], "responses": { @@ -17916,46 +20146,53 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CpuType" + "$ref": "#/components/schemas/ListCatalogSkillsResponse" }, "examples": { - "cpu": { + "skills": { "summary": "Successful response", "value": { - "id": "cpu3c-2-4", - "name": "Compute-Optimized", - "group": "Gen 3", - "vcpu": { - "min": 2, - "max": 32 - }, - "ramGbPerVcpu": 2.5, - "price": { - "securePerVcpu": 0.04, - "serverlessPerVcpu": 0.03 - }, - "availability": "MEDIUM", - "dataCenters": [ + "skills": [ { - "id": "US-KS-2", - "name": "US Kansas 2", - "availability": "MEDIUM" + "id": "02-comfyui-pod", + "name": "ComfyUI server on a pod", + "description": "Provisions a GPU pod, gets ComfyUI running with a checkpoint and the default text-to-image workflow, and returns a proxy URL for the web UI.", + "tags": [ + "comfyui", + "image-generation", + "pod" + ], + "mcpSupport": "PARTIAL", + "official": true, + "sourceUrl": "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod/golden-paths/02-comfyui-pod/README.md", + "createdAt": "2026-07-14T21:20:11Z", + "updatedAt": "2026-10-13T14:51:26Z" } - ] + ], + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -17981,103 +20218,32 @@ } } }, - "/v2/catalog/datacenters": { + "/v2/catalog/skills/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Skill ID, as returned by `GET /v2/catalog/skills`.", + "schema": { + "type": "string" + }, + "example": "02-comfyui-pod" + } + ], "get": { - "operationId": "listDataCenters", + "operationId": "getCatalogSkill", "x-runpod-scope": "catalog:read", - "summary": "List data centers", + "summary": "Get a skill", "x-mint": { "metadata": { - "description": "List Runpod data centers with region, compliance, storage, networking, and optional GPU or CPU availability details." + "description": "Retrieve a Runpod skill with its variants, the default marked, and the skills it relies on." } }, - "description": "Returns available data center locations with region, compliance, supported network volume tiers, and global networking support. Use include=GPU_AVAILABILITY or include=CPU_AVAILABILITY to add per-resource availability arrays to each data center. The regions, networkVolumeTypes, compliance, and globalNetwork query parameters filter the list before it is returned.\n", + "description": "Returns one skill with its variants. Read the README at\n`GET /v2/catalog/skills/{id}/readme` and a variant at\n`GET /v2/catalog/skills/{id}/variants/{variantId}`.\n", "tags": [ "Catalog" ], - "parameters": [ - { - "name": "include", - "in": "query", - "required": false, - "description": "Comma-separated optional expansions. Supported value: GPU_AVAILABILITY, CPU_AVAILABILITY.", - "style": "form", - "explode": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DataCenterInclude" - }, - "example": [ - "GPU_AVAILABILITY" - ] - } - }, - { - "name": "regions", - "in": "query", - "required": false, - "description": "Comma-separated DataCenterRegion enum values. Values within this filter use OR semantics. Different filter families combine with AND.", - "style": "form", - "explode": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DataCenterRegion" - }, - "example": [ - "EUROPE", - "ASIA" - ] - } - }, - { - "name": "networkVolumeTypes", - "in": "query", - "required": false, - "description": "Comma-separated volume types. Supported values: STANDARD, HIGH_PERFORMANCE. Values within this filter use AND semantics; volumes=STANDARD,HIGH_PERFORMANCE requires both storage types. Different filter families combine with AND.", - "style": "form", - "explode": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/VolumeType" - }, - "example": [ - "STANDARD", - "HIGH_PERFORMANCE" - ] - } - }, - { - "name": "compliance", - "in": "query", - "required": false, - "description": "Comma-separated Compliance enum values. Values within this filter use AND semantics; compliance=GDPR,SOC_2_TYPE_2 requires both certifications. Different filter families combine with AND.", - "style": "form", - "explode": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Compliance" - }, - "example": [ - "GDPR", - "SOC_2_TYPE_2" - ] - } - }, - { - "name": "globalNetwork", - "in": "query", - "required": false, - "description": "Filter by global networking support. true returns only data centers that support global networking; false only those that do not. Different filter families combine with AND.", - "schema": { - "type": "boolean" - }, - "example": true - } - ], "responses": { "200": { "headers": { @@ -18092,40 +20258,45 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListDataCentersResponse" + "$ref": "#/components/schemas/CatalogSkillDetail" }, "examples": { - "dataCenters": { + "skill": { "summary": "Successful response", "value": { - "dataCenters": [ + "id": "02-comfyui-pod", + "name": "ComfyUI server on a pod", + "description": "Provisions a GPU pod, gets ComfyUI running with a checkpoint and the default text-to-image workflow, and returns a proxy URL for the web UI.", + "tags": [ + "comfyui", + "image-generation", + "pod" + ], + "mcpSupport": "PARTIAL", + "official": true, + "sourceUrl": "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod/golden-paths/02-comfyui-pod/README.md", + "createdAt": "2026-07-14T21:20:11Z", + "updatedAt": "2026-10-13T14:51:26Z", + "variants": [ { - "id": "US-KS-2", - "name": "US Kansas 2", - "region": "NORTH_AMERICA", - "globalNetwork": true, - "networkVolumeTypes": [ - "STANDARD", - "HIGH_PERFORMANCE" - ], - "compliance": [ - "SOC_2_TYPE_2", - "ISO_IEC_27001" - ], - "gpuAvailability": [ - { - "id": "NVIDIA GeForce RTX 4090", - "name": "RTX 4090", - "availability": "HIGH" - } - ], - "cpuAvailability": [ - { - "id": "cpu3c-2-4", - "name": "Compute-Optimized", - "availability": "MEDIUM" - } - ] + "id": "variant-a-from-scratch", + "name": "From scratch", + "description": "Install ComfyUI yourself on a PyTorch template. Pick this for custom versions or nodes.", + "default": false, + "sourceUrl": "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod/golden-paths/02-comfyui-pod/variant-a-from-scratch.md" + }, + { + "id": "variant-b-prebuilt", + "name": "Prebuilt official image", + "description": "Deploy Runpod's official ComfyUI image. Least effort, most reliable.", + "default": true, + "sourceUrl": "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod/golden-paths/02-comfyui-pod/variant-b-prebuilt.md" + } + ], + "supplementalSkills": [ + { + "name": "Storage", + "url": "https://raw.githubusercontent.com/runpod/runpod-plugins-official/main/plugins/runpod/skills/runpod-usage/reference/storage.md" } ] } @@ -18140,6 +20311,72 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/catalog/skills/{id}/readme": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Skill ID, as returned by `GET /v2/catalog/skills`.", + "schema": { + "type": "string" + }, + "example": "02-comfyui-pod" + } + ], + "get": { + "operationId": "getCatalogSkillReadme", + "x-runpod-scope": "catalog:read", + "summary": "Get a skill README", + "x-mint": { + "metadata": { + "description": "Retrieve the Markdown README of a Runpod skill for an agent to follow." + } + }, + "description": "Returns the skill's README as raw Markdown. Returns `404` when the\nskill does not exist or its README has not been synced yet.\n", + "tags": [ + "Catalog" + ], + "responses": { + "200": { + "$ref": "#/components/responses/Readme" + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -18164,48 +20401,158 @@ } } }, - "/v2/catalog/datacenters/{id}": { + "/v2/catalog/skills/{id}/variants/{variantId}": { "parameters": [ { "name": "id", "in": "path", "required": true, + "description": "Skill ID, as returned by `GET /v2/catalog/skills`.", "schema": { "type": "string" }, - "example": "US-CA-2" + "example": "02-comfyui-pod" + }, + { + "name": "variantId", + "in": "path", + "required": true, + "description": "Variant ID, as returned by `GET /v2/catalog/skills/{id}`.", + "schema": { + "type": "string" + }, + "example": "variant-b-prebuilt" } ], "get": { - "operationId": "getDataCenter", + "operationId": "getCatalogSkillVariant", "x-runpod-scope": "catalog:read", - "summary": "Get a data center", + "summary": "Get a skill variant", "x-mint": { "metadata": { - "description": "Retrieve a single Runpod data center by ID, optionally including current GPU or CPU availability for Pod deployment." + "description": "Retrieve one variant of a Runpod skill as Markdown." } }, - "description": "Returns a single data center. Availability is included only when requested with include=GPU_AVAILABILITY or include=CPU_AVAILABILITY.", + "description": "Returns one variant of a skill as raw Markdown. Returns `404` when\nthe skill or variant does not exist or the variant has not been\nsynced yet.\n", + "tags": [ + "Catalog" + ], + "responses": { + "200": { + "$ref": "#/components/responses/SkillVariant" + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "429": { + "$ref": "#/components/responses/TooManyRequestsError" + }, + "default": { + "headers": { + "RateLimit": { + "$ref": "#/components/headers/RateLimit" + }, + "RateLimit-Policy": { + "$ref": "#/components/headers/RateLimit-Policy" + } + }, + "description": "Error", + "content": { + "application/problem+json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/catalog/repos": { + "get": { + "operationId": "listCatalogRepos", + "x-runpod-scope": "catalog:read", + "x-runpod-strict-query": true, + "summary": "List Hub repos", + "x-mint": { + "metadata": { + "description": "Search Runpod Hub repos: GitHub repositories Runpod builds into deployable images, with reliability scores and deploy counts." + } + }, + "description": "Returns Hub repos: GitHub repositories Runpod builds into images you\ncan deploy. Open one with `GET /v2/catalog/repos/{id}` for its listed\nrelease and deploy defaults.\n\nWithout `search`, repos are ordered most deployed first.\n", "tags": [ "Catalog" ], "parameters": [ { - "name": "include", + "$ref": "#/components/parameters/CatalogSearchQuery" + }, + { + "$ref": "#/components/parameters/CatalogProducts" + }, + { + "$ref": "#/components/parameters/CatalogMinReliability" + }, + { + "$ref": "#/components/parameters/CatalogCategory" + }, + { + "$ref": "#/components/parameters/CatalogTags" + }, + { + "name": "source", "in": "query", "required": false, - "description": "Comma-separated optional expansions. Supported value: GPU_AVAILABILITY, CPU_AVAILABILITY.", - "style": "form", - "explode": false, + "description": "`official` returns repos Runpod publishes (see `official` on the repo). `community` returns the rest. Omit for all.", "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DataCenterInclude" - }, - "example": [ - "GPU_AVAILABILITY" + "type": "string", + "enum": [ + "official", + "community" + ], + "x-enum-varnames": [ + "CatalogRepoSourceOfficial", + "CatalogRepoSourceCommunity" ] - } + }, + "example": "official" + }, + { + "name": "owner", + "in": "query", + "required": false, + "description": "Only return repos from this GitHub owner, matched exactly and case-insensitively.", + "schema": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "example": "runpod-workers" + }, + { + "name": "orderBy", + "in": "query", + "required": false, + "description": "Defaults to `RELEVANCE` when `search` is set and `POPULAR` otherwise. `RELEVANCE` without `search` is rejected with 400.", + "schema": { + "$ref": "#/components/schemas/CatalogOrderBy" + }, + "example": "POPULAR" + }, + { + "$ref": "#/components/parameters/CatalogOrderDirection" + }, + { + "$ref": "#/components/parameters/PaginationCursor" + }, + { + "$ref": "#/components/parameters/PaginationLimit" } ], "responses": { @@ -18222,52 +20569,76 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DataCenter" + "$ref": "#/components/schemas/ListCatalogReposResponse" }, "examples": { - "dataCenter": { + "repos": { "summary": "Successful response", "value": { - "id": "US-KS-2", - "name": "US Kansas 2", - "region": "NORTH_AMERICA", - "globalNetwork": true, - "networkVolumeTypes": [ - "STANDARD", - "HIGH_PERFORMANCE" - ], - "compliance": [ - "SOC_2_TYPE_2", - "ISO_IEC_27001" - ], - "gpuAvailability": [ + "repos": [ { - "id": "NVIDIA GeForce RTX 4090", - "name": "RTX 4090", - "availability": "HIGH" + "id": "cm862p99s000008ilegk86af6", + "name": "ComfyUI", + "description": "ComfyUI as a serverless API.", + "products": [ + "SERVERLESS" + ], + "category": "image", + "tags": [ + "comfyui" + ], + "official": true, + "repository": { + "owner": "runpod-workers", + "name": "worker-comfyui", + "url": "https://github.com/runpod-workers/worker-comfyui", + "ownerAvatarUrl": "https://avatars.githubusercontent.com/u/123456?v=4" + }, + "health": { + "tier": "VERIFIED", + "reliability": 0.97, + "computedAt": "2026-11-04T06:00:00Z" + }, + "stats": { + "deploys": 41210, + "stars": 812, + "views": 190455 + }, + "latestRelease": { + "id": "cm8a1b2c3000108l4d5e6f7g8", + "tag": "v5.4.1", + "releasedAt": "2026-10-28T00:00:00Z", + "image": "runpod/worker-comfyui:5.4.1-base", + "deployable": true + }, + "createdAt": "2025-03-01T00:00:00Z", + "updatedAt": "2026-10-28T00:00:00Z" } ], - "cpuAvailability": [ - { - "id": "cpu3c-2-4", - "name": "Compute-Optimized", - "availability": "MEDIUM" - } - ] + "pagination": { + "nextCursor": null, + "hasNextPage": false + } } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequestError" + }, "401": { "$ref": "#/components/responses/UnauthorizedError" }, "403": { "$ref": "#/components/responses/ForbiddenError" }, - "404": { - "$ref": "#/components/responses/NotFoundError" + "413": { + "$ref": "#/components/responses/ResponseTooLargeError" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityError" }, "429": { "$ref": "#/components/responses/TooManyRequestsError" @@ -18293,38 +20664,32 @@ } } }, - "/v2/catalog/templates": { + "/v2/catalog/repos/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Repo ID, as returned by `GET /v2/catalog/repos`.", + "schema": { + "type": "string" + }, + "example": "cm862p99s000008ilegk86af6" + } + ], "get": { - "operationId": "listPublicTemplates", + "operationId": "getCatalogRepo", "x-runpod-scope": "catalog:read", - "summary": "List public templates", + "summary": "Get a Hub repo", "x-mint": { "metadata": { - "description": "List Runpod public templates by official, verified, or community source and inspect reusable Pod and Serverless configurations." + "description": "Retrieve a Runpod Hub repo with its listed release and the defaults it deploys with." } }, - "description": "Returns the public template catalog. `source` selects which slice:\n`official` (the default) is Runpod-curated templates, `verified` is\ncommunity templates Runpod has verified, and `community` is everything\nelse other users have shared publicly. Both pod and serverless\ntemplates appear — use each entry's `serverless` flag to tell them\napart. `registry` is always null for templates you don't own. Your own\ntemplates (public or private) are managed under `/v2/templates`; fetch\nany individual template — catalog or owned — via `/v2/templates/{id}`.\n\nAt most 100 templates are returned. Cursor pagination is not yet\nsupported here; `pagination` is always the exhausted marker\n(`nextCursor: null`, `hasNextPage: false`).\n", + "description": "Returns one repo with its listed release, including the GPUs, disk\nand environment variables the release deploys with. Read the README\nat `GET /v2/catalog/repos/{id}/readme`.\n", "tags": [ "Catalog" ], - "parameters": [ - { - "name": "source", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "official", - "verified", - "community" - ], - "default": "official" - }, - "description": "Which slice of the catalog to return: `official` for\nRunpod-curated templates (default), `verified` for\nRunpod-verified community templates, or `community` for all other\npublicly shared templates.\n", - "example": "official" - } - ], "responses": { "200": { "headers": { @@ -18339,38 +20704,84 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TemplateList" + "$ref": "#/components/schemas/CatalogRepoDetail" }, "examples": { - "templates": { + "repo": { "summary": "Successful response", "value": { - "templates": [ - { - "id": "30zmvf89kd", - "name": "PyTorch 2.8", - "image": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", - "args": "", - "disk": 50, - "mounts": {}, - "ports": [ - "8888/http", - "22/tcp" + "id": "cm862p99s000008ilegk86af6", + "name": "ComfyUI", + "description": "ComfyUI as a serverless API.", + "products": [ + "SERVERLESS" + ], + "category": "image", + "tags": [ + "comfyui" + ], + "official": true, + "repository": { + "owner": "runpod-workers", + "name": "worker-comfyui", + "url": "https://github.com/runpod-workers/worker-comfyui", + "ownerAvatarUrl": "https://avatars.githubusercontent.com/u/123456?v=4" + }, + "health": { + "tier": "VERIFIED", + "reliability": 0.97, + "computedAt": "2026-11-04T06:00:00Z" + }, + "stats": { + "deploys": 41210, + "stars": 812, + "views": 190455 + }, + "license": "MIT", + "latestRelease": { + "id": "cm8a1b2c3000108l4d5e6f7g8", + "tag": "v5.4.1", + "releasedAt": "2026-10-28T00:00:00Z", + "image": "runpod/worker-comfyui:5.4.1-base", + "deployable": true, + "name": "v5.4.1", + "notes": "Adds Flux.2 support.", + "deploy": { + "computeType": "GPU", + "endpointType": "QUEUE", + "cpu": null, + "gpuTypeIds": [ + "NVIDIA GeForce RTX 4090", + "NVIDIA L4" ], - "env": {}, - "registry": null, - "serverless": false, - "public": true, - "category": "NVIDIA", - "startSsh": true, - "startJupyter": true, - "allowedCudaVersions": [] + "gpuCount": 1, + "containerDiskInGb": 20, + "gpuCompatibility": { + "recommendedGpuTypeIds": [ + "NVIDIA GeForce RTX 4090", + "NVIDIA L4" + ], + "incompatibleGpuTypeIds": [], + "minVramInGb": null, + "allowedCudaVersions": [ + "12.8", + "12.9" + ], + "minCudaVersion": null + }, + "volume": null, + "env": [ + { + "key": "COMFY_LOG_LEVEL", + "default": "DEBUG", + "description": "Log level for ComfyUI.", + "required": false + } + ] } - ], - "pagination": { - "nextCursor": null, - "hasNextPage": false - } + }, + "createdAt": "2025-03-01T00:00:00Z", + "updatedAt": "2026-10-28T00:00:00Z" } } } @@ -18383,6 +20794,9 @@ "403": { "$ref": "#/components/responses/ForbiddenError" }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, "429": { "$ref": "#/components/responses/TooManyRequestsError" }, @@ -18407,34 +20821,35 @@ } } }, - "/v2/catalog/templates/{id}/readme": { + "/v2/catalog/repos/{id}/readme": { "parameters": [ { "name": "id", "in": "path", "required": true, + "description": "Repo ID, as returned by `GET /v2/catalog/repos`.", "schema": { "type": "string" }, - "example": "30zmvf89kd" + "example": "cm862p99s000008ilegk86af6" } ], "get": { - "operationId": "getPublicTemplateReadme", + "operationId": "getCatalogRepoReadme", "x-runpod-scope": "catalog:read", - "summary": "Get a public template README", + "summary": "Get a Hub repo README", "x-mint": { "metadata": { - "description": "Retrieve the Markdown README of a public Runpod template, with setup and usage instructions." + "description": "Retrieve the Markdown README of a Runpod Hub repo's listed release." } }, - "description": "Returns the README of a public catalog template as raw Markdown.\nOnly public templates are served. Returns `404` when the template does\nnot exist, is not public, or has no README. Use\n`GET /v2/templates/{id}/readme` for your private templates.\n", + "description": "Returns the README of the repo's listed release as raw Markdown.\nReturns `404` when the repo does not exist or its release has no\nREADME.\n", "tags": [ "Catalog" ], "responses": { "200": { - "$ref": "#/components/responses/TemplateReadme" + "$ref": "#/components/responses/Readme" }, "401": { "$ref": "#/components/responses/UnauthorizedError" diff --git a/docs.json b/docs.json index 5f3a9a70d..7fd682cb1 100644 --- a/docs.json +++ b/docs.json @@ -724,7 +724,15 @@ "api-reference-v2/catalog/list-data-centers", "api-reference-v2/catalog/get-a-data-center", "api-reference-v2/catalog/list-public-templates", - "api-reference-v2/catalog/get-a-public-template-readme" + "api-reference-v2/catalog/get-a-public-template-readme", + "api-reference-v2/catalog/get-a-public-template", + "api-reference-v2/catalog/list-skills", + "api-reference-v2/catalog/get-a-skill", + "api-reference-v2/catalog/get-a-skill-readme", + "api-reference-v2/catalog/get-a-skill-variant", + "api-reference-v2/catalog/list-hub-repos", + "api-reference-v2/catalog/get-a-hub-repo", + "api-reference-v2/catalog/get-a-hub-repo-readme" ] }, {