Appearance
Login API
This API is used for logging in to the system with the provided email and password.
Endpoint
POST /login
Request Body
json
{
"email": "test@sellersoft.com",
"password": "test"
}Response Example
json
{
"type": "SUCCESS",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJzMmNvcmUiLCJpc3MiOiJzMmNvcmUiLCJ1c2VySWQiOiIwYTRiYzMyZC0yODU2LTQ3MzYtOTUzOS0zMTdiZmQ2ZDc5M2IiLCJ1c2VyVmVyc2lvbiI6MCwiZXhwIjoxNzE4MDY5NDAyfQ.MEKWsKNWc2OVfnzqzo1skHw3Sv4RFTW5gXJKFPUIN9U0",
"user": {
"id": "0a4bc32d-2856-4736-9539-317bfd6d7888",
"name": "test",
"email": "test@sellersoft.com",
"active": true,
"inactiveReason": null,
"createdAt": "2024-04-11T02:53:07.654503Z",
"updatedAt": "2024-06-04T01:24:31.153252Z",
"organizations": [
{
"organization": {
"id": "3f424caf-0eba-4813-b3e7-7ca0393af888",
"name": "test organization",
"createdAt": "2024-03-05T22:17:23.520948Z",
"updatedAt": "2024-04-09T21:15:15.615765Z"
},
"role": "ADMIN",
"permissions": []
}
],
"workspaces": [],
"hostRole": "USER"
}
}