billing
Check feature access (public)
Check whether a customer has access to a feature (by plan or entitlement). Public; no auth required.
GET
/api/billing/public/projects/{projectId}/feature-accessAuthentication
Public — No Auth Required
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project ID (MongoDB ObjectId) for the billing project. |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Customer email |
feature | string | Yes | Feature slug to check access for |
SDK setup
Create a client instance. No authentication is required for this endpoint.
import { MudbaseClient } from "mudbase";
const client = new MudbaseClient();import { MudbaseClient } from "mudbase";
const client = new MudbaseClient();Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const result = await client.billing.checkFeatureAccess({
projectId: "proj_g2RNDDNJkZQs"
});const result = await client.billing.checkFeatureAccess({
projectId: "proj_g2RNDDNJkZQs"
});Try It Live
Test this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Responses
200Feature access status
json
{
"hasAccess": true,
"reason": "Active subscription"
}{
"hasAccess": true,
"reason": "Active subscription"
}401Authentication required or invalid token.
403Access denied or insufficient permissions.
Errors
| Code | Meaning |
|---|---|
401 | Authentication required or invalid token. |
403 | Access denied or insufficient permissions. |