跳转到主要内容
POST
POST /admin/api/api-keys/batch

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json

One step of a batch write. Every item of one batch lands in a single revision commit: either all of them are durable or none is.

create
object
必填

响应

(object | null)[]

Success

enabled
boolean
必填
expiresAtMs
integer<int64> | null
必填
hasSecret
boolean
必填

Whether the instance retained a sealed copy of the key text, i.e. whether reveal can answer. The bytes themselves have no field.

id
string
必填
kind
string
必填

user or oauth. An oauth key is a grant's internal key and is not a bearer credential; it is listed so an operator can see it, never created or revealed through this family.

management
boolean
必填

Whether the key may manage; see api_keys.management.

name
string
必填
organizationId
string | null
必填
prefix
string
必填

The first eight characters of the key body, for recognising a key in a list. Not a secret and not enough of one to be useful.

teamId
string | null
必填
userId
string
必填