# Autenticación

{% hint style="warning" %}
**SERVICIO DISCONTINUADO**

La API de envíos transaccionales ya no está disponible para nuevas suscripciones.&#x20;

Para las suscripciones activas, **el servicio será discontinuado en su totalidad el día 1/3/2026.**
{% endhint %}

{% hint style="info" %}
El API key utilizada para envíos transaccionales **es una API key específica**, distinta a la asociada a cada usuario.

Es fácil identificar sin un API key es para uso de envíos transaccionales, si contiene `tr` luego del nombre de cuenta:

`micuenta-tr-aDsffD35eSdfsadsGFdFfssfsaADS`
{% endhint %}

## Authorization header&#x20;

La autenticación se realiza agregando el header `Authorization` a cada request:&#x20;

```
Authorization: Bearer MI_API_KEY
```

#### Por ejemplo:

```
Authorization: Bearer micuenta-tr-aDsffD35eSdfsadsGFdFfssfsaADS
```

{% hint style="danger" %}
**NUNCA se debe incluir el API key en código del lado cliente, como por ejemplo javascript del navegador. Utilizarlo SIEMPRE del lado servidor (php, java, node, …)**
{% endhint %}

{% hint style="info" %}
Puedes generar tu API keys desde la sección Integraciones de tu cuenta de Perfit. Si tienes dudas sobre cómo hacerlo contáctanos a <soporte@myperfit.com>.
{% endhint %}


---

# Agent Instructions: 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://developers.myperfit.com/transactional-api/convenciones-y-limites.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.
