> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Flyy

# Introduction

[Flyy ](https://www.theflyy.com/)is gamification as a platform. It provide growth tools for Apps to increase new users, retain and engage existing and get more transactions done in the app or website.

# MoEngage × Flyy

The MoEngage and Flyy integration allows you to sync segment between MoEngage and Flyy, helping you fuel Gamification initiatives with laser-focused retargeting. We will use MoEngage [Connecter Campaigns](/user-guide/campaigns-and-channels/connectors/create/create-a-connector-campaign) to build this integration with [Flyy APIs](https://api-docs.theflyy.com/#d75f96e1-7b1e-4ec2-9bab-2ada7a116eda).

<Info>
  * Ensure you have admin access to your Flyy account.
  * A common identifier between MoEngage and Flyy. This is recommended to map your users across two platforms.
</Info>

To create a connector campaign on MoEngage,

1. Navigate to Create Campaign >> Connectors >> Custom and choose the delivery type most suitable to your needs<img src="https://mintcdn.com/moengage/0EdW-QMnfbsLxXT2/images/partner_4678168106516.png?fit=max&auto=format&n=0EdW-QMnfbsLxXT2&q=85&s=daed30b31c03faf67945e02a3ef4c666" alt="Screenshot_2022-02-21_at_10.48.46_PM.png" width="1104" height="1238" data-path="images/partner_4678168106516.png" />
2. On step 2 of the campaign

### Add user to the segment

* Select the method as POST
* Add Webhook URL as: `https://partner-api.theflyy.com/v1/partner-id/user/{{UserAttribute['id']}}/add_segment`
* In Headers, add
  * partner-key `{{partner-key}}`
  * Content-Type: application/json

<img src="https://mintcdn.com/moengage/W4UIG2ZYu1ajYKNS/images/partner_14962273433620.png?fit=max&auto=format&n=W4UIG2ZYu1ajYKNS&q=85&s=f49e23ecbceb9a7ee68fbc49e21a8bb2" alt="Screenshot_2023-04-18_at_9.10.42_PM.png" width="2696" height="1152" data-path="images/partner_14962273433620.png" />

* In the Body, you need to define the segment details. Use the following example to help structure your payload and enter your desired fields.
  <CodeGroup>
    ```json JSON wrap theme={null}
    { "segment_title": {Segment-Name}, "segment_key": {segment-key} }
    ```
  </CodeGroup>

### Remove user from the segment

* Select the method as POST
* Add Webhook URL as: `https://partner-api.theflyy.com/v1/partner-id/user/{{UserAttribute['id']}}/remove_segment`
* In Headers, add
  * partner-key `{{partner-key}}`
  * Content-Type: application/json

<img src="https://mintcdn.com/moengage/W4UIG2ZYu1ajYKNS/images/partner_14962326733844.png?fit=max&auto=format&n=W4UIG2ZYu1ajYKNS&q=85&s=029dc3c7ddf7df4da039cf5b4db41939" alt="Screenshot_2023-04-18_at_9.10.51_PM.png" width="2692" height="1184" data-path="images/partner_14962326733844.png" />

* In the Body, you need to define the segment details. Use the following example to help structure your payload and enter your desired fields.
  <CodeGroup>
    ```json JSON theme={null}
    { "segment_title": {Segment-Name}, "segment_key": {segment-key} }
    ```
  </CodeGroup>

## Step 3: Preview your request

3. At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available in Step 2 of Create Connector Campaign.<img src="https://mintcdn.com/moengage/0EdW-QMnfbsLxXT2/images/partner_4678362626196.png?fit=max&auto=format&n=0EdW-QMnfbsLxXT2&q=85&s=da841ee3a77bb4a9de54430bc067187b" alt="Screen_Shot_2022-02-22_at_11.12.42_AM.png" width="2464" height="270" data-path="images/partner_4678362626196.png" />

You can go ahead and Publish the campaign.

## Common identifier

If you have a common identifier between MoEngage and Flyy, it is recommended to utilize this as the `user_id`, this will help unify the two sets of users.

Alternatively, if this is not the case, we recommend passing a set of identifying attributes such as name, email address, phone number, or others.
