Integrate Using API
If you prefer more control over the integration process, you can use the App Upgrade API directly.
API Endpoint
URL: https://apptuner.vercel.app/api/v1/maintenance
Method: GET
Headers:
x-api-key
: Your unique API key
Query Parameters:
instanceId
: The ID of your instance
Example Request
Request
GET https://apptuner.vercel.app/api/v1/maintenance?instanceId=your_instance_id
Headers:
x-api-key: your_api_key
Response
{
"is_maintenance": true,
"instance_name": "App Dev",
"remainder_start": "2024-07-08T09:15:00.000+00:00",
"start_time": "2024-07-10T00:00:00.000+00:00",
"end_time": "2024-07-10T09:15:00.000+00:00",
}