Access

Check access

Returns whether a buyer (user_… or cus_… id) has access to a resource (the account acct_…, a prod_…, or an exp_…) and at what level (no_access, customer, admin). Powers entitlement gating on deployed sites.

get/users/{id}/access/{resource_id}

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/users/{id}/access/{resource_id}
  • Auth: API key in header Authorization

Path parameters

idstring required

The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")

resource_idstring required

The resource to check access to: the account id (acct_…), a product (prod_…) or an experience (exp_…).

Response

Access check result

objectstring required
has_accessboolean required
access_levelstring required
expires_atstring nullable required

Changes

No recorded changes to this operation across all 2 revisions of this API.