Skip to main content

Manage an account

Retrieve account information

Endpoint:

https://api.visidea.ai/accounts/current

Method: GET

Response:

{
"id":"5f462406d6137d0016a503d9",
"username":"[email protected]",
"plan":"pro",
"trialEnds":"2030-09-26T10:09:20.321Z",
"createdDate":"2020-08-26T08:57:42.025Z",
"firstname":"Test",
"lastname":"Test",
"companyname":"Inferendo",
"address1":"Via Firenze 37",
"city":"Alessandria",
"state":"AL",
"zip":"15121",
"country":"IT",
"phone":"+101234567890",
"vatid":"01312312",
"sdi":"123123",
"stripeCustomer":"cus_XXXXXXXX",
"currentWebsite":"www.test.com"
}

Update account information

Endpoint:

https://api.visidea.ai/accounts/current

Method: PUT

Request:

{
"username":"[email protected]",
"firstname":"Test",
"lastname":"Test",
"companyname":"Inferendo",
"address1":"Via Firenze 37",
"city":"Alessandria",
"state":"AL",
"zip":"15121",
"country":"IT",
"phone":"+101234567890",
"vatid":"01312312",
"sdi":"123123",
"password":"...",
"currentWebsite":"www.test.com"
}
caution

The password MUST be SHA-512 encoded.

Response:

{
"id":"5f462406d6137d0016a503d9",
"username":"[email protected]",
"plan":"pro",
"trialEnds":"2030-09-26T10:09:20.321Z",
"planEnds":"2030-09-26T10:09:20.321Z",
"createdDate":"2020-08-26T08:57:42.025Z",
"firstname":"Test",
"lastname":"Test",
"companyname":"Inferendo",
"address1":"Via Firenze 37",
"city":"Alessandria",
"state":"AL",
"zip":"15121",
"country":"IT",
"phone":"+101234567890",
"vatid":"01312312",
"sdi":"123123",
"stripeCustomer":"cus_XXXXXXXX",
"currentWebsite":"www.test.com"
}

Reset password request

Endpoint:

https://api.visidea.ai/accounts/resetpassword

Method: POST

Request:

{
"username":"[email protected]"
}

Response:

{
"status":"done"
}
note

This method sends an e-mail to the customer containing a link to reset his password.

Save new password

Endpoint:

https://api.visidea.ai/accounts/resetpasswordsave

Method: POST

Request:

{
"password":"...",
"token":"...",
"username":"[email protected]"
}
caution

The password MUST be SHA-512 encoded.

caution

The token MUST be the token sent via e-mail.

Response:

{
"status":"done"
}