> 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/fr/reference-documentation/verifier-la-disponibilite-de-lapi-dun-rapport.md).

# Vérifier la disponibilité de l'API d'un rapport

Tous les rapports sur impact.com ne peuvent pas être récupérés via l’API. L’accès à l’API est défini individuellement pour chaque rapport et peut évoluer au fil du temps. Le moyen le plus fiable consiste donc à vérifier l’état actuel d’un rapport. Les étapes ci-dessous s’appliquent aussi bien aux marques qu’aux partenaires.

{% hint style="success" %}
**Prérequis :** Vous avez besoin d’un jeton d’accès à l’API pour effectuer ces étapes. Découvrez comment [créer un jeton d’accès à l’API](https://help.impact.com/other/fr/reference-documentation/api-access-tokens/create-an-api-access-token.md) et consultez nos conseils pour [protéger vos jetons d’accès](https://help.impact.com/other/fr/reference-documentation/api-access-tokens/keep-your-access-tokens-secure.md).
{% endhint %}

## Récupérer vos identifiants d’API

1. [Connectez-vous](https://help.impact.com/other/fr/reference-documentation/log-in-to-your-impactcom-account.md) à votre compte impact.com.
2. Dans la barre de navigation supérieure, sélectionnez ![](https://2947925681-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) **\[Profil utilisateur] → Paramètres**.
3. Sous *Technique*, sélectionnez la page API correspondant à votre type de compte :
   * Page Marque : [**API**](https://app.impact.com/secure/advertiser/api/fr/api-access-tokens-ui.ihtml)
   * Page Partenaire : [**API**](https://app.impact.com/secure/mediapartner/api/fr/api-access-tokens-ui.ihtml)
4. Sélectionnez la carte du jeton d’accès que vous souhaitez utiliser.
5. Dans l’onglet *Identifiants* , copiez les valeurs de votre *SID du compte* et de votre *jeton d’authentification* . Vous en aurez besoin à l’étape suivante.

## Lister tous les rapports disponibles pour votre compte

1. Ouvrez un client API, tel que [Postman](https://www.postman.com/).
   * Vous pouvez également utiliser un outil en ligne de commande, comme Terminal sur macOS ou PowerShell sur Windows.
2. Utilisez votre point de terminaison *List Reports* pour obtenir la liste de tous vos rapports :
   * Point de terminaison pour les marques : [Lister tous les rapports disponibles](https://integrations.impact.com/brand-api-reference/reference/report-export/reports-legacy)
   * Point de terminaison pour les partenaires : [Lister tous les rapports disponibles](https://integrations.impact.com/partner-api-reference/reference/reports/reports)
3. Remplacez les espaces réservés `<AccountSID>` et `<AuthToken>` par les valeurs que vous avez copiées.
   * La réponse affiche tous les rapports disponibles pour votre compte, y compris ceux qui ne peuvent pas être récupérés via l’API.

## Vérifier la disponibilité de l’API pour un rapport précis

1. Dans la réponse, repérez le rapport qui vous intéresse en recherchant son *nom ou identifiant*.
2. Vérifiez la valeur du champ `ApiAccessible` du rapport :
   * `true` : Vous pouvez récupérer ce rapport via l’API.
   * `false` : Vous ne pouvez pas récupérer ce rapport via l’API pour le moment. Découvrez comment télécharger ou planifier le rapport sur la plateforme.
3. Voici un exemple de réponse pour un rapport accessible via l’API partenaire :

   ```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/fr/reference-documentation/verifier-la-disponibilite-de-lapi-dun-rapport.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.
