Pterodactyl API v1
File Manager

Get file contents

Returns the raw contents of the specified file as text/plain.

GET/api/client/servers/{server}/files/contents

Authorization

ClientToken
AuthorizationBearer <token>

Client API key (generated at /account/api)

In: header

Path Parameters

server*string

Server identifier (short 8-character ID)

Query Parameters

file*string

Path to the file, relative to the server root (e.g. /server.properties). Sent URL-encoded in the query string.

Response Body

curl -X GET "https://pterodactyl.file.properties/api/client/servers/1a7ce997/files/contents?file=%2Fserver.properties" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json"
Empty