getSelfLoginFailures
Get a list of failed login attempts across all Orgs for the current admin
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Response Body
curl -X GET "https://example.com/api/v1/self/login_failures"{ "email": "admin@test.com", "last_failure_at": 1509161968, "num_attempts": 40, "src_ips": [ "192.168.1.39", "192.168.1.38", "192.168.1.37" ], "user_agents": [ "Test UA 39", "Test UA 38", "Test UA 37" ]}getSelfApiUsage GET
Get the status of the API usage for the current user or API Token
updateSelfEmail POST
Change Email We require the user to verify that they actually own the email address they intend to change it to. After the API call, the user will receive an email to the new email address with a link like https://manage.mist.com/verify/update?expire=:exp_time&email=:admin_email&token=:token Upon clicking the link, the user is provided with a login page to authenticate using existing credentials. After successful login, the email address of the user gets updated **Note**: The request parameter email can be used by UI to validate that the current session (if any) belongs to the admin or provide a login page (by pre-populating the email on login screen). UI can also use the request parameter expire to validate token expiry.