POST
/documents/upload
Upload a document for verification
Parameters
| Parameter |
Type |
Required |
Description |
| file |
File |
Required |
Document file (PDF, JPG, PNG) |
| document_type |
String |
Required |
Type of document (degree, certificate, transcript) |
| issuer_id |
String |
Optional |
ID of the issuing institution |
| metadata |
Object |
Optional |
Additional document metadata |
Example Request
curl -X POST "https://api.verifychain.us/v1/documents/upload" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@degree.pdf" \
-F "document_type=degree" \
-F "issuer_id=university_123"
Example Response
{
"success": true,
"document_id": "doc_abc123xyz",
"verification_url": "https://verify.verifychain.us/doc_abc123xyz",
"blockchain_hash": "0x8f14e45fceea167a5a36dedd4bea2543",
"status": "pending_verification",
"created_at": "2024-01-15T10:30:00Z"
}
GET
/documents/{document_id}/verify
Verify the authenticity of a document
Example Response
{
"success": true,
"document_id": "doc_abc123xyz",
"verification_status": "verified",
"blockchain_confirmed": true,
"issuer_verified": true,
"tamper_detected": false,
"verification_details": {
"issued_date": "2023-06-15",
"issuer": "Stanford University",
"recipient": "John Doe",
"document_type": "Bachelor's Degree"
}
}