接口
认证
需要有效的Authorization: Bearer <jwt-or-api-key> 头。
响应
array
key_preview,便于你在无需暴露完整密钥的情况下区分各个密钥。只有创建时返回的明文密钥可用于认证。
接口
GET/v1/apikeys
认证:Bearer API 密钥
响应
array
限定为当前用户的 API 密钥对象列表。
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://ariapin.example.com:8001/v1/apikeys \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"code": 0,
"data": {
"items": [
{
"id": "key_abc",
"name": "production",
"prefix": "prod_...",
"created_at": "2024-01-15T09:30:00Z"
}
]
},
"message": ""
}
列出当前 PIN 用户拥有的全部 API 密钥。返回每个密钥的元数据;创建后不会暴露完整密钥值。
curl -X GET https://ariapin.example.com:8001/v1/apikeys \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"code": 0,
"data": {
"items": [
{
"id": "key_abc",
"name": "production",
"prefix": "prod_...",
"created_at": "2024-01-15T09:30:00Z"
}
]
},
"message": ""
}
GET /v1/apikeys
Authorization: Bearer <jwt-or-api-key> 头。
curl -X GET https://ariapin.example.com:8001/v1/apikeys \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"code": 0,
"data": {
"items": [
{
"id": "key_abc",
"name": "production",
"prefix": "prod_...",
"created_at": "2024-01-15T09:30:00Z"
}
]
},
"message": ""
}
key_preview,便于你在无需暴露完整密钥的情况下区分各个密钥。只有创建时返回的明文密钥可用于认证。
/v1/apikeys
认证:Bearer API 密钥
curl -H "Authorization: Bearer $ARIA_PIN_KEY" \
http://localhost:8001/v1/apikeys
{
"items": [
{
"id": "key_7aBc3DeFgH4",
"name": "default",
"key_preview": "ak_****wxyz",
"created_at": "2025-01-15T09:22:00Z"
}
]
}
Was this page helpful?