Get Subscription
GET
/billing/subscription
const url = 'https://api.mengi.cloud/billing/subscription';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mengi.cloud/billing/subscriptionResponses
Section titled “ Responses ”Successful Response
Media type application/json
SubscriptionResponse
object
id
required
Id
string format: uuid
plan
required
PlanType
string
status
required
SubscriptionStatus
string
created_at
required
Created At
string format: date-time
Example
{ "plan": "free", "status": "active", "billing_mode": "threshold"}