Read the effective API allowance
Shared across every API key and member. Null limits mean Unlimited, subject to independent fair-use protections. No remote billing request.
GET
/billing/limitsAuthorization
AuthorizationBearer token · headerrequired`MEDIAN_KEY` from Settings under API, or an MCP OAuth access token. A key acts as the organization; a token acts as the person who approved it.
Responses
200Local organization records.
tierstringrequiredAllowed:
explorestandardhigherhighestunlimitedversionstringrequiredlimitsany | objectrequiredShow propertiesHide properties
One of:
any
anyobject
readobjectShow propertiesHide properties
perMinuteintegerburstintegerwriteobjectShow propertiesHide properties
perMinuteintegerburstintegeruploadobjectShow propertiesHide properties
perMinuteintegerburstinteger401Invalid or missing credentials.
403The authenticated role cannot read these records.
429Shared organization API allowance or temporary fair-use protection reached. Retry-After states the delay.
Request
curl -X GET "https://api.median.sh/v1/billing/limits" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.median.sh/v1/billing/limits", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"tier": "explore",
"version": "string",
"limits": "string"
}Invalid or missing credentials.
The authenticated role cannot read these records.
Shared organization API allowance or temporary fair-use protection reached. Retry-After states the delay.