Approve Trust Access request
curl --request POST \
--url https://api.trycomp.ai/v1/trust-access/admin/requests/{id}/approve \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"durationDays": 2
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({durationDays: 2})
};
fetch('https://api.trycomp.ai/v1/trust-access/admin/requests/{id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-access/admin/requests/{id}/approve"
payload = { "durationDays": 2 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Trust Access
Approve Trust Access request | Comp AI API
Approve a Trust Center access request, configure the grant window, and start the NDA or access email workflow.
POST
/
v1
/
trust-access
/
admin
/
requests
/
{id}
/
approve
Approve Trust Access request
curl --request POST \
--url https://api.trycomp.ai/v1/trust-access/admin/requests/{id}/approve \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"durationDays": 2
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({durationDays: 2})
};
fetch('https://api.trycomp.ai/v1/trust-access/admin/requests/{id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-access/admin/requests/{id}/approve"
payload = { "durationDays": 2 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

