Accounts

Accounts Management Controller responsible for handling all registration, authentication, authorization, token renewal and other user related management requests.

APIDescription
POST api/account/register

This method will create new user based on the information received from the registration process

POST api/prospects/register

This method will create new user based on the information received from the registration process

POST api/account/system/register

This method will register a new system user

POST api/account/complete-signup

This method should be used to complete sign up process for a regular site user who was created using Admin application

POST api/account/login

This method will allow site user to login into the site using provided user name (email) and password. ClientId header is required for this request

GET api/account/account-view?bucode={bucode}&upcode={upcode}&cscode={cscode}

This method will generate the authentication token for a business client user who is trying to view details of his appeal but who does not have an actual account on the system. When this request is received, the API will check if existing user exists and if it does not, it will create a temp user with a dummy password. It will then validate the upcode and cscode against user's active case and user property to make sure the request came for client who is represented in the appeal

POST api/account/social/login

This method will allow client to sign up Facebook/Google user, login Facebook/Google user, and link either Facebook or Google account to an existing site user

POST api/account/social/signup

This method will complete sign up process for a social user by providing needed user data if such data was not previously retrieved from social platform

POST api/account/social/unlink

This method should be used to unlink existing social account from your ptd account by using social provider user key

GET api/account/confirm?userId={userId}&code={code}&client={client}

This method should be used to confirm user's account when he clicks on the confirmation link in the e-mail that was send to him after registration

POST api/account/forgot-password

This method will handle password retrieval request by sending an e-mail to end user with a link that he can follow to reset his password

POST api/account/reset-password

This method will handle reset password request

GET api/account/validate?username={username}

This method will validate provided username(e-mail) against users in our db and will return a min user profile data if user was located

POST api/account/system/validate

This method will verify system user accout using username assigned to him by the system administrator and his last 4 social security digits

POST api/account/resend-confirmation-email

This method will resend confirmation e-mail to a new user if he misplaced the original e-mail he received during sign up.

POST api/account/lock

This method will lock user account

POST api/account/unlock

This method should be used to unlock user's account

GET api/roles

This method will retrieve all user roles supported by the platform

DELETE api/account/{userId}

This method will remove account of a specific user by his userId