Get current plan
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prudra.dev/billing/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/billing/plan"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.prudra.dev/billing/plan \
--header 'Authorization: Bearer <token>'{}Billing
Get current plan
Plan name, feature flags, and limit values (lighter than /billing/usage for some clients).
GET
/
billing
/
plan
Get current plan
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prudra.dev/billing/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/billing/plan"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.prudra.dev/billing/plan \
--header 'Authorization: Bearer <token>'{}Authorizations
Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys
Response
200 - application/json
Plan summary
The response is of type object.

