> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/tokenization/implement-tokenization/card-tokenization-request/processing-the-response/approve-with-step-up-authentication/otp-by-sms-email.md).

# OTP by SMS/email

The payment network **TSP** can authenticate the **End User** using a one-time password (**OTP**) generated and managed by the TSP.

The **Issuer** delivers the OTP to the End User by SMS or email.

D1 can send SMS and email on behalf of the Issuer. The following conditions apply:

{% stepper %}
{% step %}

### Provide contact details

The Issuer must provide the End User’s phone number and/or email according to the preferred method. See [Get started](https://docs.payments.thalescloud.io/tokenization/get-started.md) for details.

D1 uses this API to retrieve End User contact details from your **issuer backend**.

{% hint style="warning" %}
D1 cannot verify the authenticity of End User contact details. It is the Issuer’s responsibility to provide validated End User data to D1.
{% endhint %}
{% endstep %}

{% step %}

### Configure templates

The Issuer must configure message templates. D1 supports placeholders to include the last four digits of the **PAN** and the OTP value.
{% endstep %}

{% step %}

### Update DNS zone

The Issuer must update its DNS zone file to allow D1 to send emails on behalf of the Issuer and prevent emails from being treated as spam.

The detailed procedure is coordinated by the Thales delivery team. In summary, the Issuer defines and configures a subdomain (for example, `email.bankname.com`) and shares it with Thales. Thales uses it to generate DNS records that the Issuer adds to its DNS zone file.
{% endstep %}
{% endstepper %}

### Flow

<figure><img src="https://2043231064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6dljaTEEzefPQILRFB7%2Fuploads%2FUTG2iNTGy0Ab3trCF5St%2Femail.svg?alt=media&amp;token=7f327be5-0757-4450-b0c4-55db351d458e" alt=""><figcaption><p>OTP delivery flow (high level)</p></figcaption></figure>

### Sequence diagram

<figure><img src="https://2043231064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6dljaTEEzefPQILRFB7%2Fuploads%2Ff3gKoOuU2eSHE1uVLGMo%2Femail.svg?alt=media&amp;token=40a70c5a-d921-447a-8e42-437c645f4e37" alt=""><figcaption><p>OTP delivery sequence diagram</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.payments.thalescloud.io/tokenization/implement-tokenization/card-tokenization-request/processing-the-response/approve-with-step-up-authentication/otp-by-sms-email.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
