API 参考
获取当前账户
获取当前 API 密钥可访问的用户和账户上下文。
获取当前 API 密钥可访问的用户和账户上下文。
端点
- 基础 URL
https://runapi.ai- API 版本
v1- 身份验证
Authorization: Bearer YOUR_API_KEY- 授权
- 只返回当前 Standard API 密钥绑定的账户和用户。
02
HTTP 200成功响应
GET /api/v1/me
JSON
{
"account": {
"id": 7,
"name": "Example Studio"
},
"email": "[email protected]",
"id": 42,
"name": "Ada"
}
03
HTTP 401错误响应 (401)
JSON
{
"error": "Authentication required"
}
04
HTTP 403错误响应 (403)
JSON
{
"error": "Standard API key required"
}
05
cURL 示例
CURL
curl -X GET https://runapi.ai/api/v1/me \
-H 'Authorization: Bearer YOUR_API_KEY'
06