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} />;
}
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.
TS SDK
TypeScript SDK Typed client for auth, gamification, analytics and more.
Re Hooks
React Provider plus read and mutation hooks for every feature.
RN Plugin
React Native Embedded player with callbacks and status bar styling.
Fl Plugin
Flutter Embed the player experience in Flutter apps.
An Bridge
Android Native bridge for the embedded plugin.
iOS Bridge
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
1 Create project In the admin panel 1 Create project In the admin panel 1 Create project In the admin panel 1 Create project In the admin panel 1 Create project In the admin panel 1 Create project In the admin panel 2 Get API key Settings → Integration 2 Get API key Settings → Integration 2 Get API key Settings → Integration 2 Get API key Settings → Integration 2 Get API key Settings → Integration 2 Get API key Settings → Integration 3 Install / integrate SDK or plugin 3 Install / integrate SDK or plugin 3 Install / integrate SDK or plugin 3 Install / integrate SDK or plugin 3 Install / integrate SDK or plugin 3 Install / integrate SDK or plugin 4 Authenticate player Guest or your login 4 Authenticate player Guest or your login 4 Authenticate player Guest or your login 4 Authenticate player Guest or your login 4 Authenticate player Guest or your login 4 Authenticate player Guest or your login 5 Send events From your app 5 Send events From your app 5 Send events From your app 5 Send events From your app 5 Send events From your app 5 Send events From your app 6 Display experiences Hooks or plugin 6 Display experiences Hooks or plugin 6 Display experiences Hooks or plugin 6 Display experiences Hooks or plugin 6 Display experiences Hooks or plugin 6 Display experiences Hooks or plugin
Panel .env terminal auth.ts events.ts Missions.tsx Step 1 of 6 Step 2 of 6 Step 3 of 6 Step 4 of 6 Step 5 of 6 Step 6 of 6
// Admin panel → Projects → New project
// Name: Demo Bank App
// Platforms: iOS · Android · Web
// Languages: EN · TR · DE
PLAYTICS_PROJECT_KEY=YOUR_API_KEY
$ npm install @moralabs-dev/platform-client-sdk
# or add the embedded plugin package
# for iOS, Android, Flutter or React Native
const playtics = new Playtics({ projectKey });
await playtics. loginWithPlatformToken (token);
// or: await playtics.loginAsGuest();
await playtics. sendAnalytics ({
eventType: "transfer_done" ,
payload: { amount: 250 }
});
const { data } = useChallenge ();
const badges = useBadge ();
const join = useJoinLiveops ();
Create a project and choose platforms and languages.
Copy your API key from the integration screen.
Packages are published to GitHub Packages under @moralabs-dev.
Use your own sign-in token or start players as guests.
Events power missions, analytics, Forge and Pulse.
Show missions, badges and events in your own UI.
API reference
Clear APIs for every mechanic Versioned REST APIs with Swagger docs for players, gamification, content, notifications and analytics.
Authentication Players Attributes Achievements & badges Leaderboards Challenges & LiveOps Rewards & inventory Notifications Analytics & reports
GET /gamification/user/leaderboard?key={key}
Returns a leaderboard with the current player's rank and the leaders.
PARAMETERS
key string Leaderboard key, e.g. weekly
Authorization header Bearer player access token
Accept-Language header Response 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
close The player closed the experience.
linkClicked A link in the experience was tapped — open it in your app.
statusBar Update 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 APP Your app iOS, Android, web, Flutter or React Native. app events
02 · CLIENT SDK or plugin Handles auth, tokens, locale and UI. playtics.login()
03 · PLATFORM Playtics APIs Auth, core, gamification, analytics and market services, plus Forge & Pulse. /v1/…
04 · OPERATIONS Admin panel & webhooks No-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.
© 2026 Playtics by Moralabs. All rights reserved. Language English Türkçe Deutsch Español Français العربية Privacy Terms
We use analytics cookies to understand how visitors use this site. Do you allow them?
Decline Accept