Manager Users

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

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": "[email protected]",
      "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


Edit User

POST /manager/users/edit.json

Update an existing user account.


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