{"description":"\u0421\u0435\u0440\u0432\u0438\u0441 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 (Email/Password & OAuth2)","endpoints":{"\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f (Email)":[{"auth_required":false,"description":"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u0437\u0430\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e\u0434 \u043d\u0430 Email.","method":"POST","path":"/register","payload":{"application":"string (required)","email":"string (required)","password":"string (required)"},"responses":{"200":{"message":"Verification code sent to your email...","status":"ok"},"400":{"error":"Email and password are required","status":"ko"},"409":{"error":"User with this email already exists and verified","status":"ko"},"422":{"error":"Application not in application pool","status":"ko"}}},{"auth_required":false,"description":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 email \u0430\u0434\u0440\u0435\u0441\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u043e\u0433\u043e 6-\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 (\u0432\u0440\u0435\u043c\u044f \u0436\u0438\u0437\u043d\u0438 10 \u043c\u0438\u043d\u0443\u0442).","method":"POST","path":"/verify-email","payload":{"application":"string (required)","code":"string (required)","email":"string (required)"},"responses":{"200":{"message":"Email verified successfully...","status":"ok"},"400":{"error":"Invalid or expired code","status":"ko"},"404":{"error":"No verification code found","status":"ko"},"422":{"error":"Application not in application pool","status":"ko"}}},{"auth_required":false,"description":"\u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u043e email \u0438 \u043f\u0430\u0440\u043e\u043b\u044e. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0430\u0440\u0443 JWT \u0442\u043e\u043a\u0435\u043d\u043e\u0432.","method":"POST","path":"/login","payload":{"application":"string (required)","email":"string (required)","password":"string (required)"},"responses":{"200":{"access_token":"JWT","refresh_token":"JWT","status":"ok"},"401":{"error":"Invalid email or password","status":"ko"},"403":{"error":"Please verify your email before logging in","status":"ko"},"422":{"error":"Application not in application pool","status":"ko"}}},{"auth_required":false,"description":"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u044b Access/Refresh \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0431\u0435\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430 \u043f\u0430\u0440\u043e\u043b\u044f.","method":"POST","path":"/refresh","payload":{"application":"string (required)","refresh_token":"string (required)"},"responses":{"200":{"access_token":"JWT","refresh_token":"JWT","status":"ok"},"401":{"error":"Refresh token expired / invalid","status":"ko"},"422":{"error":"Application not in application pool","status":"ko"}}}],"\u0421\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b (OAuth2)":[{"auth_required":false,"description":"\u0412\u0445\u043e\u0434/\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: google, github, yandex).","method":"POST","params":{"provider":"\u0418\u043c\u044f \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0432 URL (\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)"},"path":"/oauth/<provider>","payload":{"application":"string (required)","token":"string (required - \u0442\u043e\u043a\u0435\u043d, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435)"},"responses":{"200":{"access_token":"JWT","refresh_token":"JWT","status":"ok"},"400":{"error":"Provider not supported / Token missing / Verification failed","status":"ko"},"422":{"error":"Application not in application pool","status":"ko"}}}],"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c (\u0417\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0435 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b)":[{"auth_required":true,"description":"\u0421\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","headers":{"Authorization":"Bearer <access_token>"},"method":"POST","path":"/change-password","payload":{"new_password":"string (required)","old_password":"string (required)"},"responses":{"200":{"message":"Password updated successfully","status":"ok"},"400":{"error":"Incorrect old password","status":"ko"},"401":{"error":"Invalid or expired token","status":"ko"}}},{"auth_required":true,"description":"\u041f\u043e\u043b\u043d\u043e\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","headers":{"Authorization":"Bearer <access_token>"},"method":"POST","path":"/delete-account","responses":{"200":{"message":"Account deleted successfully","status":"ok"},"401":{"error":"Invalid or expired token","status":"ko"}}}]},"service":"auth.sysassysdba.com","version":"1.2.57"}
