The Entitlements Service is a Workers service, owned by Billing, for querying for account or zone entitlements. It uses Hyperdrive under the hood.
Example Usage:
// In a Worker
const response = await env.ENTITLEMENTS_SERVICE.getEntitlements(
{
objectType: "account",
objectId: ""
}
);
if (response.success) {
console.log("Response:", response.data);
}