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
| Name | Type | Description |
|---|---|---|
| org_id | string | Organization id. Optional when the user belongs to one organization; otherwise the error lists theirs. |
| purposerequired | enum: contact_file | knowledge_document | import_csv | logo | What the file is for. |
| filenamerequired | string | The file's name, for example price-list.pdf. |
| content_typerequired | string | The file's MIME type, for example application/pdf or text/csv. |
| size_bytesrequired | number | The file's exact size in bytes. |
| target | object | Where the file goes, when the purpose needs it: e.g. {"contact_id": "..."} or {"finn_id": "..."}. |