メインコンテンツへスキップ
POST
Issue a sub-account key

承認

Authorization
string
header
必須

Your API key, sent as Authorization: Bearer <key>.

パスパラメータ

id
string<uuid>
必須

The sub-account id.

ボディ

application/json
name
string
デフォルト:default
Required string length: 1 - 64
allowedTaskTypes
string[]

Self-serve engines the key may submit. Empty or absent means all of them.

dailyCreditLimit
number | null
必須範囲: 0.01 <= x <= 20000000次の倍数である必要があります 0.01
expiresAt
string<date-time> | null

Between 5 minutes and 2 years from now.

レスポンス

The new key, with the raw key in key.

success
boolean
必須
data
object
必須