BazaarLinkBazaarLink
เข้าสู่ระบบ
เอกสารAPI ข้อมูลอ้างอิงSDK ข้อมูลอ้างอิงการใช้งาน AgentAI ทักษะ
Management Key

ดึงคีย์ BYOK รายตัว

ดึงคีย์ BYOK ขององค์กรหนึ่งรายการตาม id รวมรายการจับคู่โมเดลและฟิลด์สุขภาพ คีย์ upstream ปรากฏเฉพาะรูปแบบปิดบัง (keyMask)

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

การอนุญาต

Authorizationจำเป็น
string · header

API key เป็น bearer token ใน header Authorization

พารามิเตอร์เส้นทาง

idจำเป็น
string

id ของคีย์ BYOK (จากการสร้างหรือรายการ)

GET /api/v1/management/byok-keys/:id
curl https://bazaarlink.ai/api/v1/management/byok-keys/byok_abc123 \
  -H "Authorization: Bearer $BAZAARLINK_API_KEY"
ตัวอย่างการตอบกลับ

สำเร็จ — คืน { 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.
ดึงคีย์ BYOK รายตัว — BazaarLink API