Mint a key. The secret is returned once
post/keys
Before you call
- Credential
Authorization: Bearer $KEY- Scope
keys:admin- Sdk
keys.key.create- Cli
keys key create- Events
keys.key.created
Request bodyapplication/json, required
- namestringrequiredAt most 200 characters.
- rolestringOne of: agent, manage.
- rpmLimitintegerAt least 1. At most 100000.
- expiresInDaysintegerAt least 1. At most 3650.
- kindstringOne of: secret, publishable.
- scopeslist of string
- allowedOriginslist of string
- ipAllowlistlist of string
- modestringOne of: live, test.
Responses
- 201application/jsonSuccess
- modestringOne of: live, test.
- key_idstring (uuid)required
- namestringrequired
- rolestringrequiredOne of: agent, manage, admin.
- kindstringrequiredOne of: secret, publishable.
- prefixstringrequired
- scopeslist of string or nullrequired
- allowed_originslist of stringrequired
- ip_allowlistlist of stringrequired
- rpm_limitnumber or null
- expires_atstring or null
- created_atstringrequired
- secretstringrequired
- modestring
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring