> 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/instant-issuance/instant-issuance-es/integrar-la-api-de-d1/referencia-de-la-api-de-d1/api-entrante-a-d1.md).

# API entrante (a D1)

Las API entrantes son llamadas por su **backend del emisor** para realizar operaciones en el **backend de D1**.

Use estas API para:

* Autenticarse en D1 y obtener un token de acceso.
* Solicitar la producción de tarjetas físicas (incluida la emisión instantánea).

### Antes de comenzar

Necesita tener estos componentes de integración en su lugar:

* **Autenticación mutua TLS (mTLS)** entre su backend del emisor y el backend de D1.
* **Tokens de acceso OAuth 2.0** para autorizar llamadas a las API de D1.
* **Cifrado JWE** para campos de datos de tarjeta sensibles (por ejemplo, PAN).

Empiece aquí:

* [Configure la autenticación mutua TLS](/instant-issuance/instant-issuance-es/integrar-la-api-de-d1/configurar-la-autenticacion-mutua-tls.md)
* [Obtenga un token de acceso OAuth2.0](/instant-issuance/instant-issuance-es/integrar-la-api-de-d1/obtener-un-token-de-acceso-oauth2.0.md)
* [Cifre los datos sensibles](/instant-issuance/instant-issuance-es/integrar-la-api-de-d1/cifrar-datos-sensibles.md)

### APIs en esta sección

<table data-view="cards"><thead><tr><th>API</th><th data-card-target data-type="content-ref">Referencia</th></tr></thead><tbody><tr><td><strong>API OAuth2</strong><br>Obtenga un token de acceso OAuth 2.0 para llamadas a la API de D1.</td><td><a href="/spaces/opjPzTAKGiNsTe0y4Q4Y/pages/a98f493a142033993640b6b7a7be29206c53aaa6">/spaces/opjPzTAKGiNsTe0y4Q4Y/pages/a98f493a142033993640b6b7a7be29206c53aaa6</a></td></tr><tr><td><strong>API de emisión física</strong><br>Solicite la producción de tarjetas físicas (por ejemplo, emisión central o emisión instantánea).</td><td><a href="/spaces/opjPzTAKGiNsTe0y4Q4Y/pages/9d0dcc98411a2a91a133d7ba719095121db7228a">/spaces/opjPzTAKGiNsTe0y4Q4Y/pages/9d0dcc98411a2a91a133d7ba719095121db7228a</a></td></tr></tbody></table>

### Patrón de llamada común

1. Llame a la API OAuth2 para obtener un token de acceso.
2. Llame a la API de D1 objetivo con `Authorization: Bearer <access_token>`.
3. Reutilice el token hasta que caduque (15 minutos).

{% hint style="info" %}
La conectividad entrante y saliente requiere mTLS.

Los tokens de acceso OAuth 2.0 se aplican solo a llamadas entrantes (del backend del emisor al backend de D1).
{% endhint %}


---

# 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/instant-issuance/instant-issuance-es/integrar-la-api-de-d1/referencia-de-la-api-de-d1/api-entrante-a-d1.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.
