Skip to main content

API Workflow

The Predicate API evaluates transactions against your configured policies and returns cryptographic attestations for onchain verification.
  1. Submit transaction details to /v1/task
  2. Receive a signed PredicateMessage if compliant
  3. Embed the attestation in your transaction calldata
  4. Your smart contract verifies the attestation using PredicateClient.sol

Request Format

Response Format

Authentication

Include your API key in the request header:
Generate keys in the Predicate Dashboard.

Base URLs

  • Production: https://api.predicate.io/v1
  • Staging: https://staging.api.predicate.io/v1