API Reference

Apptuner provides a simple REST API to fetch configuration data for your applications.

Base URL

https://apptuner.dev/api/v1

Endpoints

Get Configuration

Fetches the configuration for a specific platform and project.

Endpoint: GET /config

Query Parameters:

ParameterTypeRequiredDescription
platformstringYesThe platform (e.g., ios, android).
current_versionstringYesThe current version of your app (e.g., 1.1.0).

Headers:

HeaderValueDescription
x-api-keyYOUR_API_KEYYour project's API key.

Example Request:

curl -X GET "https://apptuner.dev/api/v1/config?platform=ios&current_version=1.1.0" \
     -H "x-api-key: YOUR_API_KEY"

Example Response:

{
    "force_upgrade": true,
    "maintenance_active": false,
    "message": "Update available",
    "android_source": "https://play.google.com/store/apps/details?id=com.your_app",
    "apple_source": "https://apps.apple.com/us/app/your-app/id123456789"
}