Pterodactyl API v1
Users

Create user

Creates a new user

POST/api/application/users

Authorization

ApplicationToken
AuthorizationBearer <token>

Application API key (generated at /admin/api)

In: header

Request Body

application/json

email*string
username*string
first_name*string
last_name*string
password?string

Plain-text password; if omitted the user must set one via the password reset flow

language?string

Two-letter language code, e.g. en

root_admin?boolean
external_id?|

Response Body

application/json

curl -X POST "https://pterodactyl.file.properties/api/application/users" \  -H "Authorization: Bearer ptla_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{  "email": "[email protected]",  "username": "exampleuser",  "first_name": "Example",  "last_name": "User"}'
{
  "object": "user",
  "attributes": {
    "id": 9,
    "external_id": null,
    "uuid": "dac03ece-fd51-4e4b-bd4f-a79e3b2794f9",
    "username": "exampleuser",
    "email": "[email protected]",
    "first_name": "Example",
    "last_name": "User",
    "language": "en",
    "root_admin": false,
    "2fa": false,
    "created_at": "2020-10-29T01:25:12+00:00",
    "updated_at": "2020-10-29T01:25:12+00:00"
  },
  "meta": {
    "resource": "https://pterodactyl.file.properties/api/application/users/9"
  }
}