DEVELOPER GUIDE
REST quickstart
Keep the credential on your server. Begin with a Passport read, then evaluate one candidate under an explicit action ceiling.
Integration steps
- Create an account, enroll a private Passport from five reviewed cultural identities and issue a credential in the workspace.
- Give the credential only the scopes your application needs: PASSPORT_READ, TASTE_EVALUATE and, when needed, RECEIPT_READ.
- Use a new idempotency key for a new request. An identical retry keeps its original input and captured result; reusing a key with different input is an error.
- Branch explicitly on ALLOW, ASK, REJECT and UNAVAILABLE. A preference decision never authorizes payment, booking, messaging or account operations.
curl https://tastepolicy.vercel.app/api/v1/passport \
-H "Authorization: Bearer $TASTEPOLICY_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"passportRef":"YOUR_PASSPORT_REF"}'