{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/coincover/main/json-schema/coincover-backup-store-response-schema.json", "title": "BackupStoreResponse", "x-generated": "2026-10-09", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/_original/coincover-retail-openapi-openapi.json#/components/schemas/BackupStoreResponse", "type": "object", "properties": { "backup_type": { "type": "string", "enum": [ "data" ], "description": "Type of backup. Always present. Value is always \"data\"." }, "metadata": { "type": "object", "description": "Metadata associated with the backup (echoed from request + enhanced with system metadata such as API key info, stored_at timestamp, and backup_items_count). Always present.", "properties": { "description": { "type": "string", "description": "Description of the backup" }, "content_type": { "type": "string", "description": "MIME type of the content" }, "original_filename": { "type": "string", "description": "Original filename if applicable" }, "api_key_entity_type": { "type": "string", "description": "Entity type from API key authorizer context" }, "stored_at": { "type": "string", "format": "date-time", "description": "ISO timestamp when backups were stored" }, "backup_items_count": { "type": "integer", "description": "Number of backup items successfully stored", "minimum": 0 } }, "additionalProperties": true }, "backup": { "type": "array", "description": "Array of stored backup items. Each item contains the item_key, backup_id, checksum, and data_size.", "minItems": 1, "items": { "$ref": "#/$defs/BackupStoreItemResponse" } } }, "required": [ "backup_type", "metadata", "backup" ], "$defs": { "BackupStoreItemResponse": { "type": "object", "properties": { "item_key": { "type": "string", "description": "Unique identifier for the backup item (e.g., \"seed_phrase\", \"private_key\", \"wallet_config\"). Always present." }, "backup_id": { "type": "string", "format": "uuid", "description": "Unique identifier for the stored backup (UUID format). Always present." }, "checksum": { "type": "string", "description": "SHA-256 checksum of the stored data (echoed from request). Always present.", "pattern": "^[a-fA-F0-9]{64}$" }, "data_size": { "type": "integer", "description": "Size of the stored data in bytes. Always present.", "minimum": 0 } }, "required": [ "item_key", "backup_id", "checksum", "data_size" ] } } }