For the complete documentation index, see llms.txt. This page is also available as Markdown.

Manager Users

Administrative endpoints for managing user accounts. Requires manager or administrator role.

Requests made by an External Auditor (user_group_id 250) have email, phone, phone2, address, city, pc and passport stripped (returned as null) from every User/UserDetail object in the response, except the auditor's own record. This applies to every endpoint on this page — list, view, everything — automatically, based on the caller's role, not the target user's.

List Users

GET /manager/users.json

Retrieve all users in the company.

Response

[
  {
    "User": {
      "id": "123",
      "active": true,
      "email_status": "confirmed",
      "pilot": true,
      "two_factor": "OFF",
      "api": false,
      "email": "john@example.com",
      "user_group_id": "110",
      "expiration": null
    },
    "UserDetail": {
      "name": "John",
      "surname": "Doe",
      "photo": "https://..."
    },
    "UserGroup": {
      "name": "Pilot",
      "id": "110"
    }
  }
]

Users List (Simplified)

GET /manager/users/list.json

Retrieve a simplified user list (ID to name mapping). Useful for dropdowns.

Response


View User

GET /manager/users/view/{id}.json

Retrieve full user details including login history and company context.

Path Parameters

Parameter
Type
Description

id

string

User ID

Response


Create User

POST /manager/users/create.json

Create a new user account.

Request Body

Fields should match the user and user detail structure (email, name, surname, user_group_id, etc.).

Response

Validation Errors

External Auditor accounts (user_group_id: 250)

Auditor accounts are always temporary, external, read-only. These rules are enforced server-side on both create and edit — they cannot be bypassed by the client:

  • pilot is forced to false. Auditors never have flying privileges.

  • expiration is required and must be no more than 90 days from the time of the request. Validation errors: "Auditor accounts must have an expiration date", "Expiration date must be in the future", "Auditor accounts cannot be granted for more than 90 days from today".

  • Two-factor authentication is forced to EMAIL — an auditor's credential can never be switched to TOTP or OFF, regardless of which endpoint attempts it.


Edit User

POST /manager/users/edit.json

Update an existing user account. The same External Auditor account validation described under Create User above applies here too.


Delete User

POST /manager/users/delete/{id}.json

Delete a user account. Requires confirmation.

Path Parameters

Parameter
Type
Description

id

string

User ID

Request Body

Field
Type
Required
Description

confirm

boolean

Yes

Must be true to confirm deletion


Resend Activation

POST /pilots/reminder.json

Resend the activation/welcome email to a user.

Request Body

Field
Type
Required
Description

user

string

Yes

User ID


Billing Pilots

GET /manager/bills/pilots.json

Retrieve pilot list for billing operations.

Response

Same structure as pilot list endpoint.

Last updated