Skip to main content
Server Scripts & Files

Fetches a file from the server

Asynchronous Request
Fetches a file from the server. Please note that the file contents will NOT be immeidately returned, but you have to fetch it from the event result by querying the events endpoint (or subscribe to the callback). The file will then be returned in the event result data in the "message" field as Base64 encoded data. If the Base64 encoded data is longer than 120.000 characters the callback from this method will return an error.

POST
/servers/{serverSlug}/fetchFile
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

Fetch server file model

filePathstringrequired

Path of the file to fetch

Fetch initiated

X-Callback-IDstringheader

CallbackID