API by router
Auth
POST
application/json- body
email*EmailFormat
emailSuccessful Response
application/json- response
curl -X POST 'https://example.com/auth/forgot-password' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com"}'Example Response
{}POST
application/json- body
email*EmailFormat
emailpassword*PasswordLength
1 <= length <= 128Successful Response
application/json- response
access_token*Access Tokenemail_verified?Email VerifiedDefault
trueexpires_in?Expires InDefault
1800refresh_token*Refresh Tokentoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/auth/login' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "password": "string"}'Example Response
{ "access_token": "string", "email_verified": true, "expires_in": 1800, "refresh_token": "string", "token_type": "bearer"}POST
application/json- body
refresh_token?Refresh TokenDefault
""Successful Response
curl -X POST 'https://example.com/auth/logout' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty
GET
HTTPBearerheader
AuthorizationBearer <token>Successful Response
application/json- response
curl -X GET 'https://example.com/auth/me'Example Response200
{}POST
application/json- body
refresh_token?Refresh TokenDefault
""Successful Response
application/json- response
access_token*Access Tokenemail_verified?Email VerifiedDefault
trueexpires_in?Expires InDefault
1800refresh_token*Refresh Tokentoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/auth/refresh' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "access_token": "string", "email_verified": true, "expires_in": 1800, "refresh_token": "string", "token_type": "bearer"}POST
application/json- body
email*EmailFormat
emailpassword*PasswordLength
8 <= length <= 128Successful Response
application/json- response
access_token*Access Tokenemail_verified?Email VerifiedDefault
trueexpires_in?Expires InDefault
1800refresh_token*Refresh Tokentoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/auth/register' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "password": "stringst"}'Example Response
{ "access_token": "string", "email_verified": true, "expires_in": 1800, "refresh_token": "string", "token_type": "bearer"}POST
application/json- body
email*EmailFormat
emailSuccessful Response
application/json- response
curl -X POST 'https://example.com/auth/resend-verification' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com"}'Example Response
{}POST
application/json- body
new_password*New PasswordLength
8 <= length <= 128token*TokenLength
1 <= length <= 256Successful Response
application/json- response
curl -X POST 'https://example.com/auth/reset-password' \ -H 'Content-Type: application/json' \ -d '{ "new_password": "stringst", "token": "string"}'Example Response
{}POST
Successful Response
application/json- response
access_token*Access Tokenemail_verified?Email VerifiedDefault
trueexpires_in?Expires InDefault
1800refresh_token*Refresh Tokentoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/auth/token'Example Response200
{ "access_token": "string", "email_verified": true, "expires_in": 1800, "refresh_token": "string", "token_type": "bearer"}POST
application/json- body
code*CodeLength
6 <= length <= 6email*EmailFormat
emailSuccessful Response
application/json- response
curl -X POST 'https://example.com/auth/verify-email' \ -H 'Content-Type: application/json' \ -d '{ "code": "string", "email": "user@example.com"}'Example Response
{}