Pterodactyldocs
Client server file manager

Get file contents

Displays the contents of the specified file

Available parameters

ParameterDescription
fileURL encoded path to the desired file
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

Response Body

curl -X GET "https://example.com/api/client/servers/1a7ce997/files/contents?file=%2Fpaper.yml"
Empty