> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/other/es/reference-documentation/comprobar-la-disponibilidad-de-la-api-de-un-informe.md).

# Comprobar la disponibilidad de la API de un informe

No todos los informes de impact.com se pueden recuperar mediante la API. El acceso a la API se configura individualmente para cada informe y puede cambiar con el tiempo, por lo que la forma más fiable de comprobarlo es consultar el estado actual de un informe. Los pasos siguientes se aplican tanto a marcas como a partners.

{% hint style="success" %}
**Requisito previo:** Necesitas un token de acceso a la API para completar estos pasos. Aprende a [crear un token de acceso a la API](https://help.impact.com/other/es/reference-documentation/api-access-tokens/create-an-api-access-token.md), y consulta nuestros consejos sobre cómo [Mantener seguros tus tokens de acceso](https://help.impact.com/other/es/reference-documentation/api-access-tokens/keep-your-access-tokens-secure.md).
{% endhint %}

## Obtener tus credenciales de API

1. [Inicia sesión](https://help.impact.com/other/es/reference-documentation/log-in-to-your-impactcom-account.md) en tu cuenta de impact.com.
2. En la barra de navegación superior, selecciona ![](https://253564108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fpmc2UIFakEHRS3pas1a0%2Fprofile.svg?alt=media\&token=87284fd9-5037-4062-ad5d-234b845664f5) **\[Perfil de usuario] → Configuración**.
3. En *Técnico*, selecciona la página de API correspondiente al tipo de cuenta:
   * Página de marca: [**API**](https://app.impact.com/secure/advertiser/api/fr/api-access-tokens-ui.ihtml)
   * Página de partner: [**API**](https://app.impact.com/secure/mediapartner/api/fr/api-access-tokens-ui.ihtml)
4. Selecciona la tarjeta del token de acceso que quieras usar.
5. En la pestaña *Credenciales* , copia los valores de *Account SID* y *Auth Token* . Los usarás en el siguiente paso.

## Enumerar todos los informes disponibles para tu cuenta

1. Abre un cliente de API, como [Postman](https://www.postman.com/).
   * También puedes usar una herramienta de línea de comandos, como Terminal en macOS o PowerShell en Windows.
2. Usa el endpoint *List Reports* para obtener una lista de todos tus informes:
   * Endpoint para marcas: [Enumerar todos los informes disponibles](https://integrations.impact.com/brand-api-reference/reference/report-export/reports-legacy)
   * Endpoint para partners: [Enumerar todos los informes disponibles](https://integrations.impact.com/partner-api-reference/reference/reports/reports)
3. Sustituye los marcadores de posición `<AccountSID>` y `<AuthToken>` por los valores que copiaste.
   * La respuesta muestra todos los informes disponibles para tu cuenta, incluidos aquellos que no se pueden recuperar mediante la API.

## Comprobar si un informe específico está disponible mediante la API

1. En la respuesta, busca el informe que te interesa localizando su *Nombre o Id*.
2. Comprueba el valor del campo `ApiAccessible` del informe:
   * `true`: Puedes obtener este informe a través de la API.
   * `false`: Por el momento, no puedes obtener este informe a través de la API. En su lugar, descubre cómo descargar o programar el informe en la plataforma.
3. Este es un ejemplo de respuesta para un informe disponible a través de la API para partners:

   ```json
   {
     "Reports": [
       {
         "Name": "Action Listing",
         "Id": "ps_a_action_listing",
         "Category": "Performance",
         "Description": "Lists all actions for a date range.",
         "ApiAccessible": true,
         "ApiRunUri": "/Mediapartners/<AccountSID>/Reports/ps_a_action_listing",
         "DeferredApiRunUri": "/Mediapartners/<AccountSID>/ReportExport/ps_a_action_listing",
         "MetaDataUri": "/Mediapartners/<AccountSID>/ReportsMetadata/ps_a_action_listing"
       }
     ]
   }
   ```


---

# 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://help.impact.com/other/es/reference-documentation/comprobar-la-disponibilidad-de-la-api-de-un-informe.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.
