📚 Documentation
API Reference
Complete API documentation for developers
🔗 Base URL
All API endpoints are relative to: https://blockchain-evidence.onrender.com/api
Authentication
Authenticate user with email and password
Register a new user with email
Register a new user with MetaMask wallet
Evidence Management
Upload evidence file to a case (multipart/form-data)
| Parameter | Type | Description |
|---|---|---|
file |
File | Evidence file (max 100MB) |
caseId |
String | Target case ID |
description |
String | Evidence description |
Download evidence file with watermark
Uses POST instead of GET because the request includes a body payload with user wallet address for watermarking and audit logging purposes.
Export multiple evidence files as ZIP archive
Verify file integrity using blockchain hash
User Management
Get user information by wallet address
Update user profile information
Admin Endpoints
These endpoints require administrator privileges.
List all registered users
Create a new user account
Create a new admin user
Deactivate a user account
Uses POST instead of DELETE because the request requires a body payload with adminWallet and targetWallet for authorization verification.
System
Health check endpoint
Get user notifications by wallet address
Supported File Formats
| Category | Formats | Max Size |
|---|---|---|
| Images | JPEG, PNG, GIF | 100MB |
| Videos | MP4, AVI, MOV | 100MB |
| Audio | MP3, WAV, M4A | 100MB |
| Documents | PDF, DOC, DOCX, TXT | 100MB |
| Archives | ZIP, RAR | 100MB |