REST API
POST /verify
Verify Web Proof
Under Development: This API is currently in development. Documentation and endpoints may change. For production use, please contact our team.
POST /api/v0/verify
Verify a previously generated Web Proof. The verification process:
- Verifies the HTTPS transcript - Confirms the integrity of the recorded HTTP request/response data
- Verifies the Notary's signature - Validates the cryptographic signature from the trusted notary service
- Confirms data origin - Ensures the data comes from the expected domain specified in the original request
- SSL certificate validation - Verifies the server's SSL certificate and its complete chain of authority
- Extracts plain text transcript - Retrieves the verified HTTP request/response data for further processing
- Automatic decoding - Handles chunked transfer encoding and gzip compression automatically
- Raw transcript access - Provides hex-encoded raw transcript bytes for verification
Request Body Parameters
serialized_web_proof
: Serialized Web Proof string to verify. Should be thepresentationJson
field from a previous/api/v0/prove
response
Response Body
success
: Boolean indicating whether the proof verification was successfulserverDomain
: The domain name of the server that was contactednotaryKeyFingerprint
: Fingerprint of the notary's public key used for verificationrequest
: Parsed and decoded HTTP requestheaders
: Array of [name, value] pairsbody
: Decoded UTF-8 string (automatically decoded from chunked/gzip encoding)method
: HTTP methodraw
: Raw transcript bytes as hex-encoded stringparsingSuccess
: Boolean indicating if HTTP parsing was successfulparsingError
: Parsing error message (only present if parsing failed)
response
: Parsed and decoded HTTP responseheaders
: Array of [name, value] pairsbody
: Decoded UTF-8 string (automatically decoded from chunked/gzip encoding)status
: HTTP status coderaw
: Raw transcript bytes as hex-encoded stringparsingSuccess
: Boolean indicating if HTTP parsing was successfulparsingError
: Parsing error message (only present if parsing failed)
error
: Error message if verification failed (only present on failure)
Example Response
{
"success": true,
"serverDomain": "api.example.com",
"notaryKeyFingerprint": "abc123def456",
"request": {
"method": "POST",
"headers": [
["host", "api.example.com"],
["content-type", "application/json"]
],
"body": "{\"data\": \"test\"}",
"raw": "504f5354202f6170692f6461",
"parsingSuccess": true
},
"response": {
"status": 200,
"headers": [
["content-type", "application/json"]
],
"body": "{\"hello\": \"world\"}",
"raw": "485454502f312e312032303",
"parsingSuccess": true
}
}