Skip to main content
POST
Rotate API access key

Autorizācijas

Authorization
string
header
obligāts

Short-lived bearer access token issued for a Living Security API access key. Send as Authorization: Bearer .

Galvenes

x-organization-id
string<uuid>
obligāts

Organization context for multi-tenant operations

Ceļa parametri

id
string
obligāts

API access key identifier to rotate

Atbilde

201 - application/json
id
string
obligāts

Stable API access key identifier

name
string
obligāts

Human-readable name for the API access key credential, usually the owning integration or automation

keyType
enum<string>
obligāts

Credential type for the API access key. user_bound keys are associated with the creating user's identity; service_account keys are intended for non-human service integrations.

Pieejamās opcijas:
user_bound,
service_account
boundEmail
string
obligāts

Email address associated with the API access key credential when the credential is user-bound

status
enum<string>
obligāts

API access key status

Pieejamās opcijas:
active,
revoked
createdAt
string<date-time>
obligāts

Timestamp when the API access key credential was created

createdByUserId
string
obligāts

Identifier of the user who created this API access key

scopes
string[]
obligāts

Permission scopes assigned to this API access key

Piemērs:
secret
string
obligāts

One-time secret access key value. Store it immediately; it cannot be retrieved after creation or rotation.

lastUsedAt
string<date-time> | null

Last time the API access key was used

expiresAt
string<date-time> | null

Expiration timestamp for the API access key credential