Files

Create a file upload

Mint a short-lived signed PUT URL, or copy a public file with sourceUrl. Omit scope for a workspace file. Pass scope "user" to keep the file visible only to you. PUT bytes to uploadUrl when it is returned, then pass the returned url on needleSendLinkedinMessage or needleSendLinkedinInMail. Campaign steps can attach workspace files only. downloadUrl is a preview link. Do not store uploadUrl.

TOOLneedleCreateFileUpload

Input

scopeoptional

"workspace" | "user"

workspace shares the file with the organization. user keeps it visible only to you. Omit for a workspace file. Campaign steps can attach workspace files only.

filenameoptional

string

contentTypeoptional

string

sourceUrloptional

string · uri

Public https URL. Needle copies the file into a private object and returns the url to attach.

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy