API Docs

GET /api/v1/proof/{hash}

Retrieve proof details by SHA-256 hash. Requires API key.

Headers
HeaderRequiredDescription
X-API-KeyYesYour API key
Response
{
  "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "certificate": "MIIGnAYJKo...",
  "otsProof": "AE9wZW5UaW1l...",
  "otsStatus": "COMPLETE",
  "otsBlockTime": 1754500000,
  "otsBlockHeight": 874123,
  "filename": "document.pdf",
  "description": "Q1 financial report",
  "timestamp": "2026-04-03T12:00:00Z"
}
Response Fields
FieldTypeDescription
hashstringSHA-256 hex
certificatestringBase64-encoded RFC 3161 token (.tsr)
otsProofstringBase64-encoded OpenTimestamps proof. Complete proof preferred; pending proof returned before Bitcoin confirmation. null if OTS anchoring was skipped or failed.
otsStatusstringPENDING / COMPLETE / FAILED / null
otsBlockTimenumberUnix seconds of the Bitcoin block that anchored the proof. null until confirmation.
otsBlockHeightnumberBitcoin block height. null until confirmation.
filenamestringOriginal filename (optional, nullable)
descriptionstringUser-provided description (optional, nullable)
timestampstringRFC 3161 genTime (UTC ISO-8601)
Error Codes
StatusCondition
400Invalid hash format
401Missing or invalid API key
404Proof not found
429Rate limit exceeded
cURL Example
curl https://proofintegrity.net/api/v1/proof/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 \
  -H "X-API-Key: your-api-key-here"