Read your two-step sign-in state
curl --request GET \
--url https://app.hookie.ai/admin/api/mfaconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/mfa', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/mfa"
response = requests.get(url)
print(response.text){
"mfa": {
"enrolled": true,
"required": true,
"verified": true
},
"can_require": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}Account
Read your two-step sign-in state
Whether you have an authenticator app, whether the workspace requires one, and whether this session has entered a code (SEC-12, #314). can_require says whether the workspace’s plan lets its owner require one (Pro, Team, Ultimate). A person’s console session only: a connected agent or an API key gets 403 mfa_console_only.
GET
/
admin
/
api
/
mfa
Read your two-step sign-in state
curl --request GET \
--url https://app.hookie.ai/admin/api/mfaconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/mfa', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/mfa"
response = requests.get(url)
print(response.text){
"mfa": {
"enrolled": true,
"required": true,
"verified": true
},
"can_require": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}