Palworld REST API Reference

How to use the Palworld REST API for server management, player info, and automation.

The REST API is the recommended way to manage your Palworld server programmatically. It replaces the deprecated RCON system.

Enabling the REST API

In Pal/Saved/Config/LinuxServer/PalWorldSettings.ini:

RESTAPIEnabled=True
RESTAPIPort=8212
AdminPassword="YourPassword123"

Authentication

All requests use HTTP Basic Auth:

  • Username: admin
  • Password: Your AdminPassword value

Base URL

http://<server-ip>:8212/v1/api

Endpoints

Server Information

MethodPathDescription
GET/v1/api/infoServer info (version, name, world GUID)
GET/v1/api/settingsCurrent server settings
GET/v1/api/metricsServer metrics (FPS, player count, uptime, base count)
GET/v1/api/playersAll connected players (name, ID, IP, ping, level, location)

Player Management

MethodPathBodyDescription
POST/v1/api/kick{"userid": "id", "message": "reason"}Kick a player
POST/v1/api/ban{"userid": "id", "message": "reason"}Ban a player
POST/v1/api/unban{"userid": "id"}Unban a player

Server Control

MethodPathBodyDescription
POST/v1/api/announce{"message": "text"}Broadcast to all players
POST/v1/api/save(none)Force save world
POST/v1/api/shutdown{"waittime": 60, "message": "Restarting"}Graceful shutdown
POST/v1/api/stop(none)Force immediate stop

Example: Get Player List

curl -u admin:YourPassword123 http://localhost:8212/v1/api/players

Example: Broadcast Message

curl -X POST -u admin:YourPassword123 \
  -H "Content-Type: application/json" \
  -d '{"message": "Server restarting in 5 minutes!"}' \
  http://localhost:8212/v1/api/announce

Response Codes

CodeMeaning
200Success
400Bad request (missing/invalid parameters)
401Unauthorized (wrong password)

⚠️ Security: The REST API is not designed for direct internet exposure. Use within local networks or behind a reverse proxy.

How is this guide?

40% Off — Limited TimeGet your Palworld server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page