Account

Overview

/api/account/

Account API endpoints allow actions to manage user accounts in Astera.

Click on the links below to navigate directly to a specific API endpoint.

Register a new user account

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
firstNamestring · min: 1Required
middleNamestring | nullableOptional
lastNamestring | nullableOptional
userAuthenticationProviderstring · enumRequiredPossible values:
emailstring · email · min: 1Required
userNamestring · min: 1Required
passwordstring | nullableOptional
confirmPasswordstring | nullableOptional
Responses
chevron-right
200

Success

No content

post
/api/account/Register
200

Success

No content

Register Active Directory user

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
firstNamestring · min: 1Required
middleNamestring | nullableOptional
lastNamestring | nullableOptional
userAuthenticationProviderstring · enumRequiredPossible values:
emailstring · email · min: 1Required
userNamestring · min: 1Required
passwordstring | nullableOptional
confirmPasswordstring | nullableOptional
Responses
chevron-right
200

Success

No content

post
/api/account/RegisterActiveDirectoryUser
200

Success

No content

Login or retrieve authorization token

This API returns the bearer token that can be used to make calls to Astera Server, also it returns some more information about the user.

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
userstring · min: 1Required
passwordstring | nullableOptional
rememberMebooleanOptional
Responses
chevron-right
200

Success

No content

post
/api/account/Login
200

Success

No content

Sample request body

Description of Request Body Parameters

Name
Type
Description

user

string

Username of the user trying to login (default is "admin")

password

string

Password of the user trying to login (default is "Admin123")

rememberMe

boolean

This parameter takes 1 or 0, indicating True or False.

Login Active Directory user

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
userstring · min: 1Required
passwordstring | nullableOptional
rememberMebooleanOptional
Responses
chevron-right
200

Success

No content

post
/api/account/LoginActiveDirectoryUser
200

Success

No content

Initiate password reset

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
emailstring · email · min: 1Required
Responses
chevron-right
200

Success

No content

post
/api/account/ForgotPassword
200

Success

No content

Verify password reset token

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
emailstring · email · min: 1Required
tokenstring · min: 1Required
Responses
chevron-right
200

Success

No content

post
/api/account/VerifyPasswordResetToken
200

Success

No content

Reset user password

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
emailstring · email · min: 1Required
passwordstring · min: 1Required
confirmPasswordstring | nullableOptional
tokenstring · min: 1Required
Responses
chevron-right
200

Success

No content

post
/api/account/ResetPassword
200

Success

No content

Request token for user's email change

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
emailstring · email · min: 1Required
newEmailstring · email · min: 1Required
Responses
chevron-right
200

Success

No content

post
/api/account/ChangeEmailTokenRequest
200

Success

No content

Verify token for user's email change??

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
newEmailstring · email · min: 1Required
emailstring · email · min: 1Required
tokenstring · min: 1Required
Responses
chevron-right
200

Success

No content

post
/api/account/VerifyChangeEmailToken
200

Success

No content

Change user email address

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
emailstring · email · min: 1Required
newEmailstring · email · min: 1Required
tokenstring · min: 1Required
Responses
chevron-right
200

Success

No content

post
/api/account/ChangeEmail
200

Success

No content

Change user password

post
Authorizations
Body
currentPasswordstring · min: 1Required
passwordstring · min: 1Required
confirmPasswordstring | nullableOptional
Responses
chevron-right
200

Success

No content

post
/api/account/ChangePassword

No content

Confirm user email address

get
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Query parameters
emailstringOptional
codestringOptional
Responses
chevron-right
200

Success

No content

get
/api/account/ConfirmEmail
200

Success

No content

Confirm user email with email and code in request body

post
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Body
emailstring | nullableOptional
codestring | nullableOptional
Responses
chevron-right
200

Success

No content

post
/api/account/ConfirmEmail
200

Success

No content

Logout user

get
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Responses
chevron-right
200

Success

No content

get
/api/account/Logout
200

Success

No content

Check access status??

get
Authorizations
AuthorizationstringRequired

Please enter into field the word 'Bearer' following by space and JWT

Responses
chevron-right
200

Success

No content

get
/api/account/AccessDenied
200

Success

No content

Was this helpful?