Documentation
Welcome to Multiplayer API documentation. This guide will help you get started with building multiplayer games using our platform.
// Your first API call
curl -X POST https://api.michitai.com/api/game/create \
-H "Content-Type: application/json" \
-H "X-API-Token: your_token_here" \
-d '{"name": "My First Game", "max_players": 100}'
Server Location: All API endpoints are hosted on secure servers in Europe (France) for optimal performance and GDPR compliance.
All API requests require authentication using your API token in the header:
X-API-Token: your_token_here
/api/register - Register new user/api/login - User login/api/logout - User logout/api/game/list - List all games/api/game/create - Create new game/api/game/{id} - Update game/api/game/{id} - Delete gameThe visual logic constructor allows you to build game logic without coding using drag-and-drop blocks.
Use our C# SDK to integrate Multiplayer API into your Unity or .NET applications.
// Install via NuGet Package Manager
Install-Package MultiplayerAPI.SDK
// Or download from our SDK folder
// sdk/csharp-sdk.zip
using MultiplayerAPI;
var client = new MultiplayerAPIClient("your_api_token");
var game = await client.CreateGameAsync(new GameConfig
{
Name = "My Game",
MaxPlayers = 100
});
Common implementation examples and use cases.
// Authenticate a player
const response = await fetch('/api/player/auth', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Token': 'your_token'
},
body: JSON.stringify({
player_id: 'player_123',
password: 'player_password'
})
});
// Update player data in real-time
await client.UpdatePlayerDataAsync(playerId, {
level: 15,
experience: 2500,
items: ['sword', 'shield', 'potion']
});
Check that your API token is valid and included in the X-API-Token header.
You've exceeded your plan's API call limit. Upgrade your plan or wait for the daily reset.
Your account has reached the storage limit. Delete unused data or upgrade your plan.
If you can't find the answer to your question, contact our support team: