Skip to content
Longplay
Docs
Browse docs / Version support

Version support

SDK protocol compatibility and support periods.

Markdown
API v1Updated

Install the latest stable release#

Resolve the latest stable SDK and lock the result before connecting to a protocol 0.10 service. Other protocols and headerless requests are refused; changing the header does not upgrade an older SDK. Use an explicit version and its lockfiles for historical installs and rollback.

When upgrading from 0.9: issuance and Guest resumption return a complete Access/Refresh credential pair instead of a customerToken field. Your backend returns the session to the verified user, and the browser calls identify(session) to enable automatic refresh. A bare Access Token still works with host-managed credential renewal.

Remove backend renewCustomerSession calls. The SDK sends its Refresh Token to /api/v1/customer-sessions/refresh; do not automatically replay purchases, usage or other business writes after a 401. Revoking a session invalidates its Access and Refresh credentials. See the Customer session guide for the complete integration example.

Related: Customer sessions·Install SDKs

Event recording#

Event recording with an official SDK requires at least 0.10.20. POST /api/v1/events accepts only typed events with kind (custom, experiment_exposure or feature_usage); earlier SDKs cannot record events. Direct HTTP clients must implement the current typed request and per-event result contract and do not need an SDK.

Related: Track events API

Current SDK protocol#

Longplay supports only protocol 0.10. SDK and server protocols must match; update both when upgrading. Earlier protocols have no adapter, compatibility mode or support window.

Identify the request protocol#

HTTP requests must send X-Indiana-Protocol: 0.10. The SDK supplies it and X-Indiana-SDK-Version automatically; both must agree. The /api/v1 path does not select a protocol, and version headers grant no authority.

Requests with a missing version header or another protocol are refused before business execution. X-Indiana-Protocol identifies the current response protocol; X-Indiana-Supported-Protocols lists only the current protocol.

Protocol errors
HTTPcodeAction
400INVALID_PROTOCOL_VERSIONCorrect malformed or inconsistent SDK/protocol headers.
400UNSUPPORTED_PROTOCOL_VERSIONUse the current protocol and check the deployment.

Protocol errors

  • 400

    code
    INVALID_PROTOCOL_VERSION
    Action
    Correct malformed or inconsistent SDK/protocol headers.
  • 400

    code
    UNSUPPORTED_PROTOCOL_VERSION
    Action
    Use the current protocol and check the deployment.