---
title: "Passer de l'API S2S AppsFlyer 2 à 3"
description: "Passez de l'API S2S AppsFlyer 2 à 3 dans Adapty."
---

> **AI agents**: to search Adapty docs faster and with fewer tokens, install the Adapty skill. Claude Code (self-updating via plugin): `claude plugin marketplace add adaptyteam/adapty-sdk-integration-skill && claude plugin install adapty-sdk-integration@adapty` — other tools: `npx skills add adaptyteam/adapty-sdk-integration-skill --all`

Selon les [nouveautés officielles d'AppsFlyer](https://support.appsflyer.com/hc/en-us/articles/20509378973457-Bulletin-Upgrading-the-AppsFlyer-S2S-API), afin d'offrir une expérience plus sécurisée pour l'utilisation de l'API et de réduire la fraude, AppsFlyer a mis à niveau son API serveur à serveur (S2S) pour les événements in-app. L'endpoint existant sera déprécié à l'avenir et nous vous recommandons de commencer à planifier la transition.

Adapty prend en charge l'API S2S AppsFlyer 3 et vous permet de passer de l'API 2 en toute simplicité. Notez que cette transition est à sens unique : vous ne pourrez pas revenir à l'API 2 une fois le changement effectué.

Pour passer de l'API S2S AppsFlyer 2 à 3 :

1. Ouvrez le [site AppsFlyer](https://www.appsflyer.com/home) et connectez-vous.

2. Cliquez sur **Your account name** -> **Security Center** dans le coin supérieur gauche du tableau de bord.

  <img src="/assets/shared/img/be299ea-appsflyer_security_center.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

3. Dans la fenêtre **Manage your account security**, cliquez sur le bouton **Manage your AppsFlyer API and S2S tokens**.

4. Si vous n'avez pas de token S2S, cliquez sur le bouton **New token**. Si vous en avez déjà un, passez directement à l'étape 8.

  <img src="/assets/shared/img/7934920-appsflyer_new_token.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

5. Dans la fenêtre **New token**, saisissez le nom du token. Ce nom est uniquement à titre de référence.

6. Choisissez **S2S** dans la liste **Choose type**.

7. N'oubliez pas de cliquer sur le bouton **Create new token** pour enregistrer le nouveau token.

8. Dans la fenêtre **Tokens**, copiez le token S2S.

  <img src="/assets/shared/img/d014c25-appsflyer_tokens.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

9. Ouvrez [**Integrations** -> **AppsFlyer**](https://app.adapty.io/integrations/appsflyer) dans l'Adapty Dashboard.

10. Dans le champ **AppsFlyer S2S API**, sélectionnez **API 3**.

  <img src="/assets/shared/img/c0b3e72-appsflyer_switch_API.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

11. Collez la clé S2S copiée dans les champs **Dev key for iOS** et **Dev key for Android**.

12. Cliquez sur le bouton **Save** pour confirmer le changement.

À ce moment-là, votre intégration bascule instantanément vers l'API S2S AppsFlyer 3 et vos nouveaux événements seront envoyés à la nouvelle URL : `https://api3.appsflyer.com/inappevent`.