Skip to main content
Docs menu
All MCP tools

MCP tools · Links, uploads and test calls

get_upload_url

Get a short-lived URL to upload one file to this workspace: a contact's file (contact_file), a Finn knowledge document (knowledge_document), a CSV to import (import_csv) or the workspace logo (logo; Owners and Admins). Then send the file's bytes with an HTTP PUT to that URL with the headers given, and call finish_upload with the upload_id. Nothing is saved in Finn until finish_upload succeeds. The URL can only write this one file.

Scope needed
crm:docs:write or crm:import or admin:write or finn:write
Acts as
You, the signed-in member, with your role's permissions.
Changes data
Yes
Held for approval
No
Available to
Switched on per organization (link, upload and test call tools)

Inputs

NameTypeDescription
org_idstringOrganization id. Optional when the user belongs to one organization; otherwise the error lists theirs.
purposerequiredenum: contact_file | knowledge_document | import_csv | logoWhat the file is for.
filenamerequiredstringThe file's name, for example price-list.pdf.
content_typerequiredstringThe file's MIME type, for example application/pdf or text/csv.
size_bytesrequirednumberThe file's exact size in bytes.
targetobjectWhere the file goes, when the purpose needs it: e.g. {"contact_id": "..."} or {"finn_id": "..."}.