Skip to main content
Integrate the Predicate API into your backend to evaluate users against your configured policy. The API returns a compliance result you can use to gate access.
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

Interface-only requests (using verification_hash) return the compliance result without a signed attestation, because there is no contract to verify it onchain. The attestation fields are returned empty. To receive a signed attestation, call the API with your contract address in to, as described in Submit Attestations.

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 API 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 Deploy Your Contract.