Access

Returns whether a buyer (user_… or con_… 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
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

resource_id, string required

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

Response

Access check result

AccessCheck required
object, string required
has_access, boolean required
access_level, string required
expires_at, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision