Appearance
ADV email template
Endpoints for your organisation's Automated Document Verification (ADV) email template: the design of the email your customers get with the link to their ID check. For what a template can contain, its rules, and why to test it before saving it, see Email Template.
Your organisation has one template, in two parts, each identified by its format:
| Format | Part |
|---|---|
html | The HTML version, which most mail clients show. |
text | The plain-text version, for mail clients that can't show HTML. |
format isn't case-sensitive. Any other value returns 400 Bad Request.
Each part is your own if you've uploaded one, or EyeDP's if not. Your own parts are only sent to your customers from your Sender Email Address, once it's verified. You can upload and test a part before then. You can check the address's status with GET /api/client/config/adv-sender-email/status.
WARNING
A saved part is used for every ADV email we send for you: straight away if your Sender Email Address is verified, or as soon as it is if not. Send yourself a test email of a file before you upload it.
Get the template's parts
Returns where each part stands: your own, or EyeDP's.
| Endpoint | /api/client/adv-email-template |
|---|---|
| Method | GET |
Response
Response 200 OK
| Property | Notes |
|---|---|
| format | html or text. |
| isCustom | Whether the part is your own. If it isn't, the remaining properties are null and EyeDP's is used. |
| fileName | The name of the file you uploaded. |
| modified | When it was uploaded, in UTC. |
| modifiedBy | The name of the user who uploaded it. For a part uploaded through the API, it's the name of the user your API credentials belong to. |
json
[
{
"format": "html",
"isCustom": true,
"fileName": "acme-adv-email.html",
"modified": "2026-10-26T09:30:00Z",
"modifiedBy": "Sam Smith"
},
{
"format": "text",
"isCustom": false,
"fileName": null,
"modified": null,
"modifiedBy": null
}
]Download a part
Returns a part: your own, or EyeDP's to start from. It's a file download (Content-Disposition: attachment), with its placeholders still in place.
| Endpoint | /api/client/adv-email-template/{format} |
|---|---|
| Method | GET |
Response
Response 200 OK
The file, as text/html or text/plain. Your own part has the name you uploaded it with. EyeDP's is named eyedp-adv-email-template.html or eyedp-adv-email-template.txt.
Upload a part
Saves a file as your own version of a part, replacing any you had. The file is checked against the rules for template files, and isn't saved if it breaks any of them.
You can upload a part before ADV is enabled for your organisation, or before your Sender Email Address is verified. It's used once both are. You can't send a test email until ADV is enabled, though.
| Endpoint | /api/client/adv-email-template/{format} |
|---|---|
| Method | PUT |
| Content type | multipart/form-data |
Request
| Field | Required | Notes |
|---|---|---|
| file | ✅ | An .html or .htm file for the html part, or a .txt file for the text part. UTF-8, and 100 KB (102,400 bytes) or smaller. |
bash
curl -X PUT https://api-sandbox.eyedp.com/api/client/adv-email-template/html \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "[email protected]"Response
Response 204 No Content
The part is saved. It's used for ADV emails from now on, or once your Sender Email Address is verified.
Response 400 Bad Request
Returned if the file breaks any of the rules, with a message for each problem (see Bad requests):
json
{
"errors": [
"Must include {{SESSION_URL}}, the customer's link to their ID check.",
"Contains placeholders we don't recognise: {{CUSTMOER}}. Placeholders are case-sensitive, and are listed in the developer docs."
]
}A request over 1 MB is refused before the file is checked, with a 400 Bad Request whose message is "Failed to read the request form. Request body too large. The max request body size is 1048576 bytes."
Remove a part
Removes your own version of a part, so ADV emails use EyeDP's for it again. You can remove a part whatever your Sender Email Address's status.
| Endpoint | /api/client/adv-email-template/{format} |
|---|---|
| Method | DELETE |
Response
Response 204 No Content
The part is EyeDP's. This is also the response if it already was.
Send a test email
Sends a test email of a file without saving it, so you can see how it shows in a real mail client. It's sent from wherever your customers' ADV emails are: from your Sender Email Address once it's verified, or while we couldn't check its status (unknown), and from EyeDP's address otherwise. The file is checked as it would be on upload. For what the email contains, see Testing your template.
| Endpoint | /api/client/adv-email-template/{format}/test |
|---|---|
| Method | POST |
| Content type | multipart/form-data |
Request
| Field | Required | Notes |
|---|---|---|
| file | ✅ | The file to test, as you'd upload it. |
| ✅ | Where to send the test. It must be on one of your organisation's valid email domains, or a subdomain of one. | |
| customerName | The name the customer is greeted by. 80 characters or fewer. Defaults to "Test Customer". |
bash
curl -X POST https://api-sandbox.eyedp.com/api/client/adv-email-template/html/test \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "[email protected]" \
-F "[email protected]" \
-F "customerName=Jo"In the test email, {{CUSTOMER}} is customerName, {{CASE_MANAGER}} is the first name of the user your API credentials belong to, and {{SESSION_URL}} and the QR code go to EyeDP's website.
Response
Response 204 No Content
The test email has been sent. If it was sent from EyeDP's address, it doesn't show that your Sender Email Address works.
Response 400 Bad Request
Returned if the address isn't allowed, or the file breaks any of the rules. The address is checked first. If it's allowed, any problems with the file come back with a message for each, as for uploading a part. The address's messages are:
| Message | Meaning |
|---|---|
| The recipient must be a valid email address. | email isn't a single email address. |
| The recipient must be on one of your organisation's email domains: acme.com. | Test emails can only be sent within your organisation. |
| Your organisation has no email domains set up with us, so test emails can't be sent through the API. Contact support to add one. | Your organisation needs a valid email domain first. |
json
{
"errors": [
"The recipient must be on one of your organisation's email domains: acme.com."
]
}Response 409 Conflict
Returned if your organisation doesn't have Automated Document Verification enabled.
http
HTTP/1.1 409 Conflict
"Automated Document Verification isn't enabled for your organisation."Response 429 Too Many Requests
Returned once your organisation has sent 10 test emails in an hour, counted from the first. A test refused for any of the reasons above doesn't count towards them. A test that fails with a 502 does count, as we tried to send it. Try again later.
json
{
"status": 429,
"detail": "You can send up to 10 test emails an hour. Try again later."
}Response 502 Bad Gateway
Returned if the test email couldn't be sent from your Sender Email Address. When that happens to a customer's email, EyeDP's email is sent from EyeDP's address instead. A test isn't, so that you know your address isn't working.
json
{
"status": 502,
"detail": "The test email couldn't be sent from your organisation's Sender Email Address. Check its status, then try again."
}
