Querying user entitlements
How to query user entitlements using Portcall API
To query user entitlements via the Portcall API, you can use the following endpoint:
curl -X GET https://api.portcall.com/v1/users/{{user_id}}/entitlements \
-H "X-API-Key YOUR_SECRET_API_KEY" \
-H "Content-Type: application/json"Replace {{user_id}} with the actual ID of the user whose entitlements you want to query. The API will return a list of all entitlements associated with the specified user.
To check a specific entitlement, you can filter the results like this:
curl -X GET https://api.portcall.com/v1/users/{{user_id}}/entitlements?entitlement_id={{entitlement_id}} \
-H "X-API-Key YOUR_SECRET_API_KEY" \
-H "Content-Type: application/json"