系统
API 中台健康状态检查需要认证免费
GET
/health接口简介
当你遇到接口调不通的情况,想要检查 Memene API 开放平台 的服务状态时,可以调用该接口进行诊断。
主要用途:
- 服务可用性检查:快速确认 Memene API 开放平台是否正常运行
- 故障诊断:当其他接口调用失败时,可调用此接口判断是平台问题还是单个接口问题。
- API Key 验证:传入 API Key 可同时验证其有效性
授权说明:
- 不传入 API Key:返回
{ "status": "ok" } - 传入有效 API Key:返回 { "status": "ok", "apiKeyValid": true }
- 传入无效 API Key:返回 401 Unauthorized + 错误信息
请求头
参数类型必填说明
Authorizationstring否
可选的 API Key。从 Memene API 开放平台获取的 API Key,是 Bearer Token 格式,例如:Bearer sk_memene_xxx_yyy。可以 点击此处 获取 API KEY。传入有效 Key 时可能返回更多信息。
响应结构
200application/json
Default Response
字段类型说明
statusstring
apiKeyValidboolean
示例
json
{
"status": "ok",
"apiKeyValid": true
}401application/json
Default Response
字段类型说明
statusstring
errorstring
messagestring
示例
json
{
"status": "error",
"error": "Unauthorized",
"message": "无效的 API Key 格式"
}