cURL
curl --request GET \ --url https://rest.runpod.io/v1/templates/{templateId} \ --header 'Authorization: Bearer <token>'
{ "category": "NVIDIA", "containerDiskInGb": 50, "containerRegistryAuthId": "<string>", "dockerEntrypoint": [], "dockerStartCmd": [], "earned": 100, "env": { "ENV_VAR": "value" }, "id": "30zmvf89kd", "imageName": "runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04", "isPublic": false, "isRunpod": true, "isServerless": true, "name": "my template", "ports": [ "8888/http", "22/tcp" ], "readme": "<string>", "runtimeInMin": 123, "volumeInGb": 20, "volumeMountPath": "/workspace" }
Returns a single template.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of template to return.
Successful operation.
The response is of type object.
object
Was this page helpful?