/login/validateclient
DevelopingGET
/login/validateclientLast modified:Â a year ago
Validate a two-factor authentication code for a new client, or refresh of existing client.
If the "token" parameter is not provided, this method will only validate from the same client that the login was attempted from.
Request
Query Params
code
stringÂ
required
Example: 123456.
token
stringÂ
optional
Example: 7b50ef58dd602fec14273c3ce6e0528c.
Request samples
Responses
An example Response(200)
An example Response
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
object {0}
Example
{
"status": {
"created_timestamp": 1657036718,
"created_string": "Tue 05 Jul 2022 @ 15:58 (UTC)",
"duration": 0.021,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 0,
"session_id": "9574317bd9284de6d6d21f1cc6d128ce",
"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": {
"message": "Thanks, your login has been validated.",
"session": {
"id": "9574317bd9284de6d6d21f1cc6d128ce",
"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: a year ago