Skip to main content

Secrets

Secrets require Solo plan or higher. See Plans for details.
Secrets are encrypted storage for API keys, tokens, and other credentials your app needs to connect to external services. They keep sensitive values out of your app configuration, builder UI, and trace logs.

When to Use Secrets

Create a secret any time your app needs a value that should not be visible to collaborators or logged in traces:
  • API keys (Stripe, Twilio, OpenAI, etc.)
  • Bearer tokens and access tokens
  • Database connection strings
  • Webhook signing secrets

Create a Secret

1

Open Secrets settings

In the builder, go to your app’s Secrets settings.
Secrets settings panel in the builder

The Secrets settings panel

2

Add a new secret

Click Add Secret. Enter a name and the secret value.
Add secret dialog with name and value fields

Adding a new secret

Name it clearly. Use the SERVICE_PURPOSE format so anyone on your team can identify what the secret is for at a glance:Avoid vague names like API_KEY, TOKEN, or SECRET. These become confusing as your app grows.
3

Save the secret

Click Save. The value is encrypted and stored. You will not be able to view the value again after saving; you can only update or delete it.
Secret saved confirmation

Secret saved successfully

Use Secrets in Endpoints

Reference a secret in any endpoint header, path, or request body using the {{secrets.YOUR_SECRET_NAME}} syntax. Example: Authorization header
Example: API key as a query parameter
The secret value is injected at request time. It never appears in the builder UI, app configuration exports, or trace logs.
If you reference a secret name that does not exist, the request will fail with an empty value. Double-check the exact name in your Secrets settings.

Rotate a Secret

When a credential expires or you need to cycle keys:
1

Update the secret value

Open Secrets settings, find the secret, and click Update. Enter the new value and save.
2

Retest affected tools

Open the preview panel and invoke each tool that uses the rotated secret. Confirm that requests succeed with the new credential.
3

Check traces

Review Traces for the tools you tested. Verify that requests completed successfully and no errors appeared after the rotation.

Naming Conventions

Consistent naming prevents confusion, especially on teams. Follow the SERVICE_PURPOSE pattern:
When you have multiple keys for the same service (e.g., test and production), include the environment:

Troubleshooting

What’s Next

API Integrations

Connect tools to live services using your secrets.

Traces

Verify that authenticated requests succeed.