TruthCam Developer API
Integrate blockchain-verified image authenticity into your applications
Blockchain Verified
Every image proof is cryptographically secured on Solana blockchain with Merkle tree verification
Fast & Reliable
RESTful API with sub-second response times and 99.9% uptime guarantee
Simple Authentication
OAuth-based login with GitHub/Google and secure API key management
Quick Start
1
2
Get Your API Key
Navigate to your dashboard and create a new API key. Free tier includes 1,000 credits.
tc_live_aBcDeFgHiJkLmNoPqRsTuVwXyZ1234563
Make Your First Request
Verify an image by hash using a simple POST request:
curl -X POST https://truthcam.net/api/v1/public/verify/hash \
-H "X-API-Key: tc_live_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"image_hash": "abc123..."
}'API Endpoints
POST
/api/v1/public/verify/hashVerify image authenticity by SHA-256 hash
View Example Response
{
"verified": true,
"image_hash": "abc123...",
"batch_id": "batch-uuid",
"merkle_root": "root-hash",
"solana_txid": "tx-id",
"solana_network": "mainnet",
"timestamp": "2024-01-01T00:00:00",
"message": "Image verified successfully"
}POST
/api/v1/public/verify/uploadVerify image authenticity by uploading file (multipart/form-data)
View cURL Example
curl -X POST https://truthcam.net/api/v1/public/verify/upload \ -H "X-API-Key: tc_live_YOUR_KEY_HERE" \ -F "file=@/path/to/image.jpg"
GET
/api/v1/developer/keys/usage/currentCheck your current month's API usage statistics
View Example Response
{
"usage": 234,
"quota": 1000,
"tier": "free",
"remaining": 766,
"percentage": 23.4,
"period": "monthly"
}Credit Packages
Purchase API credits with no expiration. Use them anytime, at your own pace.