encryption
Vesta API · 6.0.75 · Community
GET/api/v1/encryption/keysList Keys
List all encryption keys (metadata only, never key material)
Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"algorithm": {
"type": "string"
},
"backed_up": {
"type": "boolean"
},
"backed_up_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"backed_up_locations": {
"items": {
"type": "string"
},
"type": "array"
},
"backup_count": {
"type": "integer"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"created_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"key_hash": {
"type": "string"
},
"name": {
"type": "string"
},
"provider": {
"type": "string"
},
"replaced_by_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"rotated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
}
},
"required": [
"id",
"name",
"algorithm",
"key_hash",
"status",
"provider",
"created_at",
"created_by",
"rotated_at",
"replaced_by_id",
"backed_up",
"backed_up_at",
"backed_up_locations",
"backup_count"
],
"type": "object"
},
"type": "array"
},
"total": {
"type": "integer"
}
},
"required": [
"items",
"total"
],
"type": "object"
}POST/api/v1/encryption/keysCreate Key
Create a local KEK and its nonsecret admission receipt atomically.
Parameters
Idempotency-Key · header · Optional
Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.
{
"format": "uuid",
"type": "string"
}Request body
Required
application/json
Schema
Authentication
Responses
200
Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.
Headers
{
"Cache-Control": {
"schema": {
"const": "no-store"
}
},
"Idempotency-Key": {
"schema": {
"format": "uuid",
"type": "string"
}
},
"Idempotency-Replayed": {
"schema": {
"enum": [
"true",
"false"
],
"type": "string"
}
},
"X-Request-ID": {
"description": "Per-HTTP-request correlation, separate from durable admission identity.",
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"additionalProperties": false,
"properties": {
"algorithm": {
"type": "string"
},
"backed_up": {
"type": "boolean"
},
"backed_up_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"backed_up_locations": {
"items": {
"type": "string"
},
"type": "array"
},
"backup_count": {
"type": "integer"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"created_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"key_hash": {
"type": "string"
},
"name": {
"type": "string"
},
"provider": {
"type": "string"
},
"replaced_by_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"request_id": {
"format": "uuid",
"type": "string"
},
"rotated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
}
},
"required": [
"id",
"name",
"algorithm",
"key_hash",
"status",
"provider",
"created_at",
"created_by",
"rotated_at",
"replaced_by_id",
"backed_up",
"backed_up_at",
"backed_up_locations",
"backup_count",
"request_id"
],
"type": "object"
}400
Invalid domain request.
application/json
Schema
401
Authentication unavailable.
application/json
Schema
403
Current action authority unavailable.
application/json
Schema
404
Authorized resource unavailable.
application/json
Schema
409
Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.
application/json
Schema
413
Normalized intent exceeds admission limit.
application/json
Schema
422
Malformed identity, request validation or bulk target limit.
application/json
Schema
423
Existing source or operation custody prevents admission.
application/json
Schema
500
Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.
application/json
Schema
text/plain
Schema
{
"type": "string"
}503
Admission dependency unavailable.
application/json
Schema
POST/api/v1/encryption/keys/confirm-exportConfirm Export Custody
Verify a saved encrypted export and record the admin's custody attestation.
Request body
Required
multipart/form-data
Schema
Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post
Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
POST/api/v1/encryption/keys/exportExport Keys
Export keys as password-protected file (local provider only)
Request body
Required
application/json
Schema
Authentication
Responses
200
Binary attachment. Saving the response does not confirm independent encryption-key backup custody.
Headers
{
"Content-Disposition": {
"description": "Attachment filename.",
"schema": {
"type": "string"
}
}
}application/octet-stream
Schema
{
"format": "binary",
"type": "string"
}422
Validation Error
application/json
Schema
POST/api/v1/encryption/keys/importImport Keys
Import keys from password-protected export file
Request body
Required
multipart/form-data
Schema
Body_import_keys_api_v1_encryption_keys_import_post
Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
GET/api/v1/encryption/keys/{key_id}Get Key
Get encryption key details + backup count
Parameters
key_id · path · Required
{
"title": "Key Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
POST/api/v1/encryption/keys/{key_id}/revokeRevoke Key
Revoke a key (soft delete). Fails if backups still reference it.
Parameters
key_id · path · Required
{
"title": "Key Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
POST/api/v1/encryption/keys/{key_id}/rotateRotate Key
Replay names the same successor; a new request for a stale key conflicts.
Parameters
key_id · path · Required
{
"title": "Key Id",
"type": "string"
}Idempotency-Key · header · Optional
Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.
{
"format": "uuid",
"type": "string"
}Request body
Required
application/json
Schema
Authentication
Responses
200
Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.
Headers
{
"Cache-Control": {
"schema": {
"const": "no-store"
}
},
"Idempotency-Key": {
"schema": {
"format": "uuid",
"type": "string"
}
},
"Idempotency-Replayed": {
"schema": {
"enum": [
"true",
"false"
],
"type": "string"
}
},
"X-Request-ID": {
"description": "Per-HTTP-request correlation, separate from durable admission identity.",
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"additionalProperties": false,
"properties": {
"algorithm": {
"type": "string"
},
"backed_up": {
"type": "boolean"
},
"backed_up_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"backed_up_locations": {
"items": {
"type": "string"
},
"type": "array"
},
"backup_count": {
"type": "integer"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"created_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"key_hash": {
"type": "string"
},
"name": {
"type": "string"
},
"provider": {
"type": "string"
},
"replaced_by_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"request_id": {
"format": "uuid",
"type": "string"
},
"rotated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
}
},
"required": [
"id",
"name",
"algorithm",
"key_hash",
"status",
"provider",
"created_at",
"created_by",
"rotated_at",
"replaced_by_id",
"backed_up",
"backed_up_at",
"backed_up_locations",
"backup_count",
"request_id"
],
"type": "object"
}400
Invalid domain request.
application/json
Schema
401
Authentication unavailable.
application/json
Schema
403
Current action authority unavailable.
application/json
Schema
404
Authorized resource unavailable.
application/json
Schema
409
Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.
application/json
Schema
413
Normalized intent exceeds admission limit.
application/json
Schema
422
Malformed identity, request validation or bulk target limit.
application/json
Schema
423
Existing source or operation custody prevents admission.
application/json
Schema
500
Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.
application/json
Schema
text/plain
Schema
{
"type": "string"
}503
Admission dependency unavailable.
application/json
Schema
GET/api/v1/encryption/providerGet Provider Info
Get current KMS provider info
Authentication
Responses
200
Successful Response
application/json
Schema
{}