Ir al contenido

Access Control - Auth

AuthController_login

POST
/access-control/auth/login
curl --request POST \
--url https://api.inspow.tech/api/v1/access-control/auth/login \
--header 'Content-Type: application/json' \
--data '{ "email": "example@example.com", "password": "Password1!", "tenantSlug": "test-restaurant" }'
Media type application/json
object
email
required

The email address of the user.

string format: email
<= 100 characters
Example
example@example.com
password
required

The user password.

string format: password
>= 6 characters <= 50 characters /(?:(?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*/
Example
Password1!
tenantSlug

The tenant slug to restrict login to a specific tenant.

string
Example
test-restaurant