You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/api-server/guides/configure-environment-variables.mdx
+39-9Lines changed: 39 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,23 +45,53 @@ A long, random password used to secure your API.
45
45
Your API key for the SendGrid service, which is used to send transactional emails like One-Time Passwords (OTPs).
46
46
47
47
-**How to Obtain:**
48
-
1. Create a [SendGrid account](https://signup.sendgrid.com/).
49
-
2. Navigate to **Settings > API Keys** in your SendGrid dashboard.
50
-
3. Create a new API key with "Full Access" or restricted permissions for sending mail.
51
-
4. Copy the generated key and paste it here.
48
+
1. create a free [SendGrid account](https://signup.sendgrid.com/).
49
+
2. create your API key, follow the [official SendGrid guide](https://www.twilio.com/docs/sendgrid/ui/account-and-settings/api-keys#creating-an-api-key).
50
+
3. Copy the generated key and paste it here.
52
51
53
52
#### `DEFAULT_SENDER_EMAIL`
54
53
The email address that will appear as the sender for all transactional emails. This should be an email address you have verified with SendGrid.
55
54
55
+
<Asidetype="caution">
56
+
SendGrid requires you to prove you own this email address to prevent it from rejecting your emails. This is done through a process called "Single Sender Verification".
57
+
</Aside>
58
+
59
+
**How to Verify:** Follow the [official SendGrid guide](https://www.twilio.com/docs/sendgrid/ui/sending-email/sender-verification). You will need to click a confirmation link sent to that address.
60
+
61
+
56
62
#### `OTP_TEMPLATE_ID`
57
63
The ID of the dynamic email template in SendGrid used for sending OTP codes.
58
64
59
-
-**How to Obtain:**
60
-
1. In your SendGrid dashboard, go to **Email API > Dynamic Templates**.
61
-
2. Create a new template. The template must include a variable for the code (e.g., `{{otp_code}}`).
62
-
3. Copy the Template ID and paste it here.
65
+
-**Steps to Create the Template:**
63
66
64
-
---
67
+
1. Go directly to SendGrid's [**Dynamic Templates page**](https://mc.sendgrid.com/dynamic-templates).
68
+
69
+
2. Click "**Create a Dynamic Template**" and give it a name (e.g., "OTP Template").
70
+
71
+
3. Click your new template, then click "**Add Version**" and choose the "Blank Template" then the "**Code Editor**".
72
+
73
+
4. Empty all existing HTML code then paste the code below. It includes the required `{{otp_code}}` placeholder.
0 commit comments