/login
DevelopingPOST
/loginModified at: 2 months ago
Log in a user and return a session token.
This method must be requested using POST and will fail with GET.
Request
Body Params application/x-www-form-urlencoded
email
string
required
Example: myname@mydomain.org.
password
string
required
Example: mysecretpassword.
Request samples
Responses
An example Response(200)
An example Response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
#/definitions/875319required
data
object
required
two_factor_auth_required
boolean
required
session
#/definitions/875260required
Example
{
"status": {
"created_timestamp": 1657034872,
"created_string": "Tue 05 Jul 2022 @ 15:27 (UTC)",
"duration": 0.127,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 2767,
"session_id": "659e8c297cb040430a660b284a50bd21",
"org_onboarding_status_id": 300,
"api_host": "api-stage.anomify.ai",
"user_onboarding_flags": {
"main_intro": false,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
},
"data": {
"two_factor_auth_required": false,
"session": {
"id": "659e8c297cb040430a660b284a50bd21",
"user": {
"id": 101,
"org_id": 101,
"name": "Phil Collins",
"email": "si@anomalarm.io",
"phone_number": "+447976123456",
"slack_member_id": "U04UFSKFY",
"demo": false,
"admin": true,
"org": {
"id": 101,
"name": "Anomify",
"timezone": "UTC",
"alert_muting": {
"muted": false,
"muted_until_timestamp": null,
"muted_until_timestamp_string": null,
"minutes_remaining": null
},
"onboarding_status_id": 300,
"connected_services": {
"slack": true,
"ms_teams": false
}
},
"notifications": {
"email_alerts": true
},
"onboarding_flags": {
"main_intro": false,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
}
}
}
}
Last modified: 2 months ago