OpenAPI Spec (JSON)
Download the machine-readable OpenAPI 3.1 spec for use with Postman, code generators, or custom tooling.
Interactive Reference
Try out endpoints directly in the Scalar API playground with live request/response previews.
Authentication
All API endpoints (except Health) require theapi-key header:
| Key Type | Prefix | Use Case |
|---|---|---|
| Server API Key | pf_* | Backend services, CI/CD, admin tools |
| Client API Key | pfclient_* | Game clients, browser apps |
Find your API keys in the PlayFlow Dashboard under Project Settings.
Quick Start
For detailed examples with cURL, C#, and Python, see the full API guide.
Key Concepts
- Builds — Your game server binary packaged as a ZIP or Docker image. Versioned per name per project.
- Servers — Running game server instances. Each gets dedicated compute and network ports with automatic health monitoring.
- Pool Servers — Pre-provisioned servers for instant startup (~5s vs ~30s cold start).
- Regions — 12 global regions. See Server Regions for the full list.
- Compute Sizes — From
micro(256MB shared) todedicated-xlarge(16GB dedicated CPU). See Plan & Instance Types.
Lifecycles
Server Lifecycle
Build Lifecycle
Rate Limits
| Endpoint Type | Limit |
|---|---|
| Read endpoints (list, get, logs) | 100 req/sec per API key |
| Write endpoints (start, upload) | 10 req/sec per API key |
X-RateLimit-Limit and X-RateLimit-Remaining headers. Exceeding the limit returns 429.
Plan Limits
| Plan | Servers | TTL | Compute Sizes | Pool |
|---|---|---|---|---|
| Free | 1 max | Forced 1hr | small only | No |
| Pro | Unlimited | Custom | All sizes | Yes |
Error Format
All errors return a consistent JSON shape:Base URL
| Version | Prefix | Notes |
|---|---|---|
| V3 (canonical) | /api/v3/* | OpenAPI-validated, clean response shapes |
| V2 (legacy) | /api/v2/* | Compatibility layer for older SDKs |