Set the employee sync provider
curl --request POST \
--url https://api.trycomp.ai/v1/integrations/sync/employee-sync-provider \
--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/employee-sync-provider', 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/employee-sync-provider"
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 employee sync provider | Comp AI API
Set the employee sync provider in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables.
POST
/
v1
/
integrations
/
sync
/
employee-sync-provider
Set the employee sync provider
curl --request POST \
--url https://api.trycomp.ai/v1/integrations/sync/employee-sync-provider \
--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/employee-sync-provider', 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/employee-sync-provider"
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 to use for employee sync (must have the "sync" capability in its manifest — call list-providers to see options). Pass null or omit the field to disable employee sync for this org.
Example:
"google-workspace"
Response
201 - undefined
Was this page helpful?

