Authentication
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.
The Master Username.
The Master Password.
The name of the client.
Successful Response
Validation Error
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.
The Master Username.
The Master Password.
The identifier for the user.
Successful Response
Validation Error
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.
- : Read Permissions
Successful Response
Successful Response
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.
The identifier for the token. It can be a user ID, email, or any unique identifier.
The secret for the token. It can be a password, API key, or any secret value.
Successful Response
Validation Error
Last updated
