Samples

Stamp Endpoint

Curl Examples

Stamping Without a Collection

  1. Stamping a file:

curl -X POST https://app.vbase.com/api/v1/stamps \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "[email protected]" \
-F "store_stamped_file=true" \
-F "idempotent=true" \
-F "idempotency_window=3600"
  1. Stamping inline data:

curl -X POST https://app.vbase.com/api/v1/stamps \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "data='1212121212'" \
-F "store_stamped_file=true" \
-F "idempotent=true" \
-F "idempotency_window=3600"
  1. Stamping a Content Identifier (CID) without revealing data:

Stamping to a Collection Identified by a Name

  1. Stamping a file:

  1. Stamping inline data:

  1. Stamping a Content Identifier (CID) without revealing data:

Stamping to a Collection Identified by a Content Identifier (Collection CID)

  1. Stamping a file:

  1. 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.

Scenario
HTTP Status
Error/Result
Notes

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

  1. Verifying CIDs:

Python Examples

Last updated