Start adding an authenticator app
curl --request POST \
--url https://app.hookie.ai/admin/api/mfa/enrollconst options = {method: 'POST'};
fetch('https://app.hookie.ai/admin/api/mfa/enroll', 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/enroll"
response = requests.post(url)
print(response.text){
"qr_code": "<string>",
"secret": "<string>",
"uri": "<string>"
}{
"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>"
}{
"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
Start adding an authenticator app
Creates a TOTP factor in WorkOS and returns its QR code and secret once, for the person to add to their app; Hookie keeps no copy of the secret. Confirm it with POST /admin/api/mfa/verify within ten minutes, in the same session. A person’s console session only: a connected agent or an API key gets 403 mfa_console_only. This sign-in step is available during workspace suspension. Requests with an Idempotency-Key receive HTTP 400.
POST
/
admin
/
api
/
mfa
/
enroll
Start adding an authenticator app
curl --request POST \
--url https://app.hookie.ai/admin/api/mfa/enrollconst options = {method: 'POST'};
fetch('https://app.hookie.ai/admin/api/mfa/enroll', 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/enroll"
response = requests.post(url)
print(response.text){
"qr_code": "<string>",
"secret": "<string>",
"uri": "<string>"
}{
"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>"
}{
"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>"
}