Billing
Check feature access (public)
GET
/api/billing/public/projects/{projectId}/feature-accessSDK setup
Create a client instance. No authentication is required for this endpoint.
import { Configuration, BillingApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const billing = new BillingApi(configuration);import { Configuration, BillingApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const billing = new BillingApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await billing.checkFeatureAccess("proj_JRen7pq2YYg2");const { data: result } = await billing.checkFeatureAccess("proj_JRen7pq2YYg2");Playground
liveTest 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
Authentication
Public — No Auth Required
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Customer email |
feature | string | Yes | Feature slug to check access for |
Responses
200Feature access status
json
{
"hasAccess": true,
"reason": "Active subscription"
}{
"hasAccess": true,
"reason": "Active subscription"
}