Attachments
Upload and manage file attachments for agreements
Archive Attachment
This endpoint archives a file attachment within Common Paper. Archived attachments are removed from the active attachment list but can be restored from the Common Paper UI.
path Parameters
idThe UUID of the attachment to archive.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Archive Attachment › Responses
No Content. The attachment was archived successfully.
Upload Attachment
Upload a PDF attachment to Common Paper.
API clients (API key):
application/json: sendattachment.pdfas a base64-encoded string of the PDF bytes.multipart/form-data: send the file asattachment[pdf]plus text fields.- Required:
pdf,name, anduploaded_by(email of a Common Paper user associated with your organization).
MCP clients (OAuth):
- Send
attachment.filename(local path). Optional:name/description. - Do not send
uploaded_by— the authenticated OAuth user is recorded as the uploader. - Returns
{ curl_command }— run it to POST the PDF bytes to the signed URL. Do not send file bytes through the MCP tool. - Required for MCP mint:
filenameonly.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Upload Attachment › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: attachment | |
| type = object · requires: attachment | |
| type = object · requires: attachment |
Upload Attachment › Responses
API clients receive the created attachment (JSON:API). MCP clients receive a curl_command to POST the local PDF bytes.