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.
Authorizations
API key for authentication
Path Parameters
Member ID
"mem_abc123def456"
onboard, offboard Body
Name of the file
255"document.pdf"
MIME type of the file
"application/pdf"
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.
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
Key of a file already uploaded via /v1/uploads/presign (purpose=attachment). The server fetches the bytes from storage — no base64 needed. Provide exactly one of fileData or s3Key.
"org_abc123/uploads/attachment/1700000000000-rbac-matrix.xlsx"
Description of the attachment
500"Meeting notes from Q4 planning session"
User ID of the user uploading the attachment (required for API key auth, ignored for JWT auth)
"usr_abc123def456"

