Skip to main content

Store a secret

POST /api/secrets
Stores or updates an organization-level secret. Secrets are encrypted at rest and injected as environment variables at runtime. Body:
If a secret with the same name already exists, it is overwritten.

How secrets work

  1. List required secrets in your manifest’s secrets_needed array
  2. Store them via this endpoint or in the dashboard under Settings
  3. At runtime, your run() function accesses them via os.environ["SECRET_NAME"]
Secrets are scoped to the organization. All automations in the same workspace share the same secret store.
Secrets are never exposed in logs, UI, or API responses. They are only available inside the sandbox during execution.