/api/auth/login
POST
/api/auth/login
const url = 'https://example.com/api/auth/login';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"example","password":"example"}'};
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://example.com/api/auth/login \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "password": "example" }'Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
email
string
password
string
Example generated
{ "email": "example", "password": "example"}object
email
string
password
string
Example generated
{ "email": "example", "password": "example"}object
email
string
password
string
Example generated
{ "email": "example", "password": "example"}Responses
Section titled “ Responses ”OK