所需权限:
credits:manage响应
object
错误
出错时返回success: false、message 和 error_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
}
}
列出已保存的卡片:卡组织、卡号后四位、到期时间以及哪张为默认卡
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'
{
"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、message 和 error_code。全部错误码见错误码。
| 状态码 | 含义 |
|---|---|
401 | API Key 缺失、无效、已停用或已过期 |
403 | 该 Key 无权执行此操作 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |
503 | 暂时不可用,请稍后重试 |