Skip to content

Includes

You may notice that some functions like server(), user() have a parameter called $includes, this can be used to query related data.

For example, to query all servers belongs to a user, you can use the following code:

<?php
  $users = $pterodactyl->users->get(1, [
    'include' => 'servers'
  ]);
  print_r($users);

Here's a list of available includes.

Warning

The list is not up to date, please check: https://dashflo.net/docs/api/pterodactyl/v1/.

Includes

Egg

  • servers
  • variables

Location

  • nodes
  • servers

Node

  • servers

Server

  • allocations
  • databases
  • subusers

User

  • servers