> 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/click-to-pay/integrate-the-d1-api/d1-api-reference.md).

# D1 API reference

Use these OpenAPI (Swagger) files to implement your backend.

You can also import them into tooling such as Postman or Insomnia.

### Download OpenAPI (Swagger) files

The links below are placeholders.

Update them to your final hosting location.

#### Inbound APIs (Issuer -> Thales D1)

* OAuth2 API: [D1-Public-IN-v1-Auth2](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-IN-v1-Auth2.yaml)​
* Consumer API: [D1-Public-IN-v2-Consumer](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-IN-v2-Consumer.yaml)​
* Card API (v2): [D1-Public-IN-v2-Card](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-IN-v2-Card.yaml)​
* Card API (v1): [D1-Public-IN-v1-Card](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-IN-v1-Card.yaml)
* Click to Pay API: [D1-Public-IN-v1-ClickToPay](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-IN-v1-ClickToPay.yaml)

#### Outbound APIs (Issuer <- Thales D1)

* OAuth2 API: [D1-Public-OUT-v1-Auth2](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-OUT-v1-Auth2.yaml)​
* Consumer API: [D1-Public-OUT-v1-Consumer](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-OUT-v1-Consumer.yaml)​
* Card API: [D1-Public-OUT-v2-Card](https://openapi.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/spec/D1-Public-OUT-v2-Card.yaml)

{% hint style="info" %}
If you publish a single combined OpenAPI file, replace the per-API links with one link.
{% endhint %}

### Browse the API reference

Use these pages to read the request/response details.

#### Inbound APIs (Issuer -> Thales D1)

* [OAuth2 API](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/oauth2-api.md)
* [Consumer API](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api.md)
* [Card API](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md)
* [Click to Pay API](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md)

#### Outbound APIs (Issuer <- Thales D1)

* [OAuth2 API](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/oauth2-api.md)
* [Consumer API](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/consumer-api.md)
* [Card API](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/card-api.md)


---

# 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/click-to-pay/integrate-the-d1-api/d1-api-reference.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.
