Skip to main content
GET
/
usage
/
access
Python SDK
from metrifox_sdk import MetrifoxClient

client = MetrifoxClient(api_key="your_api_key")

# Check feature access
access = client.usages.check_access({
    "feature_key": "feature_interview_booking",
    "customer_key": "cust-6d11ca90"
})

print(access['data']['can_access'])  # True/False
{
  "data": {
    "customer_key": "cust-mit7k5v8obzs",
    "feature_key": "feature_seats",
    "requested_quantity": 1,
    "can_access": true,
    "unlimited": false,
    "balance": 4,
    "used_quantity": 0,
    "entitlement_active": true,
    "prepaid": false,
    "wallet_balance": 0,
    "message": "Feature found"
  }
}
Usage endpoints are served from https://api-meter.metrifox.com. Other API calls stay on https://api.metrifox.com.
You can provide either feature_key or event_name when checking access. Successful responses now include a data object with access details (balance, requested_quantity, entitlement status, prepaid flag, wallet_balance, etc.).

Authorizations

x-api-key
string
header
required

Query Parameters

feature_key
string
required

Feature key to check access for. Either feature_key or event_name is required.

customer_key
string
required

The unique customer identifier in your application to check access for

quantity
number
default:1

Quantity to check access for. Defaults to 1 if not provided.

Response

Access check completed

data
object