Skip to content

Access API

Generated from servtuner commit 5b46cdad0e5c.

Newest first; pass the last id as before_id for the next page.

Parameter In Type Required Description
limit query integer No ≥ 1; ≤ 500 Default: 100.
before_id query integer or null No
Status Meaning Body
200 Successful Response array of AuditEventView
422 Validation Error HTTPValidationError

Signs in with a username and password and sets the session cookie.

Request body: LoginRequest (application/json)

Status Meaning Body
200 Successful Response UserView
422 Validation Error HTTPValidationError

Ends the current session.

Status Meaning Body
204 Successful Response None

Returns the signed-in user, their role and the actions it allows.

Status Meaning Body
200 Successful Response UserView

Needs the current password; signs out the user’s other sessions.

Request body: PasswordChange (application/json)

Status Meaning Body
204 Successful Response None
422 Validation Error HTTPValidationError

Lists the user’s own sessions.

Status Meaning Body
200 Successful Response array of SessionView

Sign out everywhere else.

Status Meaning Body
200 Successful Response RevokedSessions

Ends one of the user’s sessions.

Parameter In Type Required Description
session_id path string Yes
Status Meaning Body
204 Successful Response None
422 Validation Error HTTPValidationError

Create the first admin with the setup token; 409 once any admin exists.

Parameter In Type Required Description
X-Servtuner-Setup-Token header string or null No

Request body: SetupRequest (application/json)

Status Meaning Body
201 Successful Response UserView
422 Validation Error HTTPValidationError

Reports the auth mode and whether setup is still required.

Status Meaning Body
200 Successful Response AuthStatus

Lists users.

Status Meaning Body
200 Successful Response array of UserAdminView

Creates a user.

Request body: UserCreate (application/json)

Status Meaning Body
201 Successful Response UserAdminView
422 Validation Error HTTPValidationError

Returns one user with their identities.

Parameter In Type Required Description
user_id path string Yes
Status Meaning Body
200 Successful Response UserAdminView
422 Validation Error HTTPValidationError

A role change or disabling signs the user out everywhere; never the last admin.

Parameter In Type Required Description
user_id path string Yes

Request body: UserUpdate (application/json)

Status Meaning Body
200 Successful Response UserAdminView
422 Validation Error HTTPValidationError

The subject is a query parameter: DNs hold commas and slashes.

Parameter In Type Required Description
user_id path string Yes
subject query string Yes at most 512 characters
Status Meaning Body
200 Successful Response UserAdminView
422 Validation Error HTTPValidationError

Links a forward-header identity to a user.

Parameter In Type Required Description
user_id path string Yes

Request body: IdentityLink (application/json)

Status Meaning Body
201 Successful Response UserAdminView
422 Validation Error HTTPValidationError

A temporary password, shown once; the user must change it, and is signed out.

Parameter In Type Required Description
user_id path string Yes
Status Meaning Body
200 Successful Response TemporaryPassword
422 Validation Error HTTPValidationError

Signs a user out everywhere.

Parameter In Type Required Description
user_id path string Yes
Status Meaning Body
204 Successful Response None
422 Validation Error HTTPValidationError