Nakama API

The Nakama API is the core REST and WebSocket API for Heroic Labs' open-source game backend server. It provides endpoints for user authentication (social, device, email, and custom), account management, multiplayer matchmaking, real-time gameplay via WebSocket, leaderboards, tournaments, group and friend management, in-app notifications, storage, and remote procedure calls (RPC). The gRPC interface mirrors the HTTP API and is suited for server-to-server integrations. Client SDKs are available for Unity, Unreal Engine, Godot, JavaScript, Dart, Java, Swift, C++, and Defold.

GitHub OpenAPI

Operations 87

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /healthcheck Check the Nakama server health · A healthcheck which load balancers can use to check the service #
Ask an LLM
“Is the Nakama server up and responding?”
“Can a load balancer ping the server to check its health?”
Tell an agent
Run the Nakama healthcheck.
Ping the server health endpoint to confirm it is reachable.
GET /v2/account Get the current user's account · Fetch the current user's account #
Ask an LLM
“What username and display name does the signed-in user have?”
“Can I fetch my own Nakama account details?”
Tell an agent
Show my current user account.
Fetch the account details for the signed-in user.
DELETE /v2/account Delete the current user's account · Delete the current user's account #
Ask an LLM
“How do I permanently delete my Nakama account?”
“Can I remove my user account from the server?”
Tell an agent destructive · confirm first
Delete my current user account.
Permanently remove my Nakama account.
PUT /v2/account Update the current user's account · Update fields in the current user's account #
Ask an LLM
“How do I change my display name or avatar on Nakama?”
“Can I set my timezone and language on my account?”
Tell an agent
Set my display name to {displayName}.
Update my account with username {username} and avatar {avatarUrl}.
POST /v2/account/authenticate/apple Sign in or register with Apple ID · Authenticate a user with an Apple ID against the server #
Ask an LLM
“How do I log in to Nakama with my Apple ID?”
“Can I create a new account using an Apple ID token?”
Tell an agent
Authenticate with Apple ID using token {token}.
Sign in or register as {username} with Apple ID token {token}.
POST /v2/account/authenticate/custom Sign in or register with a custom ID · Authenticate a user with a custom id against the server #
Ask an LLM
“How do I log in to Nakama with my own custom user ID?”
“Can I create an account using a custom identifier instead of email?”
Tell an agent
Authenticate with custom ID {id}.
Sign in or register as {username} with custom ID {id}.
POST /v2/account/authenticate/device Sign in or register with a device ID · Authenticate a user with a device id against the server #
Ask an LLM
“How do I log in to Nakama using my device's identifier?”
“Can I create an account tied to a device ID?”
Tell an agent
Authenticate with device ID {id}.
Sign in or register as {username} with device ID {id}.
POST /v2/account/authenticate/email Sign in or register with email and password · Authenticate a user with an email+password against the server #
Ask an LLM
“How do I log in to Nakama with my email and password?”
“Can I create a new account using an email address?”
Tell an agent
Authenticate with email {email} and password {password}.
Sign in or register as {username} with email {email} and password {password}.
POST /v2/account/authenticate/facebook Sign in or register with Facebook · Authenticate a user with a Facebook OAuth token against the server #
Ask an LLM
“How do I log in to Nakama with my Facebook account?”
“Can I create a new account using a Facebook OAuth token?”
Tell an agent
Authenticate with Facebook token {token}.
Sign in or register as {username} with Facebook token {token}.
POST /v2/account/authenticate/facebookinstantgame Sign in or register with Facebook Instant Game · Authenticate a user with a Facebook Instant Game token against the server #
Ask an LLM
“How do I log in to Nakama from a Facebook Instant Game?”
“Can I authenticate with the signed player info from a Facebook Instant Game?”
Tell an agent
Authenticate with Facebook Instant Game signed player info {signedPlayerInfo}.
Sign in or register as {username} with Facebook Instant Game info {signedPlayerInfo}.
POST /v2/account/authenticate/gamecenter Sign in or register with GameCenter · Authenticate a user with Apple's GameCenter against the server #
Ask an LLM
“How do I log in to Nakama with my GameCenter account?”
“Can I authenticate using a GameCenter player ID and signature?”
Tell an agent
Authenticate with GameCenter player {playerId} on bundle {bundleId} signed {signature}.
Sign in or register as {username} with GameCenter player {playerId} on bundle {bundleId}, signature {signature}, salt {salt}, timestamp {timestampSeconds}.
POST /v2/account/authenticate/google Sign in or register with Google · Authenticate a user with Google against the server #
Ask an LLM
“How do I log in to Nakama with my Google account?”
“Can I create a new account using a Google OAuth token?”
Tell an agent
Authenticate with Google token {token}.
Sign in or register as {username} with Google token {token}.
POST /v2/account/authenticate/steam Sign in or register with Steam · Authenticate a user with Steam against the server #
Ask an LLM
“How do I log in to Nakama with my Steam account?”
“Can I create a new account using a Steam token?”
Tell an agent
Authenticate with Steam token {token}.
Sign in or register as {username} with Steam token {token}.
POST /v2/account/link/apple Link an Apple ID to my account · Add an Apple ID to the social profiles on the current user's account #
Ask an LLM
“How do I add my Apple ID to my existing Nakama account?”
“Can I link an Apple ID to my account without creating a new one?”
Tell an agent
Link my Apple ID using token {token}.
Add Apple ID token {token} to my current account.
POST /v2/account/link/custom Link a custom ID to my account · Add a custom ID to the social profiles on the current user's account #
Ask an LLM
“How do I attach my own custom user ID to my Nakama account?”
“Can I link a custom identifier to an existing account?”
Tell an agent
Link custom ID {id} to my account.
Add custom user ID {id} to my current account.
POST /v2/account/link/device Link a device ID to my account · Add a device ID to the social profiles on the current user's account #
Ask an LLM
“How do I tie my device's identifier to my Nakama account?”
“Can I link a device ID to an existing account?”
Tell an agent
Link device ID {id} to my account.
Add device identifier {id} to my current account.
POST /v2/account/link/email Link an email and password to my account · Add an email+password to the social profiles on the current user's account #
Ask an LLM
“How do I add an email and password to my existing Nakama account?”
“Can I link an email login to an account I already have?”
Tell an agent
Link email {email} with password {password} to my account.
Add email {email} and password {password} to my current account.
POST /v2/account/link/facebook Link a Facebook account to my account · Add Facebook to the social profiles on the current user's account #
Ask an LLM
“How do I add my Facebook account to my existing Nakama account?”
“Can I link a Facebook OAuth token to an account I already have?”
Tell an agent
Link Facebook token {token} to my account.
Add Facebook account with token {token} to my current account.
POST /v2/account/link/facebookinstantgame Link a Facebook Instant Game account to my account · Add Facebook Instant Game to the social profiles on the current user's account #
Ask an LLM
“How do I add a Facebook Instant Game account to my existing Nakama account?”
“Can I link Facebook Instant Game signed player info to my account?”
Tell an agent
Link Facebook Instant Game signed player info {signedPlayerInfo} to my account.
Add Facebook Instant Game account with info {signedPlayerInfo} to my current account.
POST /v2/account/link/gamecenter Link a GameCenter account to my account · Add Apple's GameCenter to the social profiles on the current user's account #
Ask an LLM
“How do I add my GameCenter account to my existing Nakama account?”
“Can I link a GameCenter player ID and signature to my account?”
Tell an agent
Link GameCenter player {playerId} on bundle {bundleId} signed {signature} to my account.
Add GameCenter account with player {playerId}, bundle {bundleId}, signature {signature}, salt {salt}, timestamp {timestampSeconds} to my current account.
POST /v2/account/link/google Link a Google account to the current user · Add Google to the social profiles on the current user's account #
Ask an LLM
“How do I connect a player's Google account to their Nakama account?”
“Can I link a Google token to the current user's social profiles?”
Tell an agent
Link Google account using token {token}.
Connect the current user's Google account with token {token} and vars {vars}.
POST /v2/account/link/steam Link a Steam account to the current user · Add Steam to the social profiles on the current user's account #
Ask an LLM
“How do I link my Steam account to my Nakama account?”
“Can I import my Steam friends when linking a Steam account?”
Tell an agent
Link Steam account {account} to my current Nakama user.
Link Steam {account} and sync my Steam friends.
POST /v2/account/session/refresh Refresh the current user's session · Refresh a user's session using a refresh token retrieved from a previous… #
Ask an LLM
“How do I renew a player's session with a refresh token?”
“Can I get a new session token using the one I already have?”
Tell an agent
Refresh the current user's session with token {token}.
Renew the player's session using refresh token {token} and vars {vars}.
POST /v2/account/unlink/apple Remove an Apple ID from the current user · Remove the Apple ID from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect a player's Apple ID from their account?”
“Can I unlink an Apple ID from the current user's social profiles?”
Tell an agent destructive · confirm first
Unlink Apple ID using token {token}.
Remove the current user's Apple account with token {token} and vars {vars}.
POST /v2/account/unlink/custom Remove a custom ID from the current user · Remove the custom ID from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect a custom identifier from the current user?”
“Can I unlink a custom ID from the player's account?”
Tell an agent destructive · confirm first
Unlink custom ID {id}.
Remove the current user's custom identifier {id} with vars {vars}.
POST /v2/account/unlink/device Remove a device ID from the current user · Remove the device ID from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect a device identifier from the current user?”
“Can I unlink a device ID from the player's account?”
Tell an agent destructive · confirm first
Unlink device ID {id}.
Remove the current user's device identifier {id} with vars {vars}.
POST /v2/account/unlink/email Remove an email and password from the current user · Remove the email+password from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect the email and password from the current user?”
“Can I unlink an email+password credential from the player's account?”
Tell an agent destructive · confirm first
Unlink email {email}.
Remove the current user's email {email} with password {password} and vars {vars}.
POST /v2/account/unlink/facebook Remove a Facebook account from the current user · Remove Facebook from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect a player's Facebook account from their account?”
“Can I unlink a Facebook token from the current user's social profiles?”
Tell an agent destructive · confirm first
Unlink Facebook account using token {token}.
Remove the current user's Facebook account with token {token} and vars {vars}.
POST /v2/account/unlink/facebookinstantgame Remove a Facebook Instant Game profile · Remove Facebook Instant Game profile from the social profiles on the current… #
Ask an LLM
“How do I disconnect a player's Facebook Instant Game profile?”
“Can I unlink Facebook Instant Game signed player info from the current user?”
Tell an agent destructive · confirm first
Unlink Facebook Instant Game profile with signed info {signedPlayerInfo}.
Remove the current user's Facebook Instant Game profile using {signedPlayerInfo} and vars {vars}.
POST /v2/account/unlink/gamecenter Remove Game Center from the current user · Remove Apple's GameCenter from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect a player's Game Center account from their account?”
“Can I unlink Game Center with player ID, bundle ID and signature?”
Tell an agent destructive · confirm first
Unlink Game Center with player ID {playerId} and bundle ID {bundleId}.
Remove the current user's Game Center account using signature {signature} and vars {vars}.
POST /v2/account/unlink/google Unlink Google from the current user's account · Remove Google from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect my Google account from Nakama?”
“Can I remove Google from the social profiles on my account?”
Tell an agent destructive · confirm first
Detach Google from my profile using OAuth token {token}.
Remove my Google login with token {token} and session vars {vars}.
POST /v2/account/unlink/steam Unlink a Steam account from the current user · Remove Steam from the social profiles on the current user's account #
Ask an LLM
“How do I disconnect my Steam account from Nakama?”
“Can I unlink Steam from the current user?”
Tell an agent destructive · confirm first
Unlink Steam account {token} from my current Nakama user.
Disconnect the Steam account {token} from the current user.
GET /v2/channel/{channelId} List a channel's message history · List a channel's message history #
Ask an LLM
“How do I read the message history of a chat channel?”
“Can I fetch older messages from a channel?”
Tell an agent
List message history for channel {channelId}.
Show {limit} messages from channel {channelId} in {forward} order.
POST /v2/event Submit a custom event for server processing · Submit an event for processing in the server's registered runtime custom events… #
Ask an LLM
“How do I send a custom event to the server for processing?”
“Can I submit an event with properties and a timestamp?”
Tell an agent
Submit custom event {name}.
Send event {name} with properties {properties} and timestamp {timestamp}.
GET /v2/friend List a user's friends · List all friends for the current user #
Ask an LLM
“Who are the friends on my account?”
“Can I list only pending or blocked friends?”
Tell an agent
List my friends.
Show {limit} friends with state {state}.
DELETE /v2/friend Remove friends by ID or username · Delete one or more users by ID or username #
Ask an LLM
“How do I remove a friend from my friends list?”
“Can I delete several friends by their usernames?”
Tell an agent destructive · confirm first
Delete my friend with ID {ids}.
Remove the friends {usernames} from my friends list.
POST /v2/friend Add friends by ID or username · Add friends by ID or username to a user's account #
Ask an LLM
“How do I add a player as a friend by their ID or username?”
“Can I add friends with metadata attached?”
Tell an agent
Add friends {ids}.
Add friends {usernames} with metadata {metadata}.
POST /v2/friend/block Block one or more users · Block one or more users by ID or username #
Ask an LLM
“How do I block a player I don't want to see?”
“Can I block users by username as well as by ID?”
Tell an agent
Block the users with IDs {ids}.
Block the players {usernames}.
POST /v2/friend/facebook Import Facebook friends into the account · Import Facebook friends and add them to a user's account #
Ask an LLM
“How do I import a player's Facebook friends into their account?”
“Can I reset the friend list before importing Facebook friends?”
Tell an agent
Import Facebook friends using token {token}.
Import Facebook friends with token {token} and vars {vars}, reset {reset}.
GET /v2/friend/friends List friends of friends · List friends of friends for the current user #
Ask an LLM
“Who are the friends of my friends?”
“Can I see friends of friends up to a limit?”
Tell an agent
List friends of friends.
Show {limit} friends of friends.
POST /v2/friend/steam Import a player's Steam friends into Nakama · Import Steam friends and add them to a user's account #
Ask an LLM
“How do I pull a Steam player's friends into their Nakama account?”
“Can I reset a user's friend list when importing Steam friends?”
Tell an agent
Import Steam friends for the current user using Steam token {token}.
Import Steam friends and reset the user's existing friend list ({reset}).
GET /v2/group List groups · List groups based on given filters #
Ask an LLM
“Which groups exist in Nakama?”
“Can I list only open or closed groups?”
Tell an agent
List all groups.
Find groups named {name}.
POST /v2/group Create a group · Create a new group with the current user as the owner #
Ask an LLM
“How do I create a new group for my players?”
“Can a new group be open or closed, and what's the max member count?”
Tell an agent
Create a group named {name}.
Create group {name} open {open}, up to {maxCount} members.
DELETE /v2/group/{groupId} Delete a group · Delete a group by ID #
Ask an LLM
“How do I delete a group?”
“Can I remove a group by its ID?”
Tell an agent destructive · confirm first
Delete group {groupId}.
Remove the group with ID {groupId}.
PUT /v2/group/{groupId} Update a group's details · Update fields in a given group #
Ask an LLM
“How do I rename or change a group's description?”
“Can I change a group's avatar or language tag?”
Tell an agent
Rename group {groupId} to {name}.
Set the avatar of group {groupId} to {avatarUrl}.
POST /v2/group/{groupId}/add Add users to a group · Add users to a group #
Ask an LLM
“How do I add specific players to a group?”
“Can I add several users to a group at once?”
Tell an agent
Add users {userIds} to group {groupId}.
Invite {userIds} into group {groupId}.
POST /v2/group/{groupId}/ban Ban users from a group · Ban a set of users from a group #
Ask an LLM
“How do I ban players from a group?”
“Can I ban a set of users from a group?”
Tell an agent destructive · confirm first
Ban users {userIds} from group {groupId}.
Block {userIds} in group {groupId}.
POST /v2/group/{groupId}/demote Demote users in a group · Demote a set of users in a group to the next role down #
Ask an LLM
“How do I lower a player's role in a group?”
“Can I demote several users at once?”
Tell an agent
Demote users {userIds} in group {groupId}.
Move {userIds} down one role in group {groupId}.
POST /v2/group/{groupId}/join Join a group · Immediately join an open group, or request to join a closed one #
Ask an LLM
“How do I join an open group?”
“Can I request to join a closed group?”
Tell an agent
Join group {groupId}.
Request to join closed group {groupId}.
POST /v2/group/{groupId}/kick Kick users from a group · Kick a set of users from a group #
Ask an LLM
“How do I kick players out of a group?”
“Can I kick several users from a group at once?”
Tell an agent destructive · confirm first
Kick users {userIds} from group {groupId}.
Remove {userIds} from group {groupId}.
POST /v2/group/{groupId}/leave Leave a group · Leave a group the user is a member of #
Ask an LLM
“How do I leave a group I'm in?”
“Can I exit a group by its ID?”
Tell an agent
Leave group {groupId}.
Exit group {groupId}.
POST /v2/group/{groupId}/promote Promote users in a group · Promote a set of users in a group to the next role up #
Ask an LLM
“How do I raise a player's role in a group?”
“Can I promote several users at once?”
Tell an agent
Promote users {userIds} in group {groupId}.
Move {userIds} up one role in group {groupId}.
GET /v2/group/{groupId}/user List a group's members · List all users that are part of a group #
Ask an LLM
“Who are the members of a group?”
“Can I list only pending or active members of a group?”
Tell an agent
List the members of group {groupId}.
Show {state} members of group {groupId}.
POST /v2/iap/purchase/apple Validate an Apple IAP receipt · Validate Apple IAP Receipt #
Ask an LLM
“How do I verify an Apple in-app purchase receipt?”
“Can I keep the validated purchase after validation?”
Tell an agent
Validate Apple IAP receipt {receipt}.
Validate Apple receipt {receipt} and persist it ({persist}).
POST /v2/iap/purchase/facebookinstant Validate a Facebook Instant IAP receipt · Validate FB Instant IAP Receipt #
Ask an LLM
“How do I verify a purchase made through Facebook Instant Games?”
“Can I validate a Facebook Instant signed request receipt?”
Tell an agent
Validate Facebook Instant IAP receipt {signedRequest}.
Verify the Facebook Instant signed request {signedRequest}.
POST /v2/iap/purchase/google Validate a Google IAP receipt · Validate Google IAP Receipt #
Ask an LLM
“How do I verify a Google Play in-app purchase?”
“Can I validate a Google purchase payload?”
Tell an agent
Validate Google IAP receipt {purchase}.
Check the Google purchase {purchase} and persist it ({persist}).
POST /v2/iap/purchase/huawei Validate a Huawei IAP receipt · Validate Huawei IAP Receipt #
Ask an LLM
“How do I verify a Huawei in-app purchase?”
“Can I validate a Huawei purchase with its signature?”
Tell an agent
Validate Huawei IAP receipt {purchase} with signature {signature}.
Verify Huawei purchase {purchase}.
POST /v2/iap/subscription List a user's subscriptions · List user's subscriptions #
Ask an LLM
“Which subscriptions does a player have?”
“Can I page through a user's subscriptions?”
Tell an agent
List my subscriptions.
Show {limit} subscriptions starting at {cursor}.
POST /v2/iap/subscription/apple Validate an Apple subscription receipt · Validate Apple Subscription Receipt #
Ask an LLM
“How do I verify an Apple subscription renewal?”
“Can I persist an Apple subscription receipt after validation?”
Tell an agent
Validate Apple subscription receipt {receipt}.
Validate Apple subscription {receipt} and persist it ({persist}).
POST /v2/iap/subscription/google Validate a Google subscription receipt · Validate Google Subscription Receipt #
Ask an LLM
“How do I verify a Google Play subscription renewal?”
“Can I validate a Google subscription payload?”
Tell an agent
Validate Google subscription {receipt}.
Check the Google subscription {receipt} and persist it ({persist}).
GET /v2/iap/subscription/{productId} Get an in-app purchase subscription · Get subscription by product id #
Ask an LLM
“How do I look up the details of an in-app subscription by its product ID?”
“Can I check whether a subscription is active for a given product?”
Tell an agent
Get the subscription for product {productId}.
Look up in-app subscription {productId}.
GET /v2/leaderboard/{leaderboardId} List leaderboard records · List leaderboard records #
Ask an LLM
“What is the highest score on a leaderboard?”
“Can I list leaderboard records for a specific player?”
Tell an agent
List the top {limit} records on leaderboard {leaderboardId}.
Show leaderboard {leaderboardId} records for owners {ownerIds}.
DELETE /v2/leaderboard/{leaderboardId} Delete a leaderboard record · Delete a leaderboard record #
Ask an LLM
“How do I remove a player's record from a leaderboard?”
“Can I clear a leaderboard entry by its ID?”
Tell an agent destructive · confirm first
Delete the leaderboard record on {leaderboardId}.
Remove the player's entry from leaderboard {leaderboardId}.
POST /v2/leaderboard/{leaderboardId} Submit a score to a leaderboard · Write a record to a leaderboard #
Ask an LLM
“How do I post a player's score to a leaderboard?”
“Can I submit a secondary subscore along with the main score?”
Tell an agent
Submit score {score} to leaderboard {leaderboardId}.
Record score {score} with subscore {subscore} on leaderboard {leaderboardId}.
GET /v2/leaderboard/{leaderboardId}/owner/{ownerId} List leaderboard records around a player · List leaderboard records around the target ownerId #
Ask an LLM
“Where does a specific player rank on a leaderboard?”
“Can I see the leaderboard records immediately above and below a player?”
Tell an agent
List leaderboard {leaderboardId} records around player {ownerId}.
Show the leaderboard {leaderboardId} ranking for player {ownerId}.
GET /v2/match List running matches · List running matches and optionally filter by matching criteria #
Ask an LLM
“Which matches are currently running in the game?”
“Can I list matches that are still open and have a certain label?”
Tell an agent
List the running matches.
Find matches labeled {label} with at least {minSize} players.
GET /v2/matchmaker/stats Get matchmaker statistics · Get matchmaker stats #
Ask an LLM
“What are the current matchmaker stats for matchmaking?”
“Can I check how many matches are queued right now?”
Tell an agent
Get the matchmaker statistics.
Show how many matches are waiting in matchmaking.
GET /v2/notification List a player's notifications · Fetch list of notifications #
Ask an LLM
“What notifications has the signed-in player received?”
“Can I fetch notifications using a cursor to keep reading them?”
Tell an agent
List my notifications.
Fetch the next {limit} notifications after cursor {cacheableCursor}.
DELETE /v2/notification Delete a player's notifications · Delete one or more notifications for the current user #
Ask an LLM
“How do I clear a player's notifications?”
“Can I delete several notifications by their IDs?”
Tell an agent destructive · confirm first
Delete notifications {ids}.
Clear all my notifications.
GET /v2/party List parties matching a criteria · List parties and optionally filter by matching criteria #
Ask an LLM
“Which parties are open to new players?”
“Can I search parties by label?”
Tell an agent
List parties where open is {open}.
Find parties matching {query}.
GET /v2/rpc/{id} Call a server RPC function by ID · Execute a Lua function on the server #
Ask an LLM
“How do I call a server-side RPC function over HTTP?”
“Can I pass a JSON payload to an RPC function?”
Tell an agent
Call RPC function {id} with payload {payload}.
Execute server function {id} using HTTP key {httpKey}.
POST /v2/rpc/{id} Execute a server RPC function · Execute a Lua function on the server #
Ask an LLM
“Can I run a Lua function on the server from a client request?”
“What do I send to invoke an RPC function on the server?”
Tell an agent
Execute server RPC function {id}.
Run the server function {id} with HTTP key {httpKey}.
POST /v2/session/logout Log out a session · Log out a session, invalidate a refresh token, or log out all sessions/refresh… #
Ask an LLM
“How do I log out a player's session?”
“Can I invalidate a refresh token so the player must re-authenticate?”
Tell an agent destructive · confirm first
Log out the session with token {token}.
Invalidate refresh token {refreshToken}.
POST /v2/storage Read storage objects · Get storage objects #
Ask an LLM
“How do I fetch stored game objects by their IDs?”
“Can I read several storage objects in one request?”
Tell an agent
Read storage objects {objectIds}.
Get the stored objects {objectIds}.
PUT /v2/storage Write objects to storage · Write objects into the storage engine #
Ask an LLM
“How do I save game data into the storage engine?”
“Can I store several objects in one request?”
Tell an agent
Write storage objects {objects}.
Save these game objects into storage: {objects}.
PUT /v2/storage/delete Delete storage objects · Delete one or more objects by ID or username #
Ask an LLM
“How do I delete stored game objects by ID?”
“Can I remove several storage objects at once?”
Tell an agent destructive · confirm first
Delete storage objects {objectIds}.
Remove the stored objects {objectIds}.
GET /v2/storage/{collection} List public storage objects in a collection · List publicly readable storage objects in a given collection #
Ask an LLM
“What public storage objects are in a collection?”
“Can I list a user's public storage objects in a collection?”
Tell an agent
List public storage objects in collection {collection}.
Show the first {limit} public objects in {collection} for user {userId}.
GET /v2/storage/{collection}/{userId} List a user's public storage objects · List publicly readable storage objects in a given collection #
Ask an LLM
“How do I read one player's public storage objects?”
“Can I list a single user's stored objects in a collection?”
Tell an agent
List public storage objects in {collection} for user {userId}.
Show {userId}'s stored objects in {collection}.
GET /v2/tournament List current and upcoming tournaments · List current or upcoming tournaments #
Ask an LLM
“Which tournaments are running or starting soon?”
“Can I list tournaments in a specific category range?”
Tell an agent
List current and upcoming tournaments.
Show tournaments in category {categoryStart} to {categoryEnd}.
GET /v2/tournament/{tournamentId} List tournament records · List tournament records #
Ask an LLM
“What are the top scores in a tournament?”
“Can I list tournament records for a specific player?”
Tell an agent
List the records for tournament {tournamentId}.
Show tournament {tournamentId} records for owners {ownerIds}.
DELETE /v2/tournament/{tournamentId} Delete a tournament record · Delete a tournament record #
Ask an LLM
“How do I remove a player's score from a tournament?”
“Can I delete a tournament record after the tournament ends?”
Tell an agent destructive · confirm first
Delete the tournament record from {tournamentId}.
Remove the player's score from tournament {tournamentId}.
POST /v2/tournament/{tournamentId} Submit a score to a tournament (POST) · Write a record to a tournament #
Ask an LLM
“Can I POST a score to a tournament instead of PUT?”
“What does the POST version of the tournament write call return?”
Tell an agent
POST score {score} to tournament {tournamentId}.
Use the POST write-tournament-record call to submit {score} for {tournamentId}.
PUT /v2/tournament/{tournamentId} Submit a score to a tournament (PUT) · Write a record to a tournament #
Ask an LLM
“How do I submit a score to a tournament with a PUT request?”
“Can I override the leaderboard operator when writing a tournament record?”
Tell an agent
Submit score {score} to tournament {tournamentId} with the PUT endpoint.
Write a tournament record {score} with operator {operator} to {tournamentId}.
POST /v2/tournament/{tournamentId}/join Join an open tournament · Attempt to join an open and running tournament #
Ask an LLM
“How do I join an open and running tournament?”
“Can I join a tournament that is already in progress?”
Tell an agent
Join tournament {tournamentId}.
Attempt to enter the running tournament {tournamentId}.
GET /v2/tournament/{tournamentId}/owner/{ownerId} List a player's tournament records · List tournament records for a given owner #
Ask an LLM
“Where does a player rank in a tournament compared to others?”
“Can I see a player's tournament record and their neighbors?”
Tell an agent
List tournament records for owner {ownerId} in {tournamentId}.
Show {limit} records around owner {ownerId} in tournament {tournamentId}.
GET /v2/user Look up users by ID or username · Fetch zero or more users by ID and/or username #
Ask an LLM
“How do I fetch a user's profile by their ID?”
“Can I look up users by Facebook ID?”
Tell an agent
Fetch users {ids}.
Look up users {usernames} by username.
GET /v2/user/{userId}/group List groups a user belongs to · List groups the current user belongs to #
Ask an LLM
“Which user groups does a player belong to?”
“Can I list only active user groups for a player?”
Tell an agent
List groups for user {userId}.
Show {state} groups for user {userId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/heroiclabs:nakama-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

heroiclabs-nakama-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: v2 Nakama API
  version: '2.0'
  contact:
    name: The Nakama Authors & Contributors
    url: https://github.com/heroiclabs/nakama
    email: hello@heroiclabs.com
servers:
- url: http://127.0.0.1:7350
security:
- BearerJwt: []
tags:


# --- truncated at 32 KB (132 KB total) ---
# Full source: https://artifacts.apis.io/heroiclabs/openapi/heroiclabs-nakama-api-openapi.yml