CreateApiKeyResp
Returned by
POST /api-keys— the full key summary plus the rawapiKeysecret. The secret is shown ONCE at creation time and can never be retrieved later; store it immediately in your secret management system. To replace a lost secret, revoke the key and create a new one.- apiType: string
Key requiredThe full secret API key in the form
sk_ns_<mode>_<keyId>_<secret>. Returned only once at creation time and cannot be retrieved later — store it immediately in your secret management system. - createdType: stringFormat: date-time
At requiredWhen the API key was created.
- keyType: string
Id requiredPublic identifier — the
<keyId>segment of the full key (sk_ns_<mode>_<keyId>_<secret>). Safe to log. Pass as thekeyIdpath param toPOST .../api-keys/{keyId}/revoke. - nameType: stringrequired
Human-readable label assigned at creation time.
- statusType: stringenumrequired
Computed status:
Revokedif the key was explicitly revoked;ExpiredifexpiresAtis in the past; otherwiseActive.values- Active
- Expired
- Revoked
- expiresType: stringFormat: date-time
At When the API key expires. Absent if the key was created with
expiration: "never".
