Skip to main content

upload_file

Create a staging record and return a signed upload URL. Upload the file via HTTP PUT to the returned uploadUrl. After the upload completes, you must call upload_completed to trigger processing.
ParameterTypeRequiredDefaultDescription
projectIdUUIDYes-Project ID
resourceTypestringYes-contract or statement
fileNamestringYes-Original file name (e.g. contract.pdf)
fileTypestringNoapplication/pdfMIME type of the file
fileSizeintegerYes-File size in bytes
extractionsstring[]No-Extractions to run after upload (contract only)
Valid extractions: entities, artists, writers, royalties, splits, costs, compensations, dates, accounting-periods, types, signatures, control-areas, creative-approvals, balances, recordings, compositions, relations Sample prompt: “Upload contract.pdf and extract royalties and dates”

upload_completed

Signal that a file upload is complete. Call this after successfully uploading the file via HTTP PUT to the uploadUrl returned by upload_file. This triggers processing.
ParameterTypeRequiredDefaultDescription
stagingIdstringYes-Staging ID returned from upload_file
projectIdUUIDYes-Project ID
resourceTypestringYes-contract or statement
Sample prompt: “Signal that upload stg-456 is complete”

upload_status

Check the processing status of an uploaded contract or statement.
ParameterTypeRequiredDefaultDescription
stagingIdstringYes-Staging ID returned from upload_file
projectIdUUIDYes-Project ID
resourceTypestringYes-contract or statement
Sample prompt: “Check the status of upload stg-456”

download_file

Get a signed download URL for a contract or statement file. The URL expires in 1 hour.
ParameterTypeRequiredDefaultDescription
resourceIdstringYes-Contract ID or Statement ID
projectIdUUIDYes-Project ID
resourceTypestringYes-contract or statement
Sample prompt: “Download contract abc-123”