Skip to main content

Verify Your Quote in 5 Minutes

You have an attestation quote and want to verify it using Phala Cloud’s API. This guide gets you working fast.

Before You Start

Need to generate a quote first? Check out:

What You Need

Either:
  • Binary quote file (2-8KB, usually quote.bin)
  • Hex string (from APIs or logs, like "0x040002000...")

Choose Your Method

Method 1: Binary File Upload
curl -X POST "https://cloud-api.phala.network/api/v1/attestations/verify" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@quote.bin"
Method 2: Hex String
curl -X POST "https://cloud-api.phala.network/api/v1/attestations/verify" \
  -H "Content-Type: application/json" \
  -d '{"hex": "0x040002000..."}'

Check the Response

Both methods return the same verification result:
{
  "success": true,
  "quote": {
    "verified": true,
    "header": { "tee_type": "TEE_TDX" }
  },
  "checksum": "9aa049fb9049d4f582ca316206f7cf34ee185c2b5b63370a518921432385b81a"
}
🎉 Success! Your quote is verified. The checksum is your quote’s unique ID.

Use Your Checksum

Once the attestation report is accepted, you can: Share verification proof:
https://proof.t16z.com/reports/9aa049fb9049d4f582ca316206f7cf34ee185c2b5b63370a518921432385b81a
Retrieve quote details:
curl "https://cloud-api.phala.network/api/v1/attestations/view/9aa049fb9049d4f582ca316206f7cf34ee185c2b5b63370a518921432385b81a"

Next Steps

Quick Troubleshooting

  • File not found → Check your file path
  • Invalid hex → Remove spaces and check for valid hex characters
  • Verification failed → Development platforms may lack Intel certificates
For detailed error handling, see the API reference.
I