Permission required:
subscription:viewResponse
object
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"cancel_at_period_end": false,
"status": "active",
"current_period_end": 1760000000,
"current_period_start": 1760000000,
"plan": {
"billing_interval": "month",
"id": 1,
"name": "Example name",
"price": {
"amount": 1999,
"currency": "usd"
},
"tier": "free",
"tokens_per_cycle": 1200000
}
}
}
Returns the team’s current subscription: plan, state, current cycle and whether it ends at the cycle end
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"cancel_at_period_end": false,
"status": "active",
"current_period_end": 1760000000,
"current_period_start": 1760000000,
"plan": {
"billing_interval": "month",
"id": 1,
"name": "Example name",
"price": {
"amount": 1999,
"currency": "usd"
},
"tier": "free",
"tokens_per_cycle": 1200000
}
}
}
GET /openapi/memorylake/admin/v1/billing/subscription
subscription:viewcurl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription' \
-H 'Authorization: Bearer sk_xxxxxx'
Show Subscription object
active, past_due, none.Show Subscription Plan Summary object
month, year.free, pro, premium.{
"success": true,
"message": "Operation completed successfully",
"data": {
"cancel_at_period_end": false,
"status": "active",
"current_period_end": 1760000000,
"current_period_start": 1760000000,
"plan": {
"billing_interval": "month",
"id": 1,
"name": "Example name",
"price": {
"amount": 1999,
"currency": "usd"
},
"tier": "free",
"tokens_per_cycle": 1200000
}
}
}
success: false, a message and an error_code. See Error Codes for every code.
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, disabled or expired |
403 | The key is not allowed to do this |
429 | Too many requests. Wait for the time in Retry-After |
500 | Server-side error |