Attach a Secret to a Function

Changed on

Attach a secret to a Function, taking effect on the Function's next invocation. Note: Attaching a secret that is already attached succeeds to support idempotency.

post/v1/functions/{id}/secrets

Request

  • Base URL
    https://api.browserbase.com
  • Auth
    API key in header X-BB-API-Key

Path parameters

idstring uuid required

Request body

secretIdstring uuid required

The id of the project secret to attach (the id returned by POST /v1/secrets). Idempotent: re-attaching an already-attached secret succeeds.

Response

The secret was attached to the function.

Changes