Authentication

Create Client

post

Create a new client. This function creates a new client using the provided client name and master credentials. If the client is created successfully, it returns the client information. If the client creation fails, it raises an HTTPException with a 400 status code and an error message.

Args: request (CreateClientRequest): The request object containing the client name and master credentials.

Returns: Client: The created client information.

Raises: HTTPException: If the client creation fails, an HTTPException is raised with a 400 status code and an error message.

Body
usernamestringRequired

The Master Username.

passwordstringRequired

The Master Password.

client_namestringRequired

The name of the client.

Responses
chevron-right
200

Successful Response

application/json
post
/client

Create User

post

Create a new user. This function creates a new user using the provided identifier and master credentials. If the user is created successfully, it returns the user information. If the user creation fails, it raises an HTTPException with a 400 status code and an error message.

Args: request (CreateUserRequest): The request object containing the user identifier and master credentials.

Returns: UserModel: The created user information.

Raises: HTTPException: If the user creation fails, an HTTPException is raised with a 400 status code and an error message.

Body
usernamestringRequired

The Master Username.

passwordstringRequired

The Master Password.

identifierstringRequired

The identifier for the user.

Responses
chevron-right
200

Successful Response

application/json
post
/user

Get Token

get

Get the current user with the token. This function retrieves the current user.

Args: user (User): The current user.

Returns: User: The current user with the token.

Authorizations
OAuth2passwordRequired
Token URL:
Available scopes:
  • : Read Permissions
Responses
chevron-right
200

Successful Response

application/json
get
/token
200

Successful Response

Create Token

post

Create a new token. This function creates a new token using the provided identifier and secret. If the token is created successfully, it returns the token information. If the token creation fails, it raises an HTTPException with a 400 status code and an error message.

Args: request (CreateTokenRequest): The request object containing the user identifier and secret.

Returns: TokenComplete: The created token information.

Raises: HTTPException: If the token creation fails, an HTTPException is raised with a 400 status code and an error message.

Body
identifierstringRequired

The identifier for the token. It can be a user ID, email, or any unique identifier.

secretstringRequired

The secret for the token. It can be a password, API key, or any secret value.

Responses
chevron-right
200

Successful Response

application/json
post
/token

Last updated