Skip to content

DocsAdd to your app

Secrets and outside services

To use another service from your app, such as one that takes payments, sends messages or looks up addresses, your app needs that service’s API key. In PeerMake such a key is a secret: you type it in once, and it is never shown again.

When PeerMake asks for one

Describe what you want in the chat, for example “send a text message when an order comes in”. When the feature needs a key, a Set up secret card appears in the chat with the secret’s name and what it is for.

  1. Get the key from the other service: sign in there and look for API keys in its settings.
  2. Press Set up on the card and paste the key into Value.
  3. Press Save secret. The card shows Configured, and the list shows where the secret is used and, under Changed, who changed it last and when.

For previews, paste a test key if the service offers one. See preview and live values below.

Add one yourself

  1. In your app’s menu, under Settings, open Secrets and press Add secret.
  2. Give it a Name in capital letters, such as PAYMENTS_API_KEY, and paste the Value.
  3. Under Used in, tick Live app, Previews or both. With both, the Value goes to the live app and the Preview value to previews: use a test key there, or leave it empty to keep the secret out of previews.
  4. Optionally say What it’s for.
  5. Press Save secret, then tell PeerMake in the chat what to use it for.

How a secret is kept

  • Once saved, PeerMake never shows a value again, not even to you. To change it, press Replace; Remove deletes it, and the feature that used it stops working. Your running app picks up the change shortly after.
  • Your app’s server code reads the value when it needs it. PeerMake never sends it to the pages in the browser, and it is not part of your app’s code or its download.
  • While PeerMake is still working on a change, the work in progress it shows you gets no secrets. A feature that uses one works in the preview once the change is checked and in.

Preview and live values

Each secret shows where it is used: Live for your published app and Preview for previews. The two values are kept apart and never copied, so previews can use a test key while your published app uses the real one.

Use a test key for previews. Code that runs in a preview can read the preview value, and anyone who changes your app’s code can write such code, PeerMake’s AI and your own agent included. The live value is read only by the version you published.

Add the preview value first. Live app can be ticked once the app is published; press Replace, tick it and add the real key, and the published app uses it from then on.

Entries marked Managed by PeerMake are keys PeerMake keeps for a feature such as sign-in. They are there for your information and cannot be changed.

Something missing or wrong here? Write to support@peermake.app.