Authentication
Operations related to user authentication with PromptEasy.eu API.
Login
POST
https://api.prompteasy.eu/v1/login
Body
application/json
emailstringrequiredExample
foo@bar.invalidpasswordstringrequiredExample
V3rys3cr3tP@ssw0rdrememberbooleanExample
trueResponse
Login successful
Login credentials correct, 2FA setup started
204No Content
Login credentials correct, waiting 2FA code next. Make same request but with 2fa_code
400Bad Request
Login credentials were correct but 2fa_code was wrong
401Unauthorized
Login credentials were incorrect
Authorization
ApiKeyAuthapiKey in headerRequest password reset link
POST
https://api.prompteasy.eu/v1/forgot-password
Body
application/json
emailstringrequiredExample
foo@bar.invalidResponse
Password reset link sent
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerReset password with token
POST
Body
application/json
emailstring<email>requiredExample
foo@bar.invalidpasswordstringrequiredExample
V3rys3cr3tP@ssw0rdNewpassword_ confirmationstringrequiredExample
V3rys3cr3tP@ssw0rdNewParameters
tokenstringrequiredpathThe password reset token.
Response
200OKobject
Password reset successful
400Bad Requestobject
Error while resetting password
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerLogout
POST
https://api.prompteasy.eu/v1/logout
Response
204No Content
No Content
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)