Which key, token or secret goes where¶
EchoRelay uses five kinds of key, token, secret and credential, and each works in one direction. Three get something into your project. Two go out with a delivery to your target.
INTO YOUR PROJECT OUT TO YOUR TARGET
your callers --- API key ----------> +-----------+ --- target credential ---> your target
a sender ------- sender signature -> | EchoRelay | --- signing secret ------> (your API, Salesforce,
your agent ----- management token -> | project | Microsoft ...)
or MCP sign-in +-----------+
| Direction | What you use | What it proves | Where you set it |
|---|---|---|---|
| Your callers to us | API key (er_live_… / er_test_…) |
The request comes from someone you gave a key to | Your project in the panel. See Account & security |
| A sender's webhook to us | Sender signature: GitHub, Stripe, Standard Webhooks or Custom (HMAC) | The webhook really came from that sender, unaltered | A Signing secret (from the sender) credential, picked on the endpoint. See Verify the sender's signature |
| Your agent to us, for setup | Management token (er_mcp_…) or MCP sign-in |
The agent may read or change your project's setup | Management tokens in the panel, or approve the agent in your browser. See Use EchoRelay from an AI agent |
| Us to your target | Target credential: bearer token, basic auth, API key, public/private key, or OAuth client credentials | We are allowed into your target's API | Credentials in the project menu, or the target's own auth. See Credential vault |
| Us to your target, proving it was us | Signing secret (whsec_…) |
The body came from EchoRelay and was not changed on the way | Signing secret on the target. See Verify a delivery came from us |
Two things called OAuth
MCP sign-in and OAuth client credentials are unrelated. MCP sign-in lets your agent into your EchoRelay project: you approve it in the browser and it appears as a connected agent on the Management tokens page. OAuth client credentials are a target credential for a vendor such as Salesforce or Microsoft: we trade them for an access token and send that token with each delivery.
The two signing secrets are the other common mix-up. Both are HMAC secrets, but they face opposite ways. The sender's signing secret checks webhooks coming in to us, and we never send it anywhere. The signing secret on a target signs the deliveries going out, so your receiver can check them.
Limits¶
- Each works in its own direction only. An API key can't call a management tool, a management token can't send requests to a line, and a signing secret from a sender can't be used on a target.
- A target credential is bound to one host when you save it, and is sent only there, over
https. OAuth client credentials also go to their token URL, which can't be changed after you save. - An endpoint checks one sender. A target has one signing secret at a time.
When it fails¶
- A key or token used at the wrong door is refused with
401: an API key sent to MCP or the management API, or a management token sent to an endpoint. So is a webhook whose signature does not match. - When your target refuses its credential, the delivery fails with your target's status.
If the target uses OAuth client credentials and the vendor's token URL refuses us, the
delivery fails with
oauth_token_request_failed(what happens next). - If your receiver rejects a delivery because of our signature, we see only the status it answers with, not why. Log rejections on your side.
What it costs¶
Saving and minting them is free, and none of them changes what a request costs; requests and deliveries are charged as Credits & billing describes.
Try it¶
List the credentials saved in your project with a management token. Each one comes back with its type, and secret values come back masked:
export ECHORELAY_MANAGEMENT_TOKEN='er_mcp_…'
curl -sS "https://api.echorelay.dev/credentials" \
-H "Authorization: Bearer $ECHORELAY_MANAGEMENT_TOKEN"
FAQ¶
Which secret do I give GitHub or Stripe?¶
None of ours. Copy the signing secret GitHub or Stripe shows you and save it as a
Signing secret (from the sender) credential. The whsec_… secret you generate for a
target is for your own receiver.
Can my API key authenticate a delivery to my target?¶
No. Your API key only lets callers into your project. Give the target its own credential, the one its API asks for.