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

Authentication

Public — No Auth Required

Path Parameters

NameTypeRequiredDescription
projectIdstringYesProject ID (MongoDB ObjectId) for the billing project.

Query Parameters

NameTypeRequiredDescription
emailstringYesCustomer email
featurestringYesFeature 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

CodeMeaning
401Authentication required or invalid token.
403Access denied or insufficient permissions.
Edit this page on GitHub