Skip to main content
POST
Issue a sub-account key

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

The sub-account id.

Body

application/json
name
string
default: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
Required range: 0.01 <= x <= 20000000Must be a multiple of 0.01
expiresAt
string<date-time> | null

Between 5 minutes and 2 years from now.

Response

The new key, with the raw key in key.

success
boolean
required
data
object
required