Management API — Red Team API Keys
Management API — Red Team API Keys
Manage the folder-scoped Red Team API Keys used with the SDK. All endpoints require a Management API Key and are scoped to its organization — see the Overview for authentication and error conventions.
Keys created here are folder-scoped: a key can only access the targets, scans, and evaluations in its folder. The Management API cannot create another Management API Key — that lifecycle is dashboard-only.
The secret is returned only once, when the key is created or rotated. It is never stored in plaintext and cannot be retrieved afterward, so record it at creation time.
List keys
GET /management/folders/{folderId}/keys
Returns metadata for each key in the folder. The secret is never included in a listing.
revokedAt and lastUsedAt are present only when applicable.
Create a key
POST /management/folders/{folderId}/keys
Responds 201 with the key id and the secret:
Rotate a key
POST /management/folders/{folderId}/keys/{keyId}/rotate
Issues a replacement key with the same name and immediately revokes the old one, so the two are never valid at the same time.
Responds with the new key id and secret:
Revoke a key
DELETE /management/folders/{folderId}/keys/{keyId}
Responds 204. Revoking an already-revoked key is a no-op.