Set the 2FA source provider
curl --request POST \
--url https://api.trycomp.ai/v1/integrations/sync/two-factor-source \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "<string>",
"provider": "google-workspace"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', provider: 'google-workspace'})
};
fetch('https://api.trycomp.ai/v1/integrations/sync/two-factor-source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/sync/two-factor-source"
payload = {
"organizationId": "<string>",
"provider": "google-workspace"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Integrations
Set the 2FA source provider | Comp AI API
Set the 2FA source provider in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables, and collect.
POST
/
v1
/
integrations
/
sync
/
two-factor-source
Set the 2FA source provider
curl --request POST \
--url https://api.trycomp.ai/v1/integrations/sync/two-factor-source \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "<string>",
"provider": "google-workspace"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', provider: 'google-workspace'})
};
fetch('https://api.trycomp.ai/v1/integrations/sync/two-factor-source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/sync/two-factor-source"
payload = {
"organizationId": "<string>",
"provider": "google-workspace"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Auto-resolved from your API key / session. You can omit this; it is ignored by the server.
Provider slug whose 2FA check feeds the People-tab 2FA column (must be bound to the 2FA task — call available-2fa-sources for options). Pass null or omit to clear the source.
Example:
"google-workspace"
Response
201 - undefined
Was this page helpful?

