Skip to main content
API Reference

Credits

Check your account balance, tier, per-minute rate, and concurrent call limit. Use this endpoint in monitoring jobs to alert on low balance before calls start failing.

GET/v1/credits
curl https://api.staffifyai.com/v1/credits \
  -H "Authorization: Bearer sfy_live_YOUR_KEY"

Response

{
  "balance":          42.50,
  "tier":             "payg",
  "rate_per_minute":  0.25,
  "is_paused":        false,
  "concurrent_limit": 10,
  "credits_expire_at": null,
  "updated_at":       "2026-06-01T09:14:22.000Z"
}
FieldTypeDescription
balancenumberCurrent credit balance in EUR
tierstringpayg | starter | growth | enterprise
rate_per_minutenumberYour current per-minute voice call rate (EUR)
is_pausedbooleantrue when a PAYG, Starter, or Growth account is paused due to zero credits. Enterprise accounts are never paused regardless of balance.
concurrent_limitnumberMax simultaneous active calls for your tier
credits_expire_atstring | nullISO timestamp when prepaid credits expire, or null if no expiry
updated_atstringISO timestamp of the last balance change

Low-balance monitoring

async function checkCredits(threshold = 10) {
  const { balance, is_paused, tier } = await fetch(
    'https://api.staffifyai.com/v1/credits',
    { headers: { Authorization: `Bearer ${process.env.STAFFIFY_API_KEY}` } }
  ).then(r => r.json());

  if (is_paused) {
    await sendAlert('CRITICAL: Staffify account paused -- top up credits immediately');
    return { balance, is_paused };
  }

  if (balance < threshold) {
    await sendAlert(`Low credits warning: EUR ${balance.toFixed(2)} remaining (tier: ${tier})`);
  }

  return { balance, is_paused };
}

// Run every hour in your monitoring cron:
checkCredits(20); // alert below EUR 20

Limits by tier

TierVoice rateConcurrent callsAPI req / minMonthly commitment
PAYG€0.15/min10300None
Starter€0.14/min50600€1,400/mo
Growth€0.12/min1001,200€3,000/mo
EnterpriseCustomUnlimitedUnlimitedCustom

Enterprise accounts are invoiced monthly and are not paused on zero balance. Top up credits at console.staffifyai.com/billing.

Credits - Staffify API