Copy the Service URL (API origin) and App ID (App UUID) from Integration scope at the top of Integrations → Integration overview in the Console. Use the UUID of the published target Funnel. The API origin does not include /api/v1.
Publish the target Funnel in Console with Remote evaluation. Server decisions support Remote mode only.
The Server Key needs customers:write, sessions:create, funnels:run.
A Run uses the permissions of the Key that started it: Paywall and Offering steps need entitlements:read; buying from a Paywall also needs billing:write (quote, confirm and cancel) and billing:read (settlement and recovery reads); claiming or showing Coupons needs offers:resolve.
In the Console's Create Key dialog, "Use Funnel start permissions" selects all of them: funnels:run, sessions:create, customers:write, entitlements:read, offers:resolve, billing:read, billing:write.
Use a user ID your backend has verified as externalUserId.
Pass the business attributes this decision needs in attributes; conditions in the Funnel can read them.
When the user acts on the decision, for example by subscribing, call decisions.reportUsed (wrapped as reportAdoption in the example) to record it for reporting. Save the eventId and reuse it on retries.
Related SDK methods
Method
Return and recovery
campaign.decide(input)
Waits for completion and returns FunnelDecision. Replay the original requestId and full input after an unknown outcome.
decisions.read(decisionId)
Reads a pending, completed, or failed accepted decision.
decisions.reportUsed(input)
Returns a caller_reported receipt. Reuse the eventId and fact on retry.
Related SDK methods
campaign.decide(input)
Return and recovery
Waits for completion and returns FunnelDecision. Replay the original requestId and full input after an unknown outcome.
decisions.read(decisionId)
Return and recovery
Reads a pending, completed, or failed accepted decision.
decisions.reportUsed(input)
Return and recovery
Returns a caller_reported receipt. Reuse the eventId and fact on retry.