Skip to content
Longplay
Docs
Browse docs / Guides

Guides

Integrate by task, from initial setup to customer identity, monetization, messaging and Funnels.

Markdown
API v1Updated

Getting started#

Quickstart#

Install the SDK, create a Customer, check access and report usage.

Install SDKs and CLI#

Install the JavaScript, Python and Go SDKs and the Longplay CLI, check runtimes, and make a first request.

Integrate with your agent#

Give your agent the official instructions to integrate Longplay and verify the result.

Platform and capability support#

SDK platforms, credentials, permissions, methods and implementation coverage.

Create a Server Key#

Create a backend credential for one App and environment.

Environments#

API addresses, Sandbox and Live, and the go-live checklist.

Testing#

Test payments, notifications, retries and idempotency in Sandbox.

Version support#

SDK protocol compatibility and support periods.

Identity and entitlements#

Customers and sessions#

Create and update Customers, issue Customer Tokens, and handle Guests and claims after login.

Entitlements, balances and usage#

Check access, report usage, manage balances and Entities, and bill AI calls.

Payments and growth#

Connect Stripe#

Configure a restricted API key, webhook and API version, verify and activate credentials, and complete a test purchase.

Payments, subscriptions and billing#

Quote and confirm purchases, Paywalls, subscription changes, trials, refunds, invoices and native purchases.

Merchant execution#

Implement the record_only merchant bridge: requests, responses, errors, result reporting and purchase recovery.

Coupons, rewards and referrals#

Redeem, claim and grant coupons, create referral codes and redeem rewards.

Feature flags, experiments and events#

Feature flags and experiments, event collection, URL redirect and visual experiments.

Messaging and Funnels#

Customer messaging#

Connect merchant channels, record Customer consent, send Email, SMS, Voice or Push and read receipts.

Run Funnels#

Start Runs from your backend and display them in the browser, and use Campaigns, external signals and Funnel commands.

Funnel server decision guide#

Call a Remote Funnel from a trusted backend with the SDK, handle pending results and retries, and report adoption.

Notifications and webhooks#

Receive signed purchase and usage notifications, verify signatures, and answer Funnel external task callbacks.