User Login
POST
/v1/users/login
const url = 'https://example.com/api/v1/users/login';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({password: 'admin', stayLoggedIn: 'true', username: 'admin@admin.com'})};
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/v1/users/login \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data password=admin \ --data stayLoggedIn=true \ --data username=admin@admin.comParameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” provider
string
Auth provider
Request Body required
Section titled “Request Body required ”Login Data
object
password
string
Example
admin stayLoggedIn
boolean
username
string
Example
admin@admin.comobject
password
string
Example
admin stayLoggedIn
boolean
username
string
Example
admin@admin.comResponses
Section titled “ Responses ”OK
Media type application/json
object
attachmentToken
string
expiresAt
string
token
string
Example generated
{ "attachmentToken": "example", "expiresAt": "example", "token": "example"}