BazaarLinkBazaarLink
Đăng nhập
Tài liệuTham chiếu APITham chiếu SDKSử dụng AgentKỹ năng AI
Management Key

Lấy một BYOK key

Lấy một BYOK key của tổ chức theo id, gồm danh sách ánh xạ model và các trường sức khỏe. Upstream key chỉ ở dạng che (keyMask).

GET/api/v1/management/byok-keys/:id

Xác thực

Authorizationbắt buộc
string · header

API key dưới dạng bearer token trong header Authorization.

Tham số đường dẫn

idbắt buộc
string

Id của BYOK key (từ tạo hoặc liệt kê).

GET /api/v1/management/byok-keys/:id
curl https://bazaarlink.ai/api/v1/management/byok-keys/byok_abc123 \
  -H "Authorization: Bearer $BAZAARLINK_API_KEY"
Ví dụ phản hồi

Thành công — trả về { key }.

{
  "key": {
    "id": "byok_abc123",
    "ownerType": "org",
    "userId": null,
    "organizationId": "org_abc123",
    "name": "team-upstream",
    "baseUrl": "https://api.example-upstream.com/v1",
    "keyMask": "sk-abc…wxyz",
    "protocol": "openai",
    "enabled": true,
    "fallbackMode": "seamless",
    "modelsStale": false,
    "lastVerifiedAt": "2026-07-29T00:00:00.000Z",
    "lastErrorAt": null,
    "lastErrorCode": null,
    "errorCount1h": 0,
    "createdAt": "2026-07-29T00:00:00.000Z",
    "updatedAt": "2026-07-29T00:00:00.000Z",
    "models": [
      {
        "canonicalId": "openai/gpt-4o",
        "upstreamModelId": "gpt-4o",
        "enabled": true
      }
    ],
    "scopedApiKeyIds": []
  }
}
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Lấy một BYOK key — BazaarLink API