> 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/ecom/integrate-the-d1-api.md).

# Integrate the D1 API

Use this section to set up connectivity and security. Then use the OpenAPI reference to integrate inbound and outbound APIs.

### What you need to do

* Set up mutual TLS (mTLS) for inbound and outbound connectivity.
* Get OAuth 2.0 access tokens for inbound API calls.
* Encrypt sensitive data using JWE where required.

### Documentation

<table data-view="cards"><thead><tr><th>Title</th><th data-card-target data-type="content-ref">Target</th></tr></thead><tbody><tr><td>D1 API overview</td><td><a href="/spaces/Ii0bpgsSo3R04ofjLwPG/pages/gRmLTVTmTaREDBv3P48K">/spaces/Ii0bpgsSo3R04ofjLwPG/pages/gRmLTVTmTaREDBv3P48K</a></td></tr><tr><td>Set up mutual TLS (mTLS)</td><td><a href="/spaces/Ii0bpgsSo3R04ofjLwPG/pages/x7ydM8VbsjmRUgRNRpAq">/spaces/Ii0bpgsSo3R04ofjLwPG/pages/x7ydM8VbsjmRUgRNRpAq</a></td></tr><tr><td>Get an OAuth 2.0 access token</td><td><a href="/spaces/Ii0bpgsSo3R04ofjLwPG/pages/iXI0jLK1udscV1SFW4qP">/spaces/Ii0bpgsSo3R04ofjLwPG/pages/iXI0jLK1udscV1SFW4qP</a></td></tr><tr><td>Encrypt sensitive data</td><td><a href="/spaces/Ii0bpgsSo3R04ofjLwPG/pages/GyDF8dvYq4vflhaBrzQ5">/spaces/Ii0bpgsSo3R04ofjLwPG/pages/GyDF8dvYq4vflhaBrzQ5</a></td></tr><tr><td>D1 API reference</td><td><a href="/spaces/Ii0bpgsSo3R04ofjLwPG/pages/IUI6a5pYGOKQKWXIhWE2">/spaces/Ii0bpgsSo3R04ofjLwPG/pages/IUI6a5pYGOKQKWXIhWE2</a></td></tr></tbody></table>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.payments.thalescloud.io/ecom/integrate-the-d1-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
