⚓️ Portcall

Querying metered feature usage

Retrieve usage/quota for one feature entitlement.

Use the single entitlement endpoint when you need feature-specific runtime checks:

curl -sS "$PORTCALL_API_BASE/v1/entitlements/user_123/credits" \
  -H "x-api-key: $PORTCALL_API_KEY"

Example response:

{
  "data": {
    "id": "credits",
    "usage": 420,
    "quota": 1000,
    "enabled": true,
    "interval": "month",
    "next_reset_at": "2026-03-01T00:00:00Z"
  }
}

Use this endpoint in feature gates before executing expensive operations.