Skip to main content
POST
This endpoint requires both your partner API key in the x-api-key header and a Bearer token in the Authorization header. The Bearer token is the user access token obtained after a successful Benji Connect SDK onSuccess callback. See Exchange Token and API Authentication. Partner API keys can be generated through the dashboard.
string
required
Your partner API key, generated through the dashboard. Required together with Authorization.
string
required
A Bearer user access token obtained after the Benji Connect SDK onSuccess callback. Required together with x-api-key. See Exchange Token.
string
required
The UUID of the partnership to evaluate. Only active campaigns that belong to this partnership are considered.
integer
required
The Benji Platform identifier of the user to evaluate eligibility for.
integer
Restricts the evaluation to one campaign type. If omitted, campaigns of every type are evaluated.
object
Additional context used to evaluate the campaign conditions. For REDEEM perk flows, include the offers you want to evaluate.
string
Optional coupon code to validate against the evaluated REDEEM perk offers. The result of the check is returned in coupon_valid.
integer
Restricts the evaluation to campaign flows that use this trigger.
integer
The ID of an existing trigger event. When sent together with trigger_id, the evaluation uses the transaction context stored on that trigger event.
object
Optional user payload, in the same shape as the Get User response. When provided, Benji does not look the user up again before evaluating eligibility.

Response

array
required
One entry per evaluated campaign flow (or per offer, for REDEEM perk flows). An empty array is returned when the partnership does not exist or has no live campaign flows that match the request.
Evaluating eligibility for a REDEEM perk offer issues a new redemption_token for every eligible offer. Each token is single-use and lasts 600 seconds (10 minutes). Use it with Add Item to Cart or Redeem by Token. Request eligibility again if a token expires or has already been consumed.