Upload a custom Trust Access NDA
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/nda-template \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "acme-mutual-nda.pdf",
"fileType": "application/pdf",
"s3Key": "org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileName: 'acme-mutual-nda.pdf',
fileType: 'application/pdf',
s3Key: 'org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf'
})
};
fetch('https://api.trycomp.ai/v1/trust-portal/nda-template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/nda-template"
payload = {
"fileName": "acme-mutual-nda.pdf",
"fileType": "application/pdf",
"s3Key": "org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "att_abc123def456",
"fileName": "acme-mutual-nda.pdf",
"uploadedAt": "2023-11-07T05:31:56Z"
}Trust Portal
Upload a custom Trust Access NDA | Comp AI API
Uploads or replaces the PDF NDA that Trust Center requesters sign instead of the generated default. Applies to requests approved afterwards; NDAs already.
POST
/
v1
/
trust-portal
/
nda-template
Upload a custom Trust Access NDA
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/nda-template \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "acme-mutual-nda.pdf",
"fileType": "application/pdf",
"s3Key": "org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileName: 'acme-mutual-nda.pdf',
fileType: 'application/pdf',
s3Key: 'org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf'
})
};
fetch('https://api.trycomp.ai/v1/trust-portal/nda-template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/nda-template"
payload = {
"fileName": "acme-mutual-nda.pdf",
"fileType": "application/pdf",
"s3Key": "org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "att_abc123def456",
"fileName": "acme-mutual-nda.pdf",
"uploadedAt": "2023-11-07T05:31:56Z"
}Authorizations
API key for authentication
Body
application/json
Original file name of the NDA
Example:
"acme-mutual-nda.pdf"
MIME type of the file. Only application/pdf is accepted.
Available options:
application/pdf Example:
"application/pdf"
The NDA PDF (max 10MB and at most 50 pages; both are enforced). First call /v1/uploads/presign with purpose=document to get a presigned URL and s3Key, PUT the raw PDF bytes to that URL, then pass the returned s3Key here. The server reads the bytes from storage; never send file contents inline.
Example:
"org_abc123/uploads/document/1700000000000-acme-mutual-nda.pdf"
Was this page helpful?

