---
title: "Check access"
method: GET
path: "/users/{id}/access/{resource_id}"
tags: ["Access"]
---

# Check access

`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`

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.

## Path parameters

- `id` string, required
- `resource_id` string, required

## Response `200`

Access check result

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

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
