Amba

Entitlements

Read the current user's active entitlements.

Entitlements are populated by the RevenueCat webhook (/webhooks/revenuecat) — this read endpoint is the only client-side way to inspect them.

Source: apps/api/src/routes/client/entitlements.ts.

Endpoints

MethodPathDescription
GET/client/entitlementsAll entitlements for the current user.

GET /client/entitlements

Response 200

{
  "data": [
    {
      "entitlement_id": "pro",
      "is_active": true,
      "product_id": "com.example.pro_annual",
      "store": "app_store",
      "purchase_date": "…",
      "expiration_date": "…",
      "period_type": "normal"
    }
  ]
}

Errors

  • 500 FETCH_FAILED.

Try it:

GET/client/entitlements
client auth
curl -X GET 'https://api.amba.dev/client/entitlements'
Loading auth… Configure auth in the settings drawer (top-right) to run this request.

Curl:

curl -X GET '${BASE_URL}/client/entitlements' \
  -H 'X-Api-Key: ${CLIENT_API_KEY}' \
  -H 'Authorization: Bearer ${SESSION_TOKEN}'

On this page