Returns detailed information about a specific vault, including metadata and item count.
GET /api/v1/machine/vault/:vaultId| Header | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | Yes | Your API key |
| Parameter | Type | Required | Description |
|---|---|---|---|
vaultId | string | Yes | The unique identifier of the vault |
Success (200 OK)
{
"id": "507f1f77bcf86cd799439011",
"name": "Production Secrets",
"isEncrypted": true,
"encryptionKeyId": "507f1f77bcf86cd799439015",
"dataClassification": "CONFIDENTIAL",
"createdAt": "2026-01-15T10:30:00.000Z",
"createdBy": "507f1f77bcf86cd799439017",
"itemCount": 12
}| Field | Type | Description |
|---|---|---|
id | string | Vault ID |
name | string | Vault name |
isEncrypted | boolean | null | Whether the vault uses client-side encryption |
encryptionKeyId | string | null | Encryption key ID for decrypting secret values |
dataClassification | string | null | Data classification: PUBLIC, INTERNAL, CONFIDENTIAL, or CUI |
createdAt | string | ISO 8601 creation timestamp |
createdBy | string | Account ID of the vault creator |
itemCount | number | Number of non-archived items in the vault |
404 Not Found - Vault not found or not accessible
{
"error": {
"code": "vault_not_found",
"message": "The vault with ID \"507f1f77bcf86cd799439011\" was not found or you do not have access to it."
}
}curl -X GET "https://r4.dev/api/v1/machine/vault/507f1f77bcf86cd799439011" \
-H "X-API-Key: rk_abc123def456.ghijklmnopqrstuvwxyz"encryptionKeyId needed for client-side decryption