Log in a player and read/write title data using PlayFab

domain: playfab.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a title in PlayFab Game Manager and note the Title ID; optionally configure an authentication provider (email/password, device ID, platform-specific).
  2. Call the LoginWithCustomID (or platform-appropriate login) REST endpoint at https://<TITLEID>.playfabapi.com/Client/LoginWithCustomID with a JSON body containing TitleId, CustomId (a stable per-player identifier), and CreateAccount: true to auto-register new players.
  3. The response includes a SessionTicket (use as X-Authorization header for subsequent Client API calls) and a PlayFabId unique to this player within the title.
  4. Read per-player data with POST /Client/GetUserData, specifying the Keys array to retrieve only needed fields; omitting Keys returns all player data.
  5. Write per-player data with POST /Client/UpdateUserData supplying a Data object of key/value string pairs and a Permission field (Private or Public).
  6. For data that should apply to all players (game config, constants), use Title Data via the Admin or Server API: /Admin/GetTitleData and /Admin/SetTitleData using your developer secret key, never the client SessionTicket.

Known gotchas

Related routes

Automate a PlayFab title with a PlayStream Rule that reacts to a custom client event in real time
api.playfab.com · 5 steps · unrated
Configure and query PlayFab Economy v2 catalog items and manage player inventory
learn.microsoft.com/gaming/playfab · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans