# Introduction to Revtoo

Welcome to the [Revtoo](https://revtoo.com) documentation. Here you will find all required information to integrate our offerwall into your website or to use our [Offer Gallery](/additional/offer-gallery) Feature which requires atleast one [App Placement](/getting-started/add-your-placement) with us in just few minutes.\
\
Before moving forward, ensure you're registered on [Revtoo](https://revtoo.com), account is required to use any of our tools.


# Add your Placement

In order to integrate our Revtoo Offerwall, first you have to add your app/website placement. Once you have your placement approved, you will have an `API KEY` and a `SECRET KEY`, that you will need to integrate our Offerwall or to use our [Offer Gallery](/additional/offer-gallery) Feature.

### Steps to add your placement

#### [Login](https://revtoo.com/?page=login) or [Signup](https://revtoo.com/?page=register) your account with Revtoo

{% tabs %}
{% tab title="Signup" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FDu8VyQmYvTw1PiyziX2x%2Fscreencapture-revtoo-2025-02-22-21_34_18.png?alt=media&amp;token=859aaef5-86d0-4186-937a-dc7a58ce449b" alt="Signup"><figcaption><p>Signup Page Example</p></figcaption></figure>
{% endtab %}

{% tab title="Login" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FuvbdTxBJYF2HBB4Of4Fc%2FScreenshot%202025-02-22%20at%209.36.13%E2%80%AFPM.png?alt=media&amp;token=31730619-5e5f-4563-8379-a1c415df38b5" alt="Login"><figcaption><p>Login Page Example</p></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Click on Placements then Create button

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FbBewJNgqlE1xHTofm6Gt%2FScreenshot%202025-02-22%20at%209.48.24%E2%80%AFPM.png?alt=media&amp;token=81b3fb25-918a-4215-a459-1b1e27ec149c" alt=""><figcaption></figcaption></figure>

#### Fill up the form and submit your submission to us

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2F7O7ou5SBK4nhWKyRz3Ba%2FScreenshot%202025-02-22%20at%209.49.43%E2%80%AFPM.png?alt=media&amp;token=681ba2e4-ff7b-4707-9d36-a98420ab3a3a" alt=""><figcaption><p>Allow us up to 24 hours to check your placement request</p></figcaption></figure>

{% hint style="info" %}
Within 24 hours, your account will be approved by our team. After that make sure to add your postback and reward configs i.e. Exchange Rate, Currency Name, Currency Round etc.
{% endhint %}

{% hint style="info" %}
After your account is approved you can either use [iFrame](/integrate-offerwall/required-information) or [Offers API](/api/offers) to access our offers.
{% endhint %}

{% hint style="info" %}
We advice you to use [iFrame](/integrate-offerwall/required-information) if you run a simple Rewarding Platform, otherwise go with [Offers API](/api/offers).
{% endhint %}

{% hint style="info" %}
If neither [iFrame](/integrate-offerwall/required-information) and [Offers API](/api/offers) works for you, you can try [Offers Gallery](/additional/offer-gallery) Feature.
{% endhint %}


# Required Information

Revtoo enables users to benefit from incentives and rewards thanks to segmented, automatically translated ads. Our offerwall will adapt to any screen and will show offers to your users.

Before being able to integrate our offerwall, you must [register your website/app first](/getting-started/add-your-placement). Once you have registered your website you will have an `API KEY` and a `SECRET KEY.`

## Get your API and Secret Key

{% tabs %}
{% tab title="Step 1" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FXInn0JejXZhbQG9uzYj0%2FScreenshot%202025-02-22%20at%209.55.54%E2%80%AFPM.png?alt=media&amp;token=7fc3ff71-d7d8-4c24-92ee-0045559def00" alt=""><figcaption><p>Click on Placements and then click on the Edit button</p></figcaption></figure>
{% endtab %}

{% tab title="Step 2" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2F62XFqbNO1A20ihjepnXp%2FScreenshot%202025-02-22%20at%2010.00.33%E2%80%AFPM.png?alt=media&amp;token=2b0576d7-d120-4a87-8cc7-4fb010498015" alt=""><figcaption><p>Ensure all information is correct then click Integration tab</p></figcaption></figure>
{% endtab %}

{% tab title="Step 3" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FhOCMoBMQiQeQHy12APTr%2FScreenshot%202025-02-22%20at%2010.01.57%E2%80%AFPM.png?alt=media&amp;token=18d6f986-1830-4c2b-bdee-6e9cbbf08382" alt=""><figcaption><p>Copy your API and/or Secret Key</p></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="info" %}
All API Keys and Secret Keys shown above are for demo purposes only. Never share your **Secret Key** with anyone, even if they claim to be from Revtoo.
{% endhint %}

{% hint style="info" %}
Feel free to share your API Key, as it functions like a public key.
{% endhint %}


# Offerwall Parameters

Below you can see parameters supported by our offerwall. Make sure you properly replace them during your offerwall integration.

Offerwall URL:

```
https://revtoo.com/offerwall/[API_KEY]/[USER_ID]
```

| Parameters      | Description                                                | Value         |
| --------------- | ---------------------------------------------------------- | ------------- |
| **\[API\_KEY]** | Unique API Code provided when you registered your website. | *varchar(32)* |
| **\[USER\_ID]** | Unique identifier code of the user of your site            | *varchar(32)* |


# Website Integration

If you are looking to integrate the offerwall into your website, either open the offerwall in a new tab (for example using the JavaScript command below or show the offerwall in an iframe.

### JavaScript Integration

```javascript
window.open("https://revtoo.com/offerwall/[API_KEY]/[USER_ID]")
```

### Iframe Integration

```javascript
<iframe scrolling="yes" 
frameborder="0" src="https://revtoo.com/offerwall/[API_KEY]/[USER_ID]"></iframe>
```

{% hint style="info" %}
Replace **\[API\_KEY]** with your website API key and **\[USER\_ID]** by the unique identifier code of the user of your site who is viewing the wall.
{% endhint %}


# Android Integration

If you are looking to integrate the offerwall into your Android app, either open the offerwall in Google Chrome or use a web view to show the offerwall inside your app.

### **URL**

```url
https://revtoo.com/offerwall/[API_KEY]/[USER_ID]
```

### **WebView Example**

```java
WebView myWebView = new WebView(activityContext);
setContentView(myWebView);

WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);

myWebView.loadUrl("https://revtoo.com/offerwall/[API_KEY]/[USER_ID]");
```

{% hint style="info" %}
Replace **\[API\_KEY]** with your website API key and **\[USER\_ID]** by the unique identifier code of the user of your site who is viewing the wall.
{% endhint %}


# iOS Integration

If you are looking to integrate the offerwall into your iOS app, either open the offerwall in Safari or use a web view to show the offerwall inside your app.

### **URL**

```url
https://revtoo.com/offerwall/[API_KEY]/[USER_ID]
```

### **WebView Example**

```swift
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {

   var webView: WKWebView!

   override func loadView() {
       let webConfiguration = WKWebViewConfiguration()
       webView = WKWebView(frame: .zero, configuration: webConfiguration)
       webView.uiDelegate = self
       view = webView
   }
   override func viewDidLoad() {
       super.viewDidLoad()
       let myURL = URL(string:"https://revtoo.com/offerwall/[API_KEY]/[USER_ID]")
       let myRequest = URLRequest(url: myURL!)
       webView.load(myRequest)
   }}
```

{% hint style="info" %}
Replace **\[API\_KEY]** with your website API key and **\[USER\_ID]** by the unique identifier code of the user of your site who is viewing the wall.
{% endhint %}


# React Native

If you are looking to integrate the offerwall into your React Native app, either open the offerwall in the default browser of the user with the Linking-API or use react-native-webview to show the offerwall inside your app.

### Linking

```javascript
import { Linking } from 'react-native';
Linking.openURL('https://revtoo.com/offerwall/[API_KEY]/[USER_ID]');
```

### **React Native WebView**

```javascript
/*
  Add react-native-webview to your dependencies. Using Yarn:
	yarn add react-native-webview
  Using npm:
	npm install --save react-native-webview
  Using Expo:
	npx expo install react-native-webview
*/
import { WebView } from 'react-native-webview';
return <WebView source={{ uri: 'https://revtoo.com/offerwall/[API_KEY]/[USER_ID]' }} />;
```

{% hint style="info" %}
Replace **\[API\_KEY]** with your website API key and **\[USER\_ID]** by the unique identifier code of the user of your site who is viewing the wall.
{% endhint %}


# Postback Parameters

Whenever a user complete an offer, we will make a call to the Postback URL that you indicated in your placement attaching all the information that you will need to credit your users.

In case of GET method, you need to wrap parameters into curly brackets `{}` , we will replace your parameters which the appropriate value.

In case of POST method, you just need to pass your endpoint, and we will send all the data via POST request to your server we use `multipart/form-data` format. For example you can access subId by `$_POST['subId']` in PHP.

**GET URL Example:** `https://example.com/callbacks/revtoo.php?subId={subId}&transId={transId}&payout={payout}&reward={reward}&status={status}&userIp={userIp}&offer_name={offer_name}&debug={debug}&signature={signature}`&#x20;

**POST URL Example:** `https://example.com/callbacks/revtoo.php`&#x20;

### Our Supported Parameters

| Parameter         | Description                                                                                                                                                                                                                                                                                                                                                          | Example                                                           |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| **subId**         | This is the unique identifier code of the user who completed action on your platform.                                                                                                                                                                                                                                                                                | user123                                                           |
| **transId**       | Unique identification code of the transaction made by your user.                                                                                                                                                                                                                                                                                                     | REV-12345678                                                      |
| **offer\_id**     | ID of the completed offer.                                                                                                                                                                                                                                                                                                                                           | 123, 321, and 0 (for postback test only)                          |
| **offer\_name**   | Name of the completed offer.                                                                                                                                                                                                                                                                                                                                         | Monopoly GO!                                                      |
| **offer\_type**   | Type of the offer completed by user (offer, survey, video, ptc, etc).                                                                                                                                                                                                                                                                                                | offer                                                             |
| **reward**        | Amount of your virtual currency to be credited to your user.                                                                                                                                                                                                                                                                                                         | 500                                                               |
| **reward\_name**  | The name of your currency set when you registered your website.                                                                                                                                                                                                                                                                                                      | Points                                                            |
| **payout**        | The offer payout in USD                                                                                                                                                                                                                                                                                                                                              | 1.00                                                              |
| **userIp**        | The user's IP address who completed the action.                                                                                                                                                                                                                                                                                                                      | 192.168.1.0                                                       |
| **country**       | Country (ISO2 form) from the lead comes.                                                                                                                                                                                                                                                                                                                             | US                                                                |
| **status**        | Determines whether to add or subtract the amount of the reward. "1" is when the virtual currency should be added to the user and "2" when it should be subtracted. This may be because the advertiser has canceled the user's transaction, either because he/she committed fraud or because it has been a mistake entering the data needed to complete the campaign. | 1 (Credit) / 2 (Chargeback)                                       |
| **debug**         | Check if is a test or a live postback call.                                                                                                                                                                                                                                                                                                                          | 1 (Test) / 0 (Live)                                               |
| **signature**     | MD5 hash that can be used to verify that the call has been made from our servers.                                                                                                                                                                                                                                                                                    | 17b4e2a70d6efe9796dd4c5507a9f9ab                                  |
| **reward\_value** | Amount of your virtual currency credited for $1 worth of payout (Exchange Rate). Its always static.                                                                                                                                                                                                                                                                  | Your Currency Exchange Rate (e.g. 50, 500, 2500, 5000 per dollar) |

{% hint style="info" %}
**"reward"** and **"payout"** parameters are always positive values, you will need to check status and transId parameter to see if you need to add or subtract that amount from your users.
{% endhint %}

{% hint style="info" %}
Keep in mind that **reward\_value** shows the currency exchange rate you set for your placement. For example, if you set the currency exchange to 500, **reward\_value** will always be 500. It doesn’t depend on the payout or any calculation—it’s just the exchange rate you set.\
\ <mark style="color:red;">To reward your users, use the</mark> <mark style="color:red;"></mark><mark style="color:red;">**reward**</mark> <mark style="color:red;"></mark><mark style="color:red;">parameter.</mark>&#x20;
{% endhint %}


# Postback Security

You should verify the signature received in the postback to ensure that the call comes from our servers.

\
Signature parameter should match MD5 of `subId` `transactionId` `reward` `secret key`. You can find your `secret` of your placement settings. Here is a detailed page for getting your [API and Secret Key](/integrate-offerwall/required-information).

## Postback Examples (GET):

{% tabs %}
{% tab title="PHP" %}

```php
<?php
   $secret = "SECRET_KEY"; // Get your secret from placement settings

   $subId = isset($_GET['subId']) ? $_GET['subId'] : null;
   $transId = isset($_GET['transId']) ? $_GET['transId'] : null;
   $reward = isset($_GET['reward']) ? $_GET['reward'] : null;
   $signature = isset($_GET['signature']) ? $_GET['signature'] : null;

   // Validate Signature
   if(md5($subId . $transId . $reward . $secret) != $signature)
   {
       echo "ERROR: Signature doesn't match";
       return;
   }

   // Further processing can be done here
   echo "Signature is valid. Process the postback.";
?>
```

{% endtab %}

{% tab title="Python" %}

```python
from flask import Flask, request, jsonify
import hashlib

app = Flask(__name__)
secret = "SECRET_KEY"  # Get your secret from placement settings

@app.route('/postback', methods=['GET'])
def postback():
    subId = request.args.get('subId')
    transId = request.args.get('transId')
    reward = request.args.get('reward')
    signature = request.args.get('signature')

    # Validate Signature
    if hashlib.md5((subId + transId + reward + secret).encode()).hexdigest() != signature:
        return "ERROR: Signature doesn't match", 400

    # Further processing can be done here
    return "Signature is valid. Process the postback."

if __name__ == '__main__':
    app.run()
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
const express = require('express');
const crypto = require('crypto');
const app = express();
const port = 3000;
const secret = "SECRET_KEY"; // Get your secret from placement settings

app.get('/postback', (req, res) => {
    const { subId, transId, reward, signature } = req.query;

    // Validate Signature
    const hash = crypto.createHash('md5').update(subId + transId + reward + secret).digest('hex');
    if (hash !== signature) {
        res.status(400).send("ERROR: Signature doesn't match");
        return;
    }

    // Further processing can be done here
    res.send("Signature is valid. Process the postback.");
});

app.listen(port, () => {
    console.log(`Server is running on http://localhost:${port}`);
});
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'sinatra'
require 'digest'

secret = "SECRET_KEY" # Get your secret from placement settings

get '/postback' do
  subId = params['subId']
  transId = params['transId']
  reward = params['reward']
  signature = params['signature']

  # Validate Signature
  if Digest::MD5.hexdigest(subId + transId + reward + secret) != signature
    halt 400, "ERROR: Signature doesn't match"
  end

  # Further processing can be done here
  "Signature is valid. Process the postback."
end
```

{% endtab %}

{% tab title="Java" %}

```java
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

@RestController
public class PostbackController {

    private final String secret = "SECRET_KEY"; // Get your secret from placement settings

    @GetMapping("/postback")
    public String postback(@RequestParam String subId, @RequestParam String transId,
                           @RequestParam String reward, @RequestParam String signature) {
        try {
            MessageDigest md = MessageDigest.getInstance("MD5");
            String data = subId + transId + reward + secret;
            md.update(data.getBytes());
            byte[] digest = md.digest();
            StringBuilder sb = new StringBuilder();
            for (byte b : digest) {
                sb.append(String.format("%02x", b));
            }
            if (!sb.toString().equals(signature)) {
                return "ERROR: Signature doesn't match";
            }
        } catch (NoSuchAlgorithmException e) {
            return "ERROR: Unable to process signature";
        }

        // Further processing can be done here
        return "Signature is valid. Process the postback.";
    }
}
```

{% endtab %}

{% tab title="C#" %}

```csharp
using Microsoft.AspNetCore.Mvc;
using System.Security.Cryptography;
using System.Text;

[ApiController]
[Route("postback")]
public class PostbackController : ControllerBase
{
    private readonly string secret = "SECRET_KEY"; // Get your secret from placement settings

    [HttpGet]
    public IActionResult Postback(string subId, string transId, string reward, string signature)
    {
        using (var md5 = MD5.Create())
        {
            var input = Encoding.UTF8.GetBytes(subId + transId + reward + secret);
            var hashBytes = md5.ComputeHash(input);
            var hash = BitConverter.ToString(hashBytes).Replace("-", "").ToLower();

            if (hash != signature)
            {
                return BadRequest("ERROR: Signature doesn't match");
            }
        }

        // Further processing can be done here
        return Ok("Signature is valid. Process the postback.");
    }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
We have not included IP address validation in the examples above for certain reasons. We advise verifying the [whitelisted IP addresses](#ips-to-whitelist); however, it is entirely up to you to use this feature as it is optional and not mandatory.
{% endhint %}

{% hint style="info" %}
Don’t forget to check the transId against your database to ensure it doesn’t already exist.
{% endhint %}

Our servers wait for a response for a maximum time of 30 seconds before the timeout. In this case, postback will be marked as failed. Please, check if the transaction ID sent to you was already entered in your database, this will prevent to give twice the same amount of virtual currency to the user.

## **IPs to whitelist**

We will be sending the postbacks from any of the following IP address(es). Please make sure they are whitelisted if needed to be in your server.

{% hint style="info" %}
**195.35.39.220**\
**2a02:4780:b:1270:0:2b97:5732:1**\
**2a02:4780:b:1270:0:2b97:5732:2**\
**2a02:4780:b:1234::19**
{% endhint %}

## **Respond to Postback**

Our servers will expect your website to respond with "ok". If your postback doesn't return "ok" as response, postback will be marked as failed (even if postback was successfully called) and you will be able to resend it manually from Revtoo.


# Offers API

This Offers API endpoint provides a flexible interface for retrieving offers with various filtering and pagination options.

*<mark style="color:red;">**Make sure your API is active before reading this documentation.**</mark>*

## API

Method: **GET or POST**

Base URL: `https://revtoo.com/api/offers/`

| Parameter | Description                                  | Type   |
| --------- | -------------------------------------------- | ------ |
| api\_key  | Your API Key, get it from your app placement | String |

Optional Parameters

| Parameter | Description                                    | Type    | Default       |
| --------- | ---------------------------------------------- | ------- | ------------- |
| countries | Comma-separated list of 2-letter country codes | String  | All countries |
| user\_id  | Your user unique identifier                    | String  | \[USER\_ID]   |
| limit     | Number of offers per page                      | Integer | Unlimited     |
| page      | Pagination page number                         | Integer | 1             |

{% hint style="info" %}
If you use "page" then you must have to use "limit", otherwise you'll face a status 103 error.
{% endhint %}

**Example Request:** `GET https://revtoo.com/api/offers/?api_key=YOUR_API_KEY&user_id=USER_ID&countries=US,CA,DE&limit=100&page=1`&#x20;

<mark style="color:green;">**OR**</mark>

**Example Request (Use form-data request body)**: `POST https://revtoo.com/api/offers/`

## Responses

### A successful response

```json
{
  "success": true,
  "status": 200,
  "reward_value": 60,
  "reward_name": "Points",
  "reward_round": 2,
  "total_offers": 10,
  "shown_offers": 2,
  "offers": [
    {
      "id": 1,
      "hasEvents": false,
      "featured": false,
      "title": "Pokemon GO",
      "description": "Start a 14 Day Free Trial (New Users Only)",
      "payout": 1.96,
      "reward": 117.6,
      "url": "https://revtoo.com/redirect?api_key=YOUR_API_KEY&offer_id=1&user_id=USER_ID",
      "image": "https://play-lh.googleusercontent.com/eftfcMyaaRruAiGPgVZ4rkBsKU_s6qNswWuIOpF7PCNcsd2pY1vhkYnYEKdszfLfTu4=s96-rw",
      "category": "offer",
      "countries": [
        "BE",
        "FR",
        "NL"
      ],
      "os": [
        "web",
        "android",
        "ios"
      ],
      "timestamp": 1737321735,
      "events": []
    },
    {
      "id": 2,
      "hasEvents": true,
      "featured": false,
      "title": "Puzzles & Survival",
      "description": "Purchase Scarlett Pack 2 (Min. $9.99, New Users Only)",
      "payout": 21,
      "reward": 1260,
      "url": "https://revtoo.com/redirect?api_key=YOUR_API_KEY&offer_id=2&user_id=USER_ID",
      "image": "https://play-lh.googleusercontent.com/NeANdRQlPAh2vgZW1oU0_6teTt8tsJwiJoYXE5SRjRoqdbJP_3wJxIIRcViSti-1qGV0=w480-h960-rw",
      "category": "offer",
      "countries": [
        "AU"
      ],
      "os": [
        "android"
      ],
      "timestamp": 1737321735,
      "events": [
        {
          "event_id": "65105-1",
          "event_title": "install_game",
          "event_description": "Install the game and play for 1 minute",
          "event_payout": 1,
          "event_reward": 60
        },
        {
          "event_id": "65105-10",
          "event_title": "buy_scarlett2_pack",
          "event_description": "Purchase Scarlett Pack 2 ($9.99)",
          "event_payout": 21,
          "event_reward": 1260
        }
      ]
    }
  ],
  "pagination": {
    "limit": 2,
    "page": 1
  }
}
```

{% hint style="info" %}
The “**payout, reward**” can have two possible values:

1\. An asterisk (\*) to indicate that the payout and reward values are **variable**.

2\. A number (e.g., 12.32, 432.12, 233) to represent a fixed payout, reward amount.

[See example below.](#an-example-with-asterisk-payout-response)
{% endhint %}

### An example with asterisk payout response

```json
{
  "success": true,
  "status": 200,
  "reward_value": 60,
  "reward_name": "Points",
  "reward_round": 2,
  "total_offers": 10,
  "shown_offers": 1,
  "offers": [
    {
      "id": 1970,
      "hasEvents": false,
      "featured": true,
      "title": "Pollfish Surveys",
      "description": "Complete a survey and earn reward, can be completed multiple times a day.",
      "payout": "*", // Explains it have variable payout
      "reward": "*", // Explains it have variable reward
      "url": "https://revtoo.com/redirect?api_key=YOUR_API_KEY&offer_id=pollfish&user_id=[USER_ID]",
      "image": "https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/b4ee8bec-dcea-4f03-8bb8-9b3398e9dccd.jpeg?auto=format%2Ccompress&fit=max&w=256&q=75&ch=Width%2CDPR",
      "category": "survey",
      "countries": [
        "US",
        "UK",
        "DE"
      ],
      "os": [
        "android", "ios", "web"
      ],
      "timestamp": 1737440432,
      "events": []
    }
  ],
  "pagination": {
    "limit": 1,
    "page": 1
  }
}
```

### Response Root Structure

```json
{
  "success": true,
  "status": 200,
  "reward_value": 60,
  "reward_name": "Points",
  "reward_round": 2,
  "total_offers": 100,
  "shown_offers": 10,
  "offers": [ ... ], // The core offers data is contained here, let's learn this.
  "pagination": {
    "limit": 10,
    "page": 1
  }
}
```

### Offer Object

| Key         | Type              | Description                 | Example                                                                                                                                                                                  |
| ----------- | ----------------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id          | Integer           | Unique offer identifier     | 123                                                                                                                                                                                      |
| hasEvents   | Boolean           | Whether offer has events    | true/false                                                                                                                                                                               |
| featured    | Boolean           | If offer is featured        | true/false                                                                                                                                                                               |
| title       | String            | Offer title                 | Pokemon GO - A World of Pokemons                                                                                                                                                         |
| description | String            | Offer description           | Join Trainers around the world and play *Pokémon GO* together in new and exciting ways.                                                                                                  |
| payout      | Float/String (\*) | Offer payout amount         | 12.05                                                                                                                                                                                    |
| reward      | Float/String (\*) | Calculated reward amount    | 6025                                                                                                                                                                                     |
| url         | String            | Tracking redirect URL       | [https://revtoo.com/api/offers/?api\_key=YOUR\_API\_KEY\&offer\_id=OFFER\_ID\&user\_id=USER\_ID](https://revtoo.com/api/offers?api_key=YOUR_API_KEY\&offer_id=OFFER_ID\&user_id=USER_ID) |
| image       | String            | Offer image URL             | <https://revtoo.com/path/to/image>                                                                                                                                                       |
| category    | String            | Offer category              | offer/survey                                                                                                                                                                             |
| countries   | Array             | Supported countries         | \["US", "CA", "DE"]                                                                                                                                                                      |
| os          | Array             | Supported operating systems | \["andorid", "ios", "web"]                                                                                                                                                               |
| timestamp   | Integer           | Offer creation timestamp    | 1737778104                                                                                                                                                                               |
| events      | Array             | Offer-specific events       | Please refer to [#a-successful-response](#a-successful-response "mention")                                                                                                               |

### Error Responses (status with message field)

| Status | Code                | Message                       |
| ------ | ------------------- | ----------------------------- |
| 100    | Missing API Key     | No API key provided           |
| 101    | Invalid API Key     | API key not found in database |
| 102    | Rate Limit Exceeded | Too many requests             |
| 103    | Pagination Error    | Page specified without limit  |
| 105    | Country Code Error  | No valid country codes        |

## Example Requests (GET)

### Get All Active Offers

```
GET https://revtoo.com/api/offers/?api_key=YOUR_API_KEY
```

### Filter by Countries

```
GET https://revtoo.com/api/offers/?api_key=YOUR_API_KEY&countries=US,CA,UK
```

### Paginated Offers

```
GET https://revtoo.com/api/offers/?api_key=YOUR_API_KEY&limit=10&page=2
```

## Example Requests (POST)

### Get All Active Offers

```
POST https://revtoo.com/api/offers/

// FORM-DATA (REQUEST BODY)
{
"api_key" = "YOUR_API_KEY"
}
```

### Filter by Countries

```
POST https://revtoo.com/api/offers/

// FORM-DATA (REQUEST BODY)
{
"api_key" = "YOUR_API_KEY",
"countries" = "US,CA,UK"
}
```

### Paginated Offers

```
POST https://revtoo.com/api/offers/

// FORM-DATA (REQUEST BODY)
{
"api_key" = "YOUR_API_KEY",
"countries" = "US,CA,UK",
"limit" = 10,
"page" = 2
}
```

{% hint style="info" %}
We only tried to visualize the REQUEST BODY in [Example Requests (POST)](#example-requests-post), be aware that actual code may vary.
{% endhint %}


# Offer Gallery

Want to promote a specific offer? It wasn’t possible before, but now it is! And we’re here to show you how. It’s all about the tracking link—once you have it, you can promote the offer anywhere and start earning revenue.

Let us guide you on how to get your first offer tracking link with Revtoo and begin generating income today!

Before that you must have an account with us and an app/website placement, [here a guide for you.](/getting-started/add-your-placement)

## Steps to get an offer tracking link

{% tabs %}
{% tab title="Step 1" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FNLR6Ah4DvKp9oirkxCX8%2FScreenshot%202025-02-22%20at%2010.11.00%E2%80%AFPM.png?alt=media&amp;token=e4f9745e-1fc0-4689-85f6-59429b091770" alt="Login Page"><figcaption><p>First, <a href="https://revtoo.com/?page=login">login</a> to your Revtoo account. If you don’t have an account yet, <a href="https://revtoo.com/?page=register">signup</a> to get started!</p></figcaption></figure>
{% endtab %}

{% tab title="Step 2" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2F808sw1oGhvxHK9xsQ28S%2FScreenshot%202025-02-22%20at%2010.15.18%E2%80%AFPM.png?alt=media&amp;token=e03dc8fe-b3ac-42fb-b382-bb741c48ac67" alt=""><figcaption><p>Click on Offers Gallery</p></figcaption></figure>
{% endtab %}

{% tab title="Step 3" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2Fpci4wGW8WbjsXf8uKwyO%2FScreenshot%202025-02-22%20at%2010.16.35%E2%80%AFPM.png?alt=media&amp;token=6fc5ee05-bb89-4307-b103-c6026503bb56" alt=""><figcaption><p>Choose an offer you wish to promote</p></figcaption></figure>
{% endtab %}

{% tab title="Step 4" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2FBeHXmYsVhHam2zq0AnCS%2Fscreencapture-revtoo-publisher-php-2025-02-22-22_18_04.png?alt=media&amp;token=dba54a65-54b9-4d33-afe2-26b5abe3df83" alt=""><figcaption><p>Review all offer's information and then click Tracking Link</p></figcaption></figure>
{% endtab %}

{% tab title="Step 5" %}

<figure><img src="https://3523037608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AdrIVkzGmmCUkWRwxLg%2Fuploads%2Fj5Yy9RcmzKWdYUAGJN45%2FScreenshot%202025-02-22%20at%2010.21.41%E2%80%AFPM.png?alt=media&amp;token=a12d6053-78b4-4814-a83b-2426765443aa" alt=""><figcaption><p>Select the placement, define the user ID, then click Generate Link and copy it. Once done, you can share it, integrate it wherever needed, and begin generating revenue.<br><br><strong>You must use user ID with your unique user identifier, or specify your source name here in user ID, such as telegram_channel, email_marketing, WhatsApp, etc.</strong></p></figcaption></figure>
{% endtab %}
{% endtabs %}


# Brand Creatives

Please access the download link below to get the compressed zip file containing the Revtoo Icons and Logos in SVG and PNG formats.

{% file src="/files/ANqYrretkxDtmb5Rsfey" %}
Revtoo Brand Creatives
{% endfile %}

{% hint style="info" %}
If you have any suggestions for improving our creatives, [we’d love to hear them!](/additional/support)
{% endhint %}


# Support

If you got any problems, contact us now.

### Contact details

{% hint style="info" %}
Telegram: [@Revtoo](https://t.me/revtoox)

Email: <support@revtoo.com>
{% endhint %}


