Secrets

Stores a secret

The lambda reads it from its next Secret.Read on, without being deployed again. The value cannot be read back afterwards - not even by whoever stored it. Its features keep the copies they have.

put/lambdas/{privateKey}/secrets/{name}

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/lambdas/{privateKey}/secrets/{name}
  • Auth: none declared

Path parameters

privateKeystring required

The editor key of the lambda. Holding it is what allows the call.

namestring required

Its name, as the code reads it: letters, digits and underscores, not starting with a digit, up to 128 characters - STRIPE_KEY. Case sensitive.

Request body

Valuestring

The value, up to 32 KB - sent once, and never shown again

Response

The secret, without its value

Namestring

What the code reads it by: Secret.Read("STRIPE_KEY")

Createdstring date-time

When it was first stored

Changedstring date-time

When its value was last replaced

Usedboolean

Whether the code reads it by that name

Changes

No recorded changes to this operation across all 1 revision of this API.