Skip to main content

Module keys

Module keys 

Source
Expand description

API Key management for the Dakera client.

Provides methods for creating, listing, rotating, and managing API keys.

Structs§

ApiKeyUsageResponse
API key usage statistics
CreateKeyRequest
Request to create a new API key
CreateKeyResponse
Response after creating an API key
CreateNamespaceKeyRequest
Request body for POST /v1/namespaces/:namespace/keys (SEC-1).
CreateNamespaceKeyResponse
Response from POST /v1/namespaces/:namespace/keys (SEC-1).
EndpointUsageInfo
Usage statistics per endpoint
KeyInfo
API key info (without sensitive data)
KeySuccessResponse
Generic success response
ListKeysResponse
List keys response
ListNamespaceKeysResponse
Response from GET /v1/namespaces/:namespace/keys (SEC-1).
NamespaceKeyInfo
Namespace-scoped API key metadata — no secret included (SEC-1).
NamespaceKeyUsageResponse
Response from GET /v1/namespaces/:namespace/keys/:key_id/usage (SEC-1).
NamespaceUsageInfo
Usage statistics per namespace
RotateKeyResponse
Rotate key response