Campaigns

Get the next date with available SMS quota

GET
/api/campaigns/next-available-slot

Searches up to 60 days ahead for the next date that has enough remaining SMS quota to accommodate the requested contactCount. Always returns today's usage so the UI can render the quota banner even when contactCount is omitted.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

contactCount?integer

Number of contacts the upcoming campaign would target. Omit for general quota info.

Range0 <= value
Default0

Response Body

application/json

application/json

curl -X GET "https://example.com/api/campaigns/next-available-slot"
{  "success": true,  "isUnlimited": false,  "timezone": "America/Toronto",  "dailyLimit": 500,  "todayDate": "2026-05-18",  "todayUsage": 480,  "todayAvailableQuota": 20,  "nextAvailableDate": "2026-05-19",  "availableQuota": 500,  "daysUntilAvailable": 1,  "message": "Next slot with full daily quota is tomorrow."}