Developer Center
When you integrate with Fizzplay, players log in with a single Fizzplay account and spend Cash they topped up once across every Fizzplay game. Your game doesn't need to build its own sign-up, login, or payments.
For development tools and AI coding assistants, use the Markdown source with the same content, /developers/api.md. The request and response examples in the docs whose info string starts with fizzplay: are verified by Fizzplay server tests that send them to the real server.
What you can integrate
- Fizzplay account login
- Your game's "Log in with Fizzplay" button handles everything from Google login to nickname setup. The first time a player logs in, Fizzplay asks for their consent to link with your game, and your game server only exchanges a one-time code for the account (OAuth 2.0 authorization code + PKCE).
- Nickname, profile picture, and title
- The nickname is the same in every game. Your game registers profile pictures and titles through the API and grants them, for example as achievement rewards; players then choose and equip them on the Fizzplay account screen or in your game. Each account has one picture and one title, so they look the same on the Fizzplay public profile and in other games. A title comes with the ID of the game that grants it, and title and picture names cannot use words that could impersonate a Fizzplay operator. Other players shown in rankings and match records are brought up to date all at once by reading multiple accounts. This API returns only values already visible on the public profile.
- Account events
- When a player deletes their account, unlinks your game, or changes their nickname, profile picture, title, or language, Fizzplay sends a signed event (SET) to your game server. Your game reads the account again and brings its copy up to date right away. Fizzplay also sends an event when an account is restricted or logged out on all devices, so that your game ends that player's login sessions.
- Game records on public profiles
- Fizzplay queries your game server for a player's records and shows them on the public profile and the portal home page: headline record, stats, achievements, and recent records. Whatever the genre (matches, stages, score attacks, and more), it shows the text your game sends as is (invisible characters are removed).
- Fizzplay Cash
- Fizzplay manages top-ups, refunds, balances, and the ledger; your game requests a Cash deduction when it sells an item. 1C equals ₩1. If a player doesn't have enough Cash, send them to the Fizzplay top-up screen; once the top-up is done, the player comes back to your game with the button on the result screen.
Getting listed
-
Prepare registration details
Prepare your game ID (lowercase letters, digits, and
-, up to 20 characters; it cannot start or end with-, it cannot start with an existing game ID followed by-, and no existing game ID can start with it followed by-, because picture and title IDs start with<game ID>-), the game name to show on screen, the name of the company that operates the game, the public IP or host name of the server that serves your game (Fizzplay points the game address at it), your records URL (the HTTPS origin of the game server Fizzplay queries for records), the public IP of the game server that calls the Fizzplay API, and the HTTPS URL on your game server that receives account events (optional). Your game ID becomes your game address: the game is served athttps://<game ID>.fizzplay.org, and names that Fizzplay uses cannot be game IDs. The records URL and the events URL may be the game address or another HTTPS address of your game server. If your game has been rated, also prepare, for each rating system, the rating, content descriptors, rating number, rating date, and rating certificate, plus your registration number and production date. The company name appears on the portal's game page and, once the game is published, on the consent screen at first login. Ratings appear on the portal's game page (mark, content descriptors, and required details), on the game card (mark), and on the consent screen (one line for the rating), and only ratings that come with a registration number and production date are shown. With no rating to show, the game page and the consent screen show “Not yet rated”, and the game card shows none. -
Registration, address, and secrets
Fizzplay registers your game, issues an API secret key and a records token, and delivers them separately through a secure channel. It then points
<game ID>.fizzplay.orgat your game server. Your game server obtains the certificate for this address itself. Your game server uses the API secret key to call the Fizzplay API, and Fizzplay uses the records token to call your game's records endpoint. Neither value is ever put in documents or email bodies. -
Integration
Implement login, account reads, profile picture and title registration, granting, and equipping, game records, and Cash. Your game server registers profile pictures and titles directly through the API and can grant them as soon as they are registered. They go live without review; in return, your game can delete anything it registered at any time, and Fizzplay operators can take down anything that breaks the rules. Something an operator took down does not come back when registered again under the same ID (
409 item_taken_down). There is no separate test server: on the production server, only payments run in test mode. Whiletestistruein Cash responses, no real money changes hands. -
Review
Following the review checklist, Fizzplay checks with you the login, logout, and Cash deduction flows, equipping pictures and titles chosen in your game, the game record text shown on public profiles, and the age rating display.
-
Launch
Your game appears on the Fizzplay portal home page and in the game list, and game records show on players' public profiles.
Integration must-dos
- Keep the API secret key and records token on your game server only. Never put them in a browser, an app, or a source repository.
- For login, verify the returning request with PKCE (S256) and state, and exchange the code only on your game server.
- Use only the account ID your game server received at login. Never deduct Cash using an account ID sent by the browser.
- Deduct Cash on Fizzplay first (after receiving a success response), then grant the item. Send the same purchase only with the same key, and reverse the deduction for any purchase you could not fulfill (you can reverse it even if the player unlinked in the meantime).
- While
testistruein Cash responses, do not grant items of real value. - Store your game server's login cookies (state, PKCE verifier, login session) with the
__Host-prefix. This keeps another subdomain of the same domain from planting cookies that log someone else into the attacker's account. Never setDomain=fizzplay.orgcookies: such cookies are also sent to Fizzplay and to other games. Treat the language cookiefp_localeas read-only: never set or change it. - Serve only the registered game at your game address
https://<game ID>.fizzplay.org. Do not serve other services or files uploaded by players from this address, and do not build screens that imitate the Fizzplay login screen. Send logins only toaccounts.fizzplay.org. Before you move your game to another server, tell Fizzplay, and release the old server and its IP only after Fizzplay has pointed the address at the new server. - When your agreement with Fizzplay ends, Fizzplay takes the game address back. Treat every player as having unlinked at that point, and delete the information you received through players' Fizzplay accounts and those players' game data by the rules in Accounts that are gone.
- Call the picture and title equip APIs only when the player chose the item in your game. The one exception is switching to a higher-level title from the same achievement as the equipped title. Equips are recorded on the player's Fizzplay account screen.
- Show your game screens in the account's language (
locale). If you get a value you don't know, use English (the default language). Players change the language in their Fizzplay account; your game only reads it. - Show the rating you received on your game's first screen. Show the rating mark and content descriptors exactly as on the rating certificate, in the way that rating system requires. Before your game is rated, never show a guessed rating.
- Refer to players by account ID (
account_id) only. Never look them up or connect records by nickname, and link to their Fizzplay profile withprofile_urlfrom the response. - Keep nicknames, profile pictures, and titles only as copies, and update them with Reading multiple accounts once they are more than a day (24 hours) old. On
404 account_not_foundormissing, stop showing the copy and replace it with "Deleted player"; on a deletion event, delete the game data that belongs only to that person, and delete the data of a player who unlinked after 7 days. The full rules are in Handling player data in the API documentation. - At the address that receives account events, process an event only after verifying the Ed25519 signature,
iss, andaud, and make sure the result is the same even if the same event arrives twice or events arrive out of order. When an event arrives, read the account again regardless ofiat. Events arrive several at once, so respond202first and read the accounts again separately, within the concurrent request limit (4). - When you receive a restriction start (
account-disabled) or logout-on-all-devices (sessions-revoked) event, end that player's login sessions in your game on every device. Do not delete game data. Fizzplay does not issue login codes for a restricted account, so your game does not need to block the login itself. The full rules are in Ending game login sessions in the API documentation. - When a Cash deduction returns
403 account_suspended, the account is restricted. Do not grant the item, and tell the player. - Branch on errors by the status code and the error code in the response (
error). The message (message) is English for developers and may change. On player screens, show text your game prepared for each error code.
Full endpoint details and request and response formats are in the API docs (Markdown source: api.md).