繁體中文
繁體中文
Appearance
繁體中文
繁體中文
Appearance
以程式方式管理您的 API 金鑰。您也可以在 API 金鑰頁面建立和刪除金鑰。

POST /apikeys
| 參數 | 類型 | 必填 | 描述 |
|---|---|---|---|
name | string | 否 | 金鑰標籤(如 "Production")。預設為 "Default"。 |
201 Created {
"apiKey": "bws_a1b2c3d4e5f6789012345678abcdef01",
"keyPrefix": "bws_a1b2c3d4",
"keyName": "Production",
"createdAt": 1711036800000
}WARNING
完整的 API 金鑰僅在建立時傳回一次。請妥善保管。
GET /apikeys
[
{
"keyPrefix": "bws_a1b2c3d4",
"keyName": "Production",
"createdAt": 1711036800000,
"lastUsedAt": 1711123200000
}
]DELETE /apikeys/:key
| 參數 | 類型 | 必填 | 描述 |
|---|---|---|---|
key | string | 是 | 要刪除的完整 API 金鑰或金鑰前綴。 |