Download OpenAPI specification:Download
Many blockchain use cases require the pinning of on-chain transactions to securely stored documents that cannot be held on-chain, either because they are too large or the information is too sensitive to put into your immutable shared ledger. Kaleido’s Document Store was created for these use cases, providing a private store solely for your individual use. We provide the mechanism to generate hashes that uniquely tie an on-chain asset, token, or transaction to off-chain data.
When the path matches a folder, it retrieves the (paginated) list of documents and subfolders contained within it. When the path matches a document, it returns either its content or, if query parameter details_only is true, its metadata. Use empty string for root folder.
path required | string Path to document or folder. |
offset | integer Default: 0 Number of entries to skip. |
limit | integer Default: 100 Maximum number of entries. |
{- "is_truncated": true,
- "entries": [
- {
- "name": "string",
- "is_directory": true,
- "size": 0,
- "last_modified": "string"
}
]
}
Uploads a document or move/copy from an existing document. If the path doesn't exist, it will be automatically created.
path required | string Path to document or folder. |
document required | string <binary> Document to upload. |
{- "result": "string",
- "hash": "string"
}
Adds metadata or calculates and stores the hash of a document. Useful when working with external storage (AWS or Azure) where files may be uploaded through means other than the document store API.
path required | string Path to document or folder. |
metadata | object Metadata about the document. An object of key/value pairs. |
{- "metadata": { }
}
{- "result": "string",
- "hash": "string"
}
Uploads a document or move/copy from an existing document, overwriting the document if it already exists. If the path doesn't exist, it will be automatically created.
path required | string Path to document or folder. |
document required | string <binary> Document to upload. |
{- "result": "string",
- "hash": "string"
}
Retrieves the (paginated) document transfer log.
offset | integer Default: 0 Number of entries to skip. |
limit | integer Default: 100 Maximum number of entries. |
{- "is_truncated": true,
- "entries": [
- {
- "id": "string",
- "timestamp": "string",
- "fromDestinationUri": "string",
- "toDestinationUri": "string",
- "hash": "string",
- "documentPath": "string",
- "status": "sent",
- "transferHash": "string",
- "senderSignature": "string",
- "recipientSignature": "string"
}
]
}
Transfers a document.
from required | string Sender destination. |
to required | string Recepient destination. |
document required | string Path to document to send. |
{- "from": "string",
- "to": "string",
- "document": "string"
}
{- "result": "string",
- "transfer_id": "string"
}
Searches for documents by name or hash. Result will contain at most 100 entries.
query required | string String to search. |
by_hash | boolean Default: false True to search by hash, false to search by name. |
{- "documents": [
- {
- "full_path": "string",
- "last_modified": "string",
- "size": 0,
- "hash": "string"
}
], - "missing_hashes": true
}
Ensures that every document in storage has its associated hash calculated.
reset | boolean Default: false Resets all hashes. Useful for cleaning the internal database when using external storage (AWS or Azure) and documents are deleted through means other than document store API. |
{- "hashes_calculated": 0
}
Sets preference value. (NEW - you may need to upgrade your environment to access this endpoint)
key | string Valid preference key - see GET /api/v1/preference for a list of valid preferences |
string or Array of arrays or object Valid value for the given preference key |
{- "key": "string",
- "value": "string"
}
{- "result": "string"
}