Setting the Language for the Lead Notification Email
Any lead created using the lead creation endpoint will send a notification email to the organization the lead is created for unless 1) Lead notifications are disabled for your instance, or 2) no email addresses are input on the organization record (or organization parent records) in Command Center.
If lead notifications are enabled for your instance and Lead notification email address(es) are present in Command Center for organizations that leads are being created for, then lead notifications will be sent via email to the email addresses provided in Command Center.
By default, all leads created via the lead creation endpoint default to using the English lead notification unless the API request for creating the lead includes a supported language value in the header, 'Accept-Language' .
Use the 'Accept-Language' Header
Add the 'Accept-Language' with a supported language code to the request header when using the lead creation endpoint to create a lead. Refer to the table below for accepted header values.
Accept-Language: < value >
'Accept-Language' Request Header Supported Values
| Language | Value |
|---|---|
| English | en |
| Spanish | es |
| German | de |
| French | fr |
| Italian | it |
| Dutch | nl |
PowerChord Developer