v1

latestOpenAPI 3.1.02026-07-2676123203.9 KB
Templates

List templates

Returns all templates owned by the authenticated user.

get/v2/templates

Response

OK

Example response

{
  "templates": [
    {
      "category": "NVIDIA",
      "containerDiskInGb": 50,
      "dockerEntrypoint": [],
      "dockerStartCmd": [],
      "earned": 100,
      "env": {
        "ENV_VAR": "value"
      },
      "id": "30zmvf89kd",
      "imageName": "runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04",
      "isRunpod": true,
      "isServerless": true,
      "name": "my template",
      "ports": [
        "8888/http",
        "22/tcp"
      ],
      "volumeInGb": 20,
      "volumeMountPath": "/workspace"
    }
  ]
}