Upload employment evidence
curl --request POST \
--url https://api.trycomp.ai/v1/people/{id}/employment-evidence/{eventType} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "document.pdf",
"fileType": "application/pdf"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'document.pdf', fileType: 'application/pdf'})
};
fetch('https://api.trycomp.ai/v1/people/{id}/employment-evidence/{eventType}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/people/{id}/employment-evidence/{eventType}"
payload = {
"fileName": "document.pdf",
"fileType": "application/pdf"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)People
Upload employment evidence | Comp AI API
Upload employment evidence in Comp AI. Invite and manage workforce members, training status, device compliance, email preferences, and employee evidence.
POST
/
v1
/
people
/
{id}
/
employment-evidence
/
{eventType}
Upload employment evidence
curl --request POST \
--url https://api.trycomp.ai/v1/people/{id}/employment-evidence/{eventType} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "document.pdf",
"fileType": "application/pdf"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'document.pdf', fileType: 'application/pdf'})
};
fetch('https://api.trycomp.ai/v1/people/{id}/employment-evidence/{eventType}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/people/{id}/employment-evidence/{eventType}"
payload = {
"fileName": "document.pdf",
"fileType": "application/pdf"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Path Parameters
Body
application/json
Base64-encoded file contents. For the web UI / direct callers. AI/MCP clients should instead upload via /v1/uploads/presign (purpose=attachment) and pass s3Key — base64 through an LLM is impractically slow and times out. Provide exactly one of fileData or s3Key.
Example:
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
Response
201
Was this page helpful?

