Secrets
Secrets are available inside Functions. To add a secret, first create a Function.
Last updated
Secrets are available inside Functions. To add a secret, first create a Function.
Last updated
Secrets allow you to store API keys, passwords, and other sensitive data for use in your project.
Once you add a secret, it is available to all Functions in your project.
Once inside a Function, click on “Secrets” in the side panel to the right
Click “+ Add a new secret” to enter your new secret value. Name your secret something recognizable like “Stripe API Key”. Then add the secret value. Unsure of what to add? See examples below.
After you save your secret, assuming you named it well, you can now write your prompt using the API or service name. Create will automatically connect your secret.
Imagine you stored “Stripe API Key” as a secret. Now, you can make a function with the following prompt.
`This function takes in a user email. Looks them up as a customer in Stripe. If they are a subscriber, give them 1 month free.`
You can just reference Stripe
in your prompt. Create will know that you need “Stripe API Key” to access the Stripe API and it will use that secret in the Function - without exposing its value.
Create's Secrets Manager allows you to securely store and manage static keys for your applications. These static keys can include:
Basic Authentication Credentials: You can store a username and password as a secret.
Bearer Tokens: You can store a bearer token as a secret.
Note: OAuth tokens are not directly supported because they expire and require the user to re-authenticate in order to refresh them. Please note: databases made in Create are not yet secure for storing OAuth tokens.
Create’s Secrets Manager can store any static key. So you can store API keys, client ids, client passwords, access tokens, and more.
Here are some popular APIs that require API keys with links to documentation on how to get your key. After you have your key, name your secret like the example shows:
Stripe: How to get your API Key
Twilio: How to get your API Key
Sendgrid: How to get your API Key
MailGun: How to get your API Key
HubSpot: How to get your API key