Skip to main content
Integrate the Predicate API into your backend to evaluate users against your configured policy. The API returns a compliance result and a signed attestation.
1

Backend Integration

Call the Predicate API from your server using your API key.
2

Handle the Response

Use is_compliant to gate access in your application.

Backend Integration

Store your API key on the server and call the Predicate API. Use the verification_hash from your project and the user’s wallet address.

Request Parameters


Response

Compliant

Non-Compliant

Some policies include a reason object on non-compliant responses with details about why the evaluation failed. Both the code and message values are fully customizable when authoring a policy.

Supported Chains


Next Steps

Your offchain integration is complete. Your application can now evaluate compliance for any user. When you’re ready to enforce compliance at the smart contract level, continue to Onchain Enforcement.