curl "https://app.runtm.com/api/cloud/user/current-plan" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/user/current-plan",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
print(f"Plan: {data['plan_name']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/user/current-plan",
{
headers: {
"Authorization": "Bearer runtm_xxx",
},
}
);
const data = await response.json();
console.log(`Plan: ${data.plan_name}`);
{
"plan_name": "pro",
"status": "active",
"features": {
"max_apps": 10,
"max_sessions": 20,
"allowed_tiers": ["starter", "standard", "performance"],
"collaboration": true,
"custom_domains": true
}
}
{
"plan_name": "free",
"status": "active",
"features": {
"max_apps": 2,
"max_sessions": 5,
"allowed_tiers": ["starter"],
"collaboration": false,
"custom_domains": false
}
}
Provider Keys
Current Plan
Get the current billing plan for the authenticated user
GET
/
api
/
user
/
current-plan
curl "https://app.runtm.com/api/cloud/user/current-plan" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/user/current-plan",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
print(f"Plan: {data['plan_name']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/user/current-plan",
{
headers: {
"Authorization": "Bearer runtm_xxx",
},
}
);
const data = await response.json();
console.log(`Plan: ${data.plan_name}`);
{
"plan_name": "pro",
"status": "active",
"features": {
"max_apps": 10,
"max_sessions": 20,
"allowed_tiers": ["starter", "standard", "performance"],
"collaboration": true,
"custom_domains": true
}
}
{
"plan_name": "free",
"status": "active",
"features": {
"max_apps": 2,
"max_sessions": 5,
"allowed_tiers": ["starter"],
"collaboration": false,
"custom_domains": false
}
}
Returns the authenticated user’s current billing plan. Useful for checking plan-level feature availability, deployment limits, and tier access before making other API calls.
Headers
string
required
Bearer token.
Authorization: Bearer runtm_xxxResponse
string
Name of the current plan (e.g.
free, pro, team, enterprise)string
Plan status (e.g.
active, trialing, past_due)object
Plan feature flags and limits
curl "https://app.runtm.com/api/cloud/user/current-plan" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/user/current-plan",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
print(f"Plan: {data['plan_name']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/user/current-plan",
{
headers: {
"Authorization": "Bearer runtm_xxx",
},
}
);
const data = await response.json();
console.log(`Plan: ${data.plan_name}`);
{
"plan_name": "pro",
"status": "active",
"features": {
"max_apps": 10,
"max_sessions": 20,
"allowed_tiers": ["starter", "standard", "performance"],
"collaboration": true,
"custom_domains": true
}
}
{
"plan_name": "free",
"status": "active",
"features": {
"max_apps": 2,
"max_sessions": 5,
"allowed_tiers": ["starter"],
"collaboration": false,
"custom_domains": false
}
}
Scopes
| Method | Required scope |
|---|---|
| GET | activity:read |