Learn how to start, stop, and manage your game servers programmatically using the PlayFlow API.
You can control your game servers from your game client, a custom backend service, or any other application by using the PlayFlow API.We provide two primary ways to interact with the API:
Unity SDK: A convenient C# wrapper for developers using Unity.
REST API: For all other game engines and custom backends.
First, you need to initialize the client with your PlayFlow API key.
Copy
using PlayFlow.SDK.Servers;// Your API key from the PlayFlow dashboardstring playflowApiKey = "YOUR_API_KEY_HERE"; private PlayflowServerApiClient _apiClient;void Start(){ _apiClient = new PlayflowServerApiClient(playflowApiKey);}