UserAPIKeyService

post/v1/me/apikeys

Request body

billingModestring

billing_mode: "" | "wallet" | "subscription"。空字符串视为 "wallet"。

expiresAtstring date-time
namestring
scopesstring[]
subscriptionIdstring

subscription_id: billing_mode="subscription" 时必须传,指定绑定的订阅 ID。

teamIdstring

team_id: 在团队令牌页创建时传,将令牌快照归属到该团队(创建人须为该团队 active 成员)。 个人令牌不传;订阅令牌不可带 team_id。

Response

OK

plaintextKeystring

plaintext_key 完整明文 key,仅在创建时返回一次,丢失需 rotate 重建。

Changes

No recorded changes to this endpoint across all 1 revision of this API.