cmind/apikey/v1/api_key_service.proto
Package: cmind.apikey.v1
Enums
ApiKeyState
| Value | Number | Description |
|---|---|---|
API_KEY_STATE_UNSPECIFIED | 0 | |
API_KEY_STATE_ACTIVE | 1 | |
API_KEY_STATE_DISABLED | 2 |
Messages
ApiKey
ApiKey represents an API key for service access
| Field | Type | Number | Description |
|---|---|---|---|
key | string | 1 | JWT-encoded key for display/use |
state | ApiKeyState | 2 |
ListApiKeysRequest
| Field | Type | Number | Description |
|---|---|---|---|
id | string | 1 | Service ID - the deployment this key grants access to |
tenantId | string | 2 |
ListApiKeysResponse
| Field | Type | Number | Description |
|---|---|---|---|
apiKeys | repeated ApiKey | 1 |
CreateApiKeyRequest
| Field | Type | Number | Description |
|---|---|---|---|
id | string | 1 | Service ID - the deployment this key will grant access to |
tenantId | string | 2 | |
label | string | 3 | Human-readable label for display in the portal |
expirationDate | int64 | 4 | Optional Unix timestamp for key expiration |
CreateApiKeyResponse
| Field | Type | Number | Description |
|---|---|---|---|
apiKey | ApiKey | 1 |
DeleteApiKeyRequest
| Field | Type | Number | Description |
|---|---|---|---|
id | string | 1 | Service ID |
tenantId | string | 2 | |
apiKey | string | 3 | JWT-encoded key to delete |
DeleteApiKeyResponse
DisableApiKeyRequest
| Field | Type | Number | Description |
|---|---|---|---|
id | string | 1 | Service ID |
tenantId | string | 2 | |
apiKey | string | 3 | JWT-encoded key to disable |
DisableApiKeyResponse
EnableApiKeyRequest
| Field | Type | Number | Description |
|---|---|---|---|
id | string | 1 | Service ID |
tenantId | string | 2 | |
apiKey | string | 3 | JWT-encoded key to enable |
EnableApiKeyResponse
Services
ApiKeyService
ApiKeyService manages API keys for service deployments. API keys are scoped to individual services (one key = one service).
ListApiKeys
POST /cmind.apikey.v1.ApiKeyService/ListApiKeys
Request: ListApiKeysRequest
Response: ListApiKeysResponse
CreateApiKey
POST /cmind.apikey.v1.ApiKeyService/CreateApiKey
Request: CreateApiKeyRequest
Response: CreateApiKeyResponse
DeleteApiKey
POST /cmind.apikey.v1.ApiKeyService/DeleteApiKey
Request: DeleteApiKeyRequest
Response: DeleteApiKeyResponse
DisableApiKey
POST /cmind.apikey.v1.ApiKeyService/DisableApiKey
Request: DisableApiKeyRequest
Response: DisableApiKeyResponse
EnableApiKey
POST /cmind.apikey.v1.ApiKeyService/EnableApiKey
Request: EnableApiKeyRequest
Response: EnableApiKeyResponse