Authorization

post
Login

https://api.foyer.ai/accounts/login
Login and receive an authentication token for use with all future requests.
Request
Response
Request
Body Parameters
email
required
string
The email address associated with the account.
password
required
string
The password associated with the account.
Response
200: OK
Successfully logged in.
<Response body empty>
401: Unauthorized
Could not log in.
<Response body empty>

Be sure to save the authorization token in the response header and include it when making API requests.

post
Reset Password

https://api.foyer.ai/accounts/resetPassword
Reset password for existing account.
Request
Response
Request
Headers
Authorization
required
string
Authorization token.
Body Parameters
currentPassword
required
string
Current password.
newPassword
required
string
New password.
confirmNewPassword
required
string
New password repeated.
Response
200: OK
Successfully changed password.
<Response body empty>
401: Unauthorized
Could not change password.
<Response body empty>