Verify a user entitlement for an extension (server-side)
GET
/v1/licensing/entitlements
const url = 'https://api.extport.dev/api/v1/licensing/entitlements?extensionId=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.extport.dev/api/v1/licensing/entitlements?extensionId=example' \ --header 'Authorization: Bearer <token>'Used by extension backends (with a tenant API key) to check whether a user has an active entitlement by externalUserId (from Stripe client_reference_id), email, or license key. When multiple licenses match, returns the best active entitlement (or most recent inactive license).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”extensionId
required
string
externalUserId
string
email
string
key
string
Responses
Section titled “Responses”Entitlement status (active: false, tier: “free” if none active)
Missing extensionId or lookup identifier
Extension not found