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:
| Parameter | Type | Required | Description |
|---|---|---|---|
platform | string | Yes | The platform (e.g., ios, android). |
current_version | string | Yes | The current version of your app (e.g., 1.1.0). |
Headers:
| Header | Value | Description |
|---|---|---|
x-api-key | YOUR_API_KEY | Your project's API key. |
Example Request:
curl -X GET "https://apptuner.dev/api/v1/config?platform=ios¤t_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"
}