Authorizations
Token-based authentication with required prefix "Token"
Response
No response body
curl --request POST \
--url https://api.meetcampfire.com/ca/api/file/upload \
--header 'Authorization: <api-key>'Upload a file directly to Campfire. This is the primary way to upload files.
Supported Models: bill, chat, close_task, closecheckitem, contract, credit_memo, customer, debit_memo, draft_queue, fixed_asset, intercompany_journal, invoice, journal_entry, journalentry, reconciliation, reconciliation_report
Supported Content Types: application/msword, application/pdf, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/gif, image/jpeg, image/jpg, image/png, image/webp, text/csv, text/plain
Maximum File Size: 100MB
Example:
curl -X POST "https://api.campfire.com/ca/api/file/upload?model=bill&object_id=12345" \
-H "Authorization: Token YOUR_TOKEN" \
-F "[email protected]"
Query Parameters:
model (required): Model type (e.g., “bill”, “invoice”, “contract”)object_id (optional): ID of the object to attach the file toRequest Body:
file (required): The file to upload (multipart/form-data)curl --request POST \
--url https://api.meetcampfire.com/ca/api/file/upload \
--header 'Authorization: <api-key>'Token-based authentication with required prefix "Token"
No response body