Examples
Stamp Endpoint
Curl Examples
See curl command conventions for quoting and multipart fields.
Stamping Without a Collection
Stamping a file:
curl -X POST https://app.vbase.com/api/v1/stamps \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-F 'file=@testfile.txt' \
--form-string 'store_stamped_file=true' \
--form-string 'idempotent=true' \
--form-string 'idempotency_window=3600'Stamping inline data:
curl -X POST https://app.vbase.com/api/v1/stamps \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
--form-string 'data=1212121212' \
--form-string 'store_stamped_file=true' \
--form-string 'idempotent=true' \
--form-string 'idempotency_window=3600'Stamping a Content Identifier (CID) without revealing data:
Stamping to a Collection Identified by a Name
Stamping a file:
Stamping inline data:
Stamping a Content Identifier (CID) without revealing data:
Stamping to a Collection Identified by a Content Identifier (Collection CID)
Stamping a file:
Stamping a Content Identifier (CID) without revealing data:
Collection CID validation behavior
When you pass collection_cid directly, stamp-and-save only supports collections that are already known in your vBase app account (UserCollection) so the backend can resolve a storage folder name. After local lookup succeeds, the backend also validates that the collection has been created by the authenticated user.
collection_cid is not found in the app DB (UserCollection)
400
Collection CID is not registered in your vBase app account: {collection_cid}. Stamping with collection_cid requires a known collection name for storage, so on-chain-only collections are not supported.
Request stops before blockchain stamping. This includes on-chain CIDs that were never registered as app collections.
collection_cid exists in app DB but was not created by the current user
400
Collection CID has not been created by the current user: {collection_cid}. Please create a collection first.
File may still be uploaded to non_confirmed/ and a failed UserStampedFiles record is saved when upload is enabled.
collection_cid exists in app DB and has been created by the current user
201
commitment_receipt (+ file_object when upload is enabled)
File is stored under stamped/.
This means on-chain-only, unknown-name collections are intentionally unsupported in POST /api/v1/stamps when file storage is requested, because current storage paths require a known collection name.
Verify Endpoint
Curl Examples
See curl command conventions for quoting and multipart fields.
Verifying CIDs:
Python Examples
Last updated

