Docs / Set it up
6. Give the keys to Knock
Add your four Telnyx values to your Vercel project, redeploy once, and Knock is connected.
Knock reads its Telnyx settings from your Vercel project's environment variables, which only the server can see. They are never sent to anyone's phone or browser.
Add the four values
- Open vercel.com, then your Knock project.
- Go to Settings, then Environment Variables.
- Add these four, one at a time. For each, enter the name exactly as shown, paste the value, and leave all environments ticked.
| Name | Value |
|---|---|
TELNYX_API_KEY |
the API key you copied |
TELNYX_PUBLIC_KEY |
the public key |
TELNYX_CONNECTION_ID |
the application ID |
TELNYX_NUMBER |
your number in international format, like +14155550123 |
Double-check each value for stray spaces, quotes or commas. Knock cleans up the number and keys, but exactness avoids a debugging session.
Redeploy
Environment variables only take effect on the next deployment.
- Go to Deployments.
- Open the menu on the latest deployment and choose Redeploy.
- Wait for it to turn green, about a minute.
Check it
Open Knock and run first-time setup. The Checks screen should show five rows. If all five are green, Telnyx and Knock are connected.
If a row is red, it says why. The first-time setup page explains each one.