Skip to main content

Optimize your Progressier API requests

Kevin Basset avatar
Written by Kevin Basset
Updated today

Each Progressier plan includes a quota for API requests. While we don’t automatically enforce hard limits, if your usage substantially exceeds your quota, we may require you to upgrade your plan to continue using the service.

These limits aren’t about squeezing more revenue—they exist to make sure the server costs generated by your app on our end don’t exceed what you’re paying us for your plan.

To help you stay within your limits without compromising functionality, here are a few tips to reduce unnecessary API requests:

A. Batch requests

Avoid sending multiple requests for similar notifications. Instead, combine them into a single request when possible.

🚨 Inefficient Approach:

// Request 1
{"email": "user1@example.com"}

// Request 2
{"email": "user2@example.com"}

✅ Optimized Approach

// Single request
{"email": "user1@example.com, user2@example.com"}

B. Prequalify users

Only send notification requests to users who have explicitly granted permission. This avoids wasting API calls on users who will not receive notifications anyway.

Step 1: Detect and store notification permissions

When a logged-in user accesses your app, check if they've granted notification permission and update their profile accordingly.

if (window?.Notification?.permission === "granted"){
updateUserProfile({ notificationOptIn: true })
}

Step 2: Check permission status before sending

Before triggering a notification, confirm that the user has opted in:

if (user.notificationOptIn){   
sendNotificationViaProgressierAPI();
}
else {
// Skip sending the notification
}
Did this answer your question?