Access Control - Auth
AuthController_login
POST
/access-control/auth/login
const url = 'https://api.inspow.tech/api/v1/access-control/auth/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example@example.com","password":"Password1!","tenantSlug":"test-restaurant"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Request Body required
Sección titulada «Request Body required » Media type application/json
object
email
required
The email address of the user.
string format: email
Example
example@example.com password
required
The user password.
string format: password
Example
Password1! tenantSlug
The tenant slug to restrict login to a specific tenant.
string
Example
test-restaurant