AuthsController_login
POST
/auths/login
const url = 'https://example.com/auths/login';const options = { method: 'POST', headers: {'x-tenant-schema': 'example', 'Content-Type': 'application/json'}, body: '{"email":"example","code":"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/auths/login \ --header 'Content-Type: application/json' \ --header 'x-tenant-schema: example' \ --data '{ "email": "example", "code": "example" }'Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tenant-schema
required
string
The tenant of the request.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
code
required
string
Examplegenerated
{ "email": "example", "code": "example"}Responses
Section titled “Responses”The session and a short-lived access token. The refresh token is set as an HttpOnly cookie.
Media typeapplication/json
object
id
required
string
principalType
required
string
tenant
required
string
email
required
string
department
required
string
accessToken
required
string
accessTokenExpiresAt
required
number
Example
{ "principalType": "user"}