Skip to main content
POST
Create API access key

Ủy quyền

Authorization
string
header
bắt buộc

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

Tiêu đề

x-organization-id
string<uuid>
bắt buộc

Organization context for multi-tenant operations

Nội dung

application/json
name
string
bắt buộc

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

Required string length: 1 - 255
Ví dụ:

"SIEM Export Integration"

expiresAt
string | null

Optional expiration timestamp for the API access key credential in ISO 8601 format. Omit for no scheduled expiration.

Ví dụ:

"2027-01-01T00:00:00Z"

keyType
enum<string> | null
mặc định:user_bound

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

Tùy chọn có sẵn:
user_bound,
service_account
scopes
enum<string>[]

Permission scopes for the API access key credential. Defaults to [""] (full access). Use "push-ingest:" to restrict the credential to push data ingestion only.

Tùy chọn có sẵn:
*,
push-ingest:*

Phản hồi

201 - application/json
id
string
bắt buộc

Stable API access key identifier

name
string
bắt buộc

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

keyType
enum<string>
bắt buộc

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.

Tùy chọn có sẵn:
user_bound,
service_account
boundEmail
string
bắt buộc

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

status
enum<string>
bắt buộc

API access key status

Tùy chọn có sẵn:
active,
revoked
createdAt
string<date-time>
bắt buộc

Timestamp when the API access key credential was created

createdByUserId
string
bắt buộc

Identifier of the user who created this API access key

scopes
string[]
bắt buộc

Permission scopes assigned to this API access key

Ví dụ:
secret
string
bắt buộc

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