Anchora VaaS Documentation
Build tamper-proof applications with blockchain-backed data integrity. Add immutability and cryptographic proof to any app with simple APIs.
Quickstart
Get up and running with Anchora in 5 minutes. Create your first blockchain anchor.
API Reference
Complete API documentation with examples, parameters, and response schemas.
Authentication
Learn how to authenticate your API requests using Bearer tokens.
Quick Example
Anchor your first piece of data with just a few lines of code:
curl -X POST https://api.anchora.co.in/v1/anchor/encrypted \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "data": { "name": "Alice Smith", "email": "alice@example.com", "ssn": "123-45-6789" }, "encryptionKey": "your-strong-encryption-key-min-32-chars", "mutableFields": ["name", "email"], "immutableFields": ["ssn"] }'
API Endpoints
Anchora VaaS provides multiple endpoints for different use cases:
Keys API NEW
Cryptographic key management with Signal Protocol (X3DH) for end-to-end encryption.
Certificate API NEW
Every anchored record can generate a branded PDF certificate and JSON badge data. Certificates make blockchain proof tangible — a bank shows it to a regulator, a university gives it to a student, a company attaches it to a contract.
How It Works
What's in the PDF: Anchora branding, data hash (SHA-256), block number, transaction hash, batch ID, Merkle root, timestamp, network, QR code (links to verify.anchora.co.in), unique Certificate ID, and "VERIFIED ON BLOCKCHAIN" badge.
Certificate ID format: CERT-{unix_timestamp}-{first_8_chars_of_hash} — e.g. CERT-1710345600-a1b2c3d4
Download a branded PDF certificate for a blockchain-anchored record. Returns application/pdf.
Get certificate metadata as JSON for custom displays, embeddable badges, or verification portals.
Error Responses
| Status | Error Code | When |
|---|---|---|
400 | NOT_ANCHORED | Record is still QUEUED or BATCHING |
404 | HASH_NOT_FOUND | No record found with this hash |
401 | UNAUTHORIZED | Missing or invalid API key |
429 | RATE_LIMIT_ERROR | Too many requests |
ANCHORED status. Records in QUEUED or BATCHING status will return a NOT_ANCHORED error.
Key Features
AES-256 Encryption
Military-grade encryption with PBKDF2 key derivation.
HIPAA Ready
Built-in compliance for healthcare and financial data.
Privacy Search
Hash-based search without exposing data.
GDPR Delete
Soft, hard, and complete deletion options.