This API scope covers all operations related to user authentication, single sign-on (SSO), multi-factor authentication (MFA), Windows authentication, token management, and authorization checks within the MFT system.

The base endpoint URL for all operations in this scope is http://localhost:8010/vault_rest.

Authentication Requirements: Most endpoints in this scope require authentication.

  • Basic Authentication: Used for initial login/authentication endpoints (e.g., /vault_rest/authenticate). Provide username and password in the Authorization header using Basic scheme.
  • Bearer Token Authentication: Used for all other authenticated endpoints. After successful authentication, an API key (token) is issued. This token must be included in the Authorization header of subsequent requests using the Bearer scheme (e.g., Authorization: Bearer <your_api_key>).

Usage Notes:

  • The /vault_rest/authenticate endpoint is typically used to obtain an initial API key.
  • Token management endpoints allow for extending, creating, deleting, and recycling API keys.
  • SSO and MFA endpoints provide mechanisms for integrating with external identity providers and enforcing multi-factor authentication policies.
  • The /vault_rest/authenticate-windows endpoint facilitates Windows-integrated authentication, leveraging existing Windows session credentials.

Server
http://localhost:8010
Server Variables

Bearer token obtained after successful authentication. Example: Authorization: Bearer <your_api_key>

Basic authentication using username and password. Example: Authorization: Basic <base64_encoded_username:password>

Authentication

Endpoints for user login, logout, and general authentication processes.

Request an API Key

Authenticates a user and requests a new API key (token). This endpoint typically requires Basic Authentication (username and password) in the Authorization header. Upon successful authentication, a bearer token is returned, which should be used for subsequent API calls.

Since ## 3.11.1

Auth
GET /vault_rest/authenticate
Copy
Responses
200

Authentication successful, API key returned.

objectobject
Resultstring

The result of the authentication attempt.

Enum: Success,ErrorServiceUnavailable,ErrorInvalidCredentials,ErrorMfaRequired

Tokenstring

The authentication token (API key) if authentication was successful.

Expiresdate-time

The expiration date and time of the token.

ExpiresStringstring

The expiration date and time of the token as a string.

UiMessageKeystring

A key for a UI message related to the authentication result.

Messagestring

A detailed message related to the authentication result.

Response
Copy

Log Out and Invalidate API Key

Logs out the current user by invalidating their active API key (token). This action effectively ends the current session.

Since ## 3.11.1

Auth
DELETE /vault_rest/authenticate
Copy
Responses
200

API key invalidated successfully.

objectobject
Resultstring

The result of the token cancellation.

Enum: Success,Error

Response
Copy

Initiate SSO Pre-authentication

Initiates the Single Sign-On (SSO) pre-authentication process. This endpoint is typically the first step in an SSO flow, preparing the system for an external identity provider redirect.

Since ## 3.11.1

Auth
GET /vault_rest/pre-authenticate-sso
Copy
Responses
200

SSO pre-authentication initiated successfully.

objectobject
redirectUrlstring

The URL to redirect the user to for SSO authentication.

statestring

A state parameter to maintain state between the request and the callback.

Response
Copy

Complete SSO Authentication (GET)

Completes the Single Sign-On (SSO) authentication process using a GET request, typically after a redirect from an identity provider. The code and state parameters are crucial for validating the authentication flow.

Since ## 3.11.1

Auth
Query String
codestring

The authorization code received from the identity provider.

statestring

The state parameter used to prevent CSRF attacks, matching the one sent in the initial request.

GET /vault_rest/authenticate-sso
Copy
Responses
200

SSO authentication completed successfully.

No response body
Response
Copy

Complete SSO Authentication (POST)

Completes the Single Sign-On (SSO) authentication process using a POST request. This endpoint is typically used by the SSO provider to send authentication data back to the MFT system.

Since ## 3.11.1

Auth
Request Body

SSO authentication content from the identity provider.

objectobject
POST /vault_rest/authenticate-sso
Copy
Responses
200

SSO authentication completed successfully.

No response body
Response
Copy

Authenticate with SSO Token

Authenticates a user using an existing SSO token. This endpoint is used to validate and potentially refresh an SSO session.

Since ## 3.11.1

Auth
GET /vault_rest/authenticate-sso-token
Copy
Responses
200

SSO token authentication successful.

No response body
Response
Copy

Mfa

Endpoints for Multi-Factor Authentication (MFA) management and validation.

Validate One-Time Password (OTP)

Validates a One-Time Password (OTP) provided by the user, typically as part of a Multi-Factor Authentication (MFA) flow. The request body should contain the OTP.

Since ## 3.11.1

Auth
Request Body

OTP validation request body.

objectobject
POST /vault_rest/validate-otp
Copy
Responses
200

OTP validated successfully.

objectobject
Resultstring

The result of the OTP validation.

Enum: Success,InvalidOtp,OtpExpired,Error

Tokenstring

The authentication token if OTP validation was successful and a new token is issued.

Response
Copy

Get MFA Settings

Retrieves the current Multi-Factor Authentication (MFA) settings for the system.

Since ## 3.11.1

Auth
GET /vault_rest/settings/mfa
Copy
Responses
200

MFA settings retrieved successfully.

objectobject
MfaEnabledboolean

Indicates if MFA is currently enabled.

MfaTypestring

The type of MFA configured.

Enum: None,TOTP,SMS

Response
Copy

Update MFA Settings

Updates the Multi-Factor Authentication (MFA) settings for the system or a specific user. The request body contains the new MFA configuration.

Since ## 3.11.1

Auth
Request Body

MFA settings update request body.

objectobject
POST /vault_rest/settings/mfa
Copy
Responses
200

MFA settings updated successfully.

objectobject
Resultstring

The result of updating MFA settings.

Enum: Success,Error

Response
Copy

Initiate Token Exchange Pre-check

Initiates a pre-check for token exchange, often used in scenarios involving MFA or other conditional token issuance. This step might return information needed for the subsequent token exchange.

Since ## 3.11.1

Auth
Request Body

Pre-exchange token request body.

objectobject
POST /vault_rest/pre-exchange-token
Copy
Responses
200

Token exchange pre-check successful.

objectobject
challengestring

A challenge string or identifier for the OTP exchange.

Response
Copy

Exchange Token

Exchanges a pre-authentication token or other credentials for a full API key. This is typically the final step in a multi-stage authentication process, such as after MFA validation.

Since ## 3.11.1

Auth
Request Body

Token exchange request body.

objectobject
POST /vault_rest/exchange-token
Copy
Responses
200

Token exchange successful, new API key issued.

objectobject
Resultstring

The result of the token exchange.

Enum: Success,Error

Tokenstring

The new authentication token issued after exchange.

Response
Copy

Extend Authentication Token

Extends the expiration time of an existing authentication token. This allows users to maintain their session without re-authenticating.

Since ## 3.11.1

Auth
Request Body

Request body for extending the token.

objectobject
PUT /vault_rest/token
Copy
Responses
200

Token extended successfully.

objectobject
Resultstring

The result of extending the token.

Enum: Success,Error

NewExpiresdate-time

The new expiration date and time of the token.

Response
Copy

Create Authentication Token

Creates a new authentication token. This endpoint might be used for generating API keys for programmatic access or for specific session types.

Since ## 3.11.1

Auth
Request Body

Request body for creating a new token.

objectobject
POST /vault_rest/token
Copy
Responses
200

New token created successfully.

objectobject
Resultstring

The result of creating the token.

Enum: Success,Error

Tokenstring

The newly created authentication token.

Response
Copy

Delete Authentication Token

Deletes a specific authentication token, effectively logging out the associated session. The request body should specify which token to delete.

Since ## 3.11.1

Auth
Request Body

Request body for deleting the token.

objectobject
DELETE /vault_rest/token
Copy
Responses
200

Token deleted successfully.

objectobject
Resultstring

The result of deleting the token.

Enum: Success,Error

Response
Copy

Extend Idle Session

Extends the idle timeout for the current user session. This is typically called periodically by the client to keep the session alive.

Since ## 3.11.1

Auth
GET /vault_rest/token/extend_session
Copy
Responses
200

Idle session extended successfully.

objectobject
Resultstring

The result of extending the idle session.

Enum: Success,Error

Response
Copy

Generate a New Authentication Token

Generates a new, unique authentication token. This is often used for creating API keys for specific purposes or integrations.

Since ## 3.11.1

Auth
GET /vault_rest/tokens/generate
Copy
Responses
200

New authentication token generated.

stringstring
Response
Copy

Enumerate Authentication Tokens

Retrieves a paginated list of authentication tokens. This endpoint allows administrators to view and manage active tokens.

Since ## 3.11.1

Auth
Path Params
startstring

The starting index for the list of tokens.

countstring

The number of tokens to retrieve from the starting index.

GET /vault_rest/tokens/{start}/{count}
Copy
Responses
200

List of authentication tokens retrieved successfully.

objectobject
Tokensarray[object]
idstring

The unique identifier of the token.

userIdstring

The ID of the user associated with the token.

expiresdate-time

The expiration date and time of the token.

issuedAtdate-time

The date and time the token was issued.

TotalCountinteger

The total number of authentication tokens available.

Response
Copy

Recycle Authentication Token

Recycles the current authentication token, issuing a new one while invalidating the old one. This can be used to refresh a token's validity or to mitigate potential token compromise.

Since ## 3.11.1

Auth
POST /vault_rest/token/recycle
Copy
Responses
200

Token recycled successfully, new token issued.

objectobject
Resultstring

The result of recycling the token.

Enum: Success,Error

NewTokenstring

The newly issued authentication token.

Response
Copy

Authorization

Endpoints for checking user authorization against specific resources.

Check Resource Authorization

Checks if the current user is authorized to access a specific resource type. This endpoint is used to enforce fine-grained access control.

Since ## 3.11.1

Auth
Path Params
resourceTypestring

The type of resource to check authorization for (e.g., "file", "folder", "settings").

GET /vault_rest/authorization/{resourceType}
Copy
Responses
200

Authorization check result.

objectobject
IsAuthorizedboolean

Indicates whether the user is authorized for the specified resource type.

Permissionsarray[string]

A list of specific permissions the user has for the resource.

Response
Copy

Windows Authentication

Endpoints for Windows Integrated Authentication.

Authenticate with Windows Credentials

Initiates authentication using Windows credentials via negotiation-based authentication. This endpoint leverages the existing Windows session of the client. The [Authorize] attribute indicates that the request is expected to carry authentication information, typically handled by the browser/server for Windows Integrated Authentication. Upon successful negotiation, an MFT API token is issued.

Since ## 3.11.1

Auth
GET /vault_rest/authenticate-windows
Copy
Responses
200

Windows authentication successful, API key returned.

objectobject
Resultstring

The result of the authentication attempt.

Enum: Success,ErrorServiceUnavailable,ErrorInvalidCredentials,ErrorMfaRequired

Tokenstring

The authentication token (API key) if authentication was successful.

Expiresdate-time

The expiration date and time of the token.

ExpiresStringstring

The expiration date and time of the token as a string.

UiMessageKeystring

A key for a UI message related to the authentication result.

Messagestring

A detailed message related to the authentication result.

Response
Copy