Pterodactyl Client icon

Pterodactyl Client

User-level server management with Pterodactyl Panel Client API

File → Get Upload URL

AI-generated

Summary

Retrieve a pre-signed upload URL for a specified server and target directory to facilitate file uploads via the Pterodactyl Panel Client API.

Inputs

  • serverId (required) — Select the server to get upload URL for.
  • directory — Target directory for file upload (default is "/").

Output shape

a single JSON object containing the upload URL and related metadata.

The upload URL is used to upload files directly to the specified server's directory. The response shape depends on the Pterodactyl API's upload URL format and may include additional metadata useful for uploading.

Examples

Example 1: Get an upload URL for the root directory of a selected server.

Provide the server identifier and optionally specify the directory (default "/") to receive an upload URL for file transfer.

Discussion