Login
POST
/api/login
const url = 'https://hitkeep.com/api/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","password":"example","remember_me":true}'};
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://hitkeep.com/api/login \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "password": "example", "remember_me": true }'Authenticates user credentials and issues session cookie.
Request Body required
Section titled “Request Body required ” Media type application/json
object
email
required
string format: email
password
required
string
remember_me
boolean
Example generated
{ "email": "hello@example.com", "password": "example", "remember_me": true}Responses
Section titled “ Responses ”Login response
Media type application/json
object
challenge_token
string
factors
Array<string>
passkey
object
key
additional properties
any
status
string
Example
{ "factors": [ "totp" ]}Invalid credentials
Media type application/json
object
message
string
Example generated
{ "message": "example"}