Update a secret
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.
Authorizations
Runpod API key authentication. Generate an API key in the Runpod console and send it in the Authorization header as Bearer <api_key>. Keys are scoped to the permissions granted when created; requests may return 403 when a valid key lacks access to the requested resource or action.
Path Parameters
Secret identifier
Body
Only the provided fields are updated; at least one field is required.
The secret's name is immutable.
New secret value, replacing the current one. Write-only. Must be smaller than 16 MiB of UTF-8 text (strictly under 16,777,216 bytes).
1 - 16777216New human-readable description, at most 65,535 bytes of UTF-8 text. Send "" to clear.
65535Response
OK
An account-scoped secret: an encrypted string stored by Runpod, referenced from pod, serverless, and template environment variables with the {{ RUNPOD_SECRET_<name> }} placeholder, substituted with the secret's value when the pod or worker boots. The value is write-only and never returned by the API.
Unique secret identifier
"2q9m7x4cavgd"
Unique, human-readable name — the <name> referenced by the RUNPOD_SECRET_<name> placeholder. Immutable after creation.
"hf-token"
When the secret was created
Human-readable description
"Hugging Face read token"
When the secret's value was last set (creation or rotation)