Skip to content
Longplay
Docs
Browse docs / All operations
On this page

All operations

Every HTTP operation with its path, credential, scope, SDK methods and purpose, plus Funnel commands and public endpoints.

Markdown
API v1Updated

Summary#

95 ordinary operations. There are also 35 Funnel commands and 12 public configuration and experiment endpoints. Every operation runs under its credential, scope and App/environment checks.

  • Open an operation for its request example, body parameters, response fields and SDK methods.
  • In the JavaScript SDK, Server Key operations are on createLongplayServer and Customer Token operations on the browser createLongplay. Most methods share the operation name, except: bindPushInstallation → push.sync, readPushInstallation → push.read, updatePushAddress → push.sync, readMessagingPreference → messaging.preference, setMessagingPreference → messaging.setPreference, createCustomer → getOrCreateCustomer, createSession → createCustomerSession, refreshSession → session.refresh, revokeSessions → revokeCustomerSessions, grantOffer → claimCoupon, getFeatures → features, evaluateFeatures → features, trackEvents → track / flush.

Customer messaging and installations#

Customers, Guests and Sessions#

Entitlements and product presentation#

Balances, usage and ledger#

Seats#

Subscriptions and payments#

Invoices, refunds and billing#

Coupons, rewards and referrals#

Feature flags, evaluation and events#

Native purchases#

AI pricing#

CLI and CI#

Funnel commands#

Commands go to POST /api/v1/funnels and are selected by the JSON operation field; process commands go to POST /api/v1/funnel-processes with contract: "funnel-process/1". Starting a Version that has a Paywall requires parameters.commerce (provider, currency); otherwise the request returns 400 and no Run is created. Server Key starts and server commands need funnels:run and sessions:create; creating a Customer by externalUserId also needs customers:write. 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.

Funnel commands
operationEndpointCredentialPurpose
start/api/v1/funnelsServer Key or Customer TokenStart a Run at a fixed Funnel Version and return its Run Token.
get/api/v1/funnelsRun Token + original identity proofRead the Run and its current instruction.
resume/api/v1/funnelsRun Token + original identity proofResume the original Run, keeping accepted work and waits.
submit/api/v1/funnelsRun Token + original identity proofSubmit input for the current screen.
back/api/v1/funnelsRun Token + original identity proofGo back where the position allows it.
shown/api/v1/funnelsRun Token + original identity proofRecord that a screen was actually displayed.
close/api/v1/funnelsRun Token + original identity proofClose the interaction under the Run's stop rules.
commit_segment/api/v1/funnelsRun Token + original identity proofLocal advance signal: names the parked position, policy revision and configuration generation; the server calculates and accepts the pure path.
review/api/v1/funnelsRun Token + original identity proofRead a historical presentation or receipt without resuming.
decide/api/v1/funnelsServer KeyRequest a backend decision for a Customer and attributes.
read_decision/api/v1/funnelsServer KeyRead the original decision by decisionId.
evaluate_decision/api/v1/funnelsServer KeyReport a pure evaluation for the original decision.
feature_config/api/v1/funnelsServer KeyRead Feature configuration authorized for download.
commit_decision_segment/api/v1/funnelsServer KeyCommit the original decision's Local steps.
segment_configuration/api/v1/funnelsServer KeyRead evaluation segments of a published Version.
configuration/api/v1/funnelsServer KeyRead Funnel configuration to check Version and evaluation mode.
local_configuration/api/v1/funnelsServer KeyRead the configuration used by the Local SDK.
report_used/api/v1/funnelsServer KeyRecord caller-reported adoption, deduplicated by eventId.
campaign_decide/api/v1/funnelsServer KeyCampaign decision.
campaign_start/api/v1/funnelsServer KeyStart a Campaign under a cooldown, or return suppression.
renew_run/api/v1/funnelsServer KeyRotate a Run Token.
signal/api/v1/funnelsServer KeySubmit an external event to a waiting Run.
read_results/api/v1/funnelsServer KeyRead a Run's accepted results.
resolve_screen/api/v1/funnelsServer Key or identified Customer TokenResolve resource state and coupon summaries for a Local screen.
entry_start/api/v1/funnelsCustomer TokenStart a published IAM entry for the current Customer. The server selects the Funnel and parameters, rejects client overrides and accepts no commerce. A frequency or in-progress refusal returns retryAt.
page_experiments/api/v1/funnelsRun Token + original identity proofRead page experiment assignments from the Run's completed Splits (at most 20) and idempotently record displayed receipts. The server never rerolls.
describe/api/v1/funnel-processesServer KeyRead process capability and the issuing Key identity without creating a Guest or Run.
start/api/v1/funnel-processesThe process's original Server KeyAtomically create or reuse the Guest and start a process; a signed-in source creates an authenticated binding. Persist source and requestId before dispatch; an exact retry returns the same Run.
entry_start/api/v1/funnel-processesThe process's original Server KeyStart a published process IAM entry under normal admission; a refusal rolls back Guest creation and the start together.
bind_customer/api/v1/funnel-processesOriginal Server Key + Run Token + Guest proofBind the same Run to the verified merchant user ID without restarting the Run or merging Customer assets.
binding_status/api/v1/funnel-processesOriginal Server Key + Run Token (Guest proof before acceptance)After a lost reply, read whether the binding committed: bound, not_accepted or conflict. It never claims another identity.
get/api/v1/funnel-processesRun Token + current Customer TokenRead the Run within the same process and authentication boundary.
review/api/v1/funnel-processesRun Token + current Customer TokenRead original presentations and command facts under the current identity without replaying accepted Guest steps.
command/api/v1/funnel-processesRun Token + current Customer TokenWrap resume, submit, back, shown, close or commit_segment with the expected binding. A changed identity returns IDENTITY_CONTEXT_CHANGED before acceptance.
page_experiments/api/v1/funnel-processesRun Token + current Customer TokenDeliver assignments from accepted Split receipts; login neither rerolls nor duplicates exposures.

Funnel commands

  • start

    Endpoint
    /api/v1/funnels
    Credential
    Server Key or Customer Token
    Purpose
    Start a Run at a fixed Funnel Version and return its Run Token.
  • get

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Read the Run and its current instruction.
  • resume

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Resume the original Run, keeping accepted work and waits.
  • submit

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Submit input for the current screen.
  • back

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Go back where the position allows it.
  • shown

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Record that a screen was actually displayed.
  • close

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Close the interaction under the Run's stop rules.
  • commit_segment

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Local advance signal: names the parked position, policy revision and configuration generation; the server calculates and accepts the pure path.
  • review

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Read a historical presentation or receipt without resuming.
  • decide

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Request a backend decision for a Customer and attributes.
  • read_decision

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Read the original decision by decisionId.
  • evaluate_decision

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Report a pure evaluation for the original decision.
  • feature_config

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Read Feature configuration authorized for download.
  • commit_decision_segment

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Commit the original decision's Local steps.
  • segment_configuration

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Read evaluation segments of a published Version.
  • configuration

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Read Funnel configuration to check Version and evaluation mode.
  • local_configuration

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Read the configuration used by the Local SDK.
  • report_used

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Record caller-reported adoption, deduplicated by eventId.
  • campaign_decide

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Campaign decision.
  • campaign_start

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Start a Campaign under a cooldown, or return suppression.
  • renew_run

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Rotate a Run Token.
  • signal

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Submit an external event to a waiting Run.
  • read_results

    Endpoint
    /api/v1/funnels
    Credential
    Server Key
    Purpose
    Read a Run's accepted results.
  • resolve_screen

    Endpoint
    /api/v1/funnels
    Credential
    Server Key or identified Customer Token
    Purpose
    Resolve resource state and coupon summaries for a Local screen.
  • entry_start

    Endpoint
    /api/v1/funnels
    Credential
    Customer Token
    Purpose
    Start a published IAM entry for the current Customer. The server selects the Funnel and parameters, rejects client overrides and accepts no commerce. A frequency or in-progress refusal returns retryAt.
  • page_experiments

    Endpoint
    /api/v1/funnels
    Credential
    Run Token + original identity proof
    Purpose
    Read page experiment assignments from the Run's completed Splits (at most 20) and idempotently record displayed receipts. The server never rerolls.
  • describe

    Endpoint
    /api/v1/funnel-processes
    Credential
    Server Key
    Purpose
    Read process capability and the issuing Key identity without creating a Guest or Run.
  • start

    Endpoint
    /api/v1/funnel-processes
    Credential
    The process's original Server Key
    Purpose
    Atomically create or reuse the Guest and start a process; a signed-in source creates an authenticated binding. Persist source and requestId before dispatch; an exact retry returns the same Run.
  • entry_start

    Endpoint
    /api/v1/funnel-processes
    Credential
    The process's original Server Key
    Purpose
    Start a published process IAM entry under normal admission; a refusal rolls back Guest creation and the start together.
  • bind_customer

    Endpoint
    /api/v1/funnel-processes
    Credential
    Original Server Key + Run Token + Guest proof
    Purpose
    Bind the same Run to the verified merchant user ID without restarting the Run or merging Customer assets.
  • binding_status

    Endpoint
    /api/v1/funnel-processes
    Credential
    Original Server Key + Run Token (Guest proof before acceptance)
    Purpose
    After a lost reply, read whether the binding committed: bound, not_accepted or conflict. It never claims another identity.
  • get

    Endpoint
    /api/v1/funnel-processes
    Credential
    Run Token + current Customer Token
    Purpose
    Read the Run within the same process and authentication boundary.
  • review

    Endpoint
    /api/v1/funnel-processes
    Credential
    Run Token + current Customer Token
    Purpose
    Read original presentations and command facts under the current identity without replaying accepted Guest steps.
  • command

    Endpoint
    /api/v1/funnel-processes
    Credential
    Run Token + current Customer Token
    Purpose
    Wrap resume, submit, back, shown, close or commit_segment with the expected binding. A changed identity returns IDENTITY_CONTEXT_CHANGED before acceptance.
  • page_experiments

    Endpoint
    /api/v1/funnel-processes
    Credential
    Run Token + current Customer Token
    Purpose
    Deliver assignments from accepted Split receipts; login neither rerolls nor duplicates exposures.

Related: Funnel decision HTTP

Public configuration and website experiments#

Endpoints outside the SDK operation set (no Server Key; push and messaging endpoints require the device credential, recovery proof, provider signature or unsubscribe token described)
MethodPathPurpose
GET/api/v1/configuration/{environmentId}Published SDK configuration manifest; supports ETag/304.
GET/api/v1/configuration/{environmentId}/artifacts/{digest}A public configuration artifact referenced by the manifest, verified by SHA-256.
GET/api/v1/page-experiments/{environmentId}URL redirect experiment configuration.
POST/api/v1/page-experiments/{environmentId}/eventsURL redirect experiment exposures and events; Origin is checked.
GET/api/v1/visual-experiments/{environmentId}Visual experiment configuration.
POST/api/v1/visual-experiments/{environmentId}/eventsVisual experiment exposures and events; Origin is checked.
POST/api/v1/push/installations/detachDetach this device using its installation credential.
POST/api/v1/push/installations/recovery/requestRequest installation credential recovery with device proof.
POST/api/v1/push/installations/recovery/confirmVerify recovery proof and confirm the installation credential.
POST/api/v1/messaging/events/{connectionId}/{attemptId?}Receive and verify messaging provider receipts.
GET, POST/api/v1/messaging/unsubscribeRead or confirm channel consent through a verified unsubscribe link.
GET/api/v1/funnel-entries/{environmentId}Published IAM Funnel entry configuration; requires one iam query value, and a supplied Origin must match exactly. Responses are no-store.

Endpoints outside the SDK operation set (no Server Key; push and messaging endpoints require the device credential, recovery proof, provider signature or unsubscribe token described)

  • GET

    Path
    /api/v1/configuration/{environmentId}
    Purpose
    Published SDK configuration manifest; supports ETag/304.
  • GET

    Path
    /api/v1/configuration/{environmentId}/artifacts/{digest}
    Purpose
    A public configuration artifact referenced by the manifest, verified by SHA-256.
  • GET

    Path
    /api/v1/page-experiments/{environmentId}
    Purpose
    URL redirect experiment configuration.
  • POST

    Path
    /api/v1/page-experiments/{environmentId}/events
    Purpose
    URL redirect experiment exposures and events; Origin is checked.
  • GET

    Path
    /api/v1/visual-experiments/{environmentId}
    Purpose
    Visual experiment configuration.
  • POST

    Path
    /api/v1/visual-experiments/{environmentId}/events
    Purpose
    Visual experiment exposures and events; Origin is checked.
  • POST

    Path
    /api/v1/push/installations/detach
    Purpose
    Detach this device using its installation credential.
  • POST

    Path
    /api/v1/push/installations/recovery/request
    Purpose
    Request installation credential recovery with device proof.
  • POST

    Path
    /api/v1/push/installations/recovery/confirm
    Purpose
    Verify recovery proof and confirm the installation credential.
  • POST

    Path
    /api/v1/messaging/events/{connectionId}/{attemptId?}
    Purpose
    Receive and verify messaging provider receipts.
  • GET, POST

    Path
    /api/v1/messaging/unsubscribe
    Purpose
    Read or confirm channel consent through a verified unsubscribe link.
  • GET

    Path
    /api/v1/funnel-entries/{environmentId}
    Purpose
    Published IAM Funnel entry configuration; requires one iam query value, and a supplied Origin must match exactly. Responses are no-store.