Developers

Build with Playtics.

A TypeScript SDK with React hooks, an embeddable plugin for native apps and a full API — so you can ship gamification in days and let your business team run it.

App.tsx
import {​
PlayticsProvider,​
useLeaderboard,​
} from "@moralabs-dev/platform-client-sdk";​
​
export function App() {​
return (​
<PlayticsProvider projectKey="YOUR_API_KEY" locale="en">​
<WeeklyBoard />​
</PlayticsProvider>​
);​
}​
​
function WeeklyBoard() {​
const { data } = useLeaderboard("weekly");​
return <Board rows={data?.leaders} />;​
}​
Game result screen with the points earned in the Playtics app
Integration paths

Pick the path that fits your stack

Build your own UI with the SDK, or drop in the ready player experience with the plugin. Feature coverage varies by platform.

TSSDK

TypeScript SDK

Typed client for auth, gamification, analytics and more.

ReHooks

React

Provider plus read and mutation hooks for every feature.

RNPlugin

React Native

Embedded player with callbacks and status bar styling.

FlPlugin

Flutter

Embed the player experience in Flutter apps.

AnBridge

Android

Native bridge for the embedded plugin.

iOSBridge

iOS

Native bridge for the embedded plugin.

{ }API

REST API

Versioned APIs with Swagger docs for server-side use.

Quick start

Six steps to your first mission

PanelStep 1 of 6
// Admin panel → Projects → New project​
// Name: Demo Bank App​
// Platforms: iOS · Android · Web​
// Languages: EN · TR · DE​
Create a project and choose platforms and languages.
API reference

Clear APIs for every mechanic

Versioned REST APIs with Swagger docs for players, gamification, content, notifications and analytics.

GET/gamification/user/leaderboard?key={key}

Returns a leaderboard with the current player's rank and the leaders.

PARAMETERS
keystringLeaderboard key, e.g. weekly
AuthorizationheaderBearer player access token
Accept-LanguageheaderResponse language
RESPONSE · 200
{​
"data": {​
"leaderboard": { "key": "weekly", "title": "Weekly Challenge" },​
"me": { "username": "mia", "rank": 3, "score": 2402 },​
"leaders": [{ "username": "deniz", "rank": 1, "score": 3120 }]​
},​
"success": true​
}​
PLUGIN → HOST APP EVENTS

Talk to your app with simple messages

closeThe player closed the experience.
linkClickedA link in the experience was tapped — open it in your app.
statusBarUpdate the status bar style to match.
EXAMPLE · ACTION CALLBACK
<PlayticsPlugin​
apiKey="YOUR_API_KEY"​
token={userToken}​
locale="en"​
onAction={(message) => {​
handlePlayticsAction(message);​
}}​
onClose={() => navigation.goBack()}​
/>​
Integration architecture

Architecture at a glance

01 · HOST APPYour appiOS, Android, web, Flutter or React Native.app events
02 · CLIENTSDK or pluginHandles auth, tokens, locale and UI.playtics.login()
03 · PLATFORMPlaytics APIsAuth, core, gamification, analytics and market services, plus Forge & Pulse./v1/…
04 · OPERATIONSAdmin panel & webhooksNo-code admin, triggers, functions and webhooks back to your systems.webhook → your API

Ready to build?

Get an API key and talk to our engineers about your integration.