For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dynamic API

The Dynamic API in the Perkox dashboard is designed to be called by the client (e.g., a user’s device) to retrieve offers tailored to a specific user. This API provides flexibility in visualizing offers based on the user’s progress and preferences. Below is a breakdown of the components and functionality:


1. Dynamic API Overview

This section provides an overview of the Dynamic API and its purpose.

Key Points:

  • Purpose: The Dynamic API returns a list of offers tailored to a specific user based on their progress and preferences.

  • Usage: It is called by the client (e.g., a user’s device) to retrieve personalized offers.


2. API Endpoint

The endpoint for the Dynamic API is provided, along with instructions on how to use it.

Endpoint:

Copy

https://pub.perkox.com/api/v2/dynamic?key=<API_KEY>

Parameters:

  • key: Your API key for authentication.

  • ip: The IP address of the user (e.g., 127.0.0.1).

  • ua: The user agent string of the user’s device (e.g., Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36).

  • per_page: Number of offers to return per page (e.g., per_page=100).

  • page: Page number to retrieve (e.g., page=1).

Example API Call:

Copy


1. Response Structure

The API response is structured as follows:

jsonCopy

3. API Key

This section allows you to generate and manage your API key.

Steps to Generate API Key:

  1. Navigate to the API section.

  2. Click on Generate API Key.

  3. Use the generated key in your API calls for authentication.


4. API Documentation

This section provides access to detailed documentation for the Dynamic API.

Steps to Access Documentation:

  1. Navigate to the API section.

  2. Click on API Documentation to view detailed instructions and examples.


Why the Dynamic API Matters

  • Personalization: Retrieve offers tailored to a specific user based on their progress and preferences.

  • Flexibility: Visualize offers in a way that best suits your application or platform.

  • Integration: Seamlessly integrate personalized offers into your existing system.


Additional Notes

  • Authentication: Ensure you use the correct API key for authentication.

  • Pagination: Use the per_page and page parameters to manage large datasets and retrieve specific pages of offers.

  • Testing: Test the API calls to ensure they return the expected data.

Last updated