Pterodactyl PHP SDK
  • Documentation
  • Basics
    • Installation
    • SDK initialization
  • API - Application
    • Users
    • Nodes
    • Nodes -> Allocations
    • Locations
    • Servers
    • Servers -> Databases
    • Nests
  • API - Client
    • Basic functions
    • Account
    • Server
    • Server -> Databases
    • Server -> File Manager
    • Server -> Schedules
    • Server -> Network (allocations)
    • Server -> Users
    • Server -> Backups
    • Server -> Startup
    • Server -> Settings
Powered by GitBook
On this page
  • Get account details
  • Get 2fa details
  • Enable 2fa
  • Disable 2fa
  • Update email
  • Update password
  • List API keys
  • Create API key
  • Delete API key
  1. API - Client

Account

$client->client->account

Get account details

$client->client->account->details();

Get 2fa details

$client->client->account->twoFactorDetails();

Enable 2fa

$client->client->account->enableTwoFactor(string $code);

Disable 2fa

$client->client->account->disableTwoFactor(string $password);

Update email

$client->client->account->updateEmail(string $email, string $password);

Update password

$client->client->account->updatePassword(string $current_password, string $password, string $password_confirmation);

List API keys

$client->client->account->listApiKeys();

Create API key

$client->client->account->createApiKey(array $data);

Delete API key

$client->client->account->deleteApiKey(string $identifier);
PreviousBasic functionsNextServer

Last updated 3 years ago