Skip to content
v1.0.0

Auth service

Authentication service API


Authenticate a user

POST
/auth/login

User login

Request Body

application/json
JSON
{
"email": "string",
"password": "string"
}

Responses

User logged in successfully
application/json
JSON
{
"accessToken": "string",
"id": "string",
"email": "string",
"name": "string"
}

Playground

Body

Samples

cURL
JavaScript
PHP
Python

Register a new user

POST
/auth/register

User registration

Request Body

application/json
JSON
{
"email": "string",
"name": "string",
"password": "string"
}

Responses

User registered successfully
application/json
JSON
{
"accessToken": "string",
"id": "string",
"email": "string",
"name": "string"
}

Playground

Body

Samples

cURL
JavaScript
PHP
Python

Refresh the access token using refresh token

POST
/auth/refresh

Refresh user token

Responses

Token refreshed successfully
application/json
JSON
{
"token": "string"
}

Playground

Samples

cURL
JavaScript
PHP
Python

Check if the token is valid

POST
/auth/validate

Validate user token

Request Body

application/json
JSON
{
"token": "string"
}

Responses

Token validated successfully
application/json
JSON
{
"user": {
"id": "string",
"email": "string",
"name": "string"
}
}

Playground

Body

Samples

cURL
JavaScript
PHP
Python

Send password reset link

POST
/auth/forgot/:email

Forgot password

Parameters

Path Parameters

email*
Typestring
Required
formatemail

Responses

Password reset link sent

Playground

Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Reset the user password

POST
/auth/reset

Reset password

Request Body

application/json
JSON
{
"token": "string",
"password": "string"
}

Responses

Password reset successfully

Playground

Body

Samples

cURL
JavaScript
PHP
Python

Powered by VitePress OpenAPI

Marco Frattarola