Permission required:
credits:manageResponse
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/payment-methods' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"is_default": true,
"type": "example",
"brand": "example",
"exp_month": 1,
"exp_year": 1,
"last4": "example"
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
Lists the saved cards: brand, last four digits, expiry and which one is the default
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/payment-methods' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"is_default": true,
"type": "example",
"brand": "example",
"exp_month": 1,
"exp_year": 1,
"last4": "example"
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
GET /openapi/memorylake/admin/v1/billing/payment-methods
credits:managecurl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/payment-methods' \
-H 'Authorization: Bearer sk_xxxxxx'
Show Load More Response Payment Method object
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"is_default": true,
"type": "example",
"brand": "example",
"exp_month": 1,
"exp_year": 1,
"last4": "example"
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
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 |
503 | Temporarily unavailable. Retry later |