Skip to main content
Most of the time you do not need this command: --attach on tickets create and tickets comments create uploads and attaches a file in one step. Use attachments upload when the file has to be attached by a later call than the one that uploads it — a script that uploads once and reuses the id, or a request you build yourself against the API.
Sample output on this page is shown as the --json envelope, which is reproducible. Pretty tables depend on your terminal width. See Output formats.

attachments upload

Uploads one file and prints the signed_id that attaches it. The file is sent straight to storage rather than through the API.
This command takes no flags beyond the global ones.
Capture just the id with --quiet, then attach it through the API:
A signed_id is only accepted in the workspace that uploaded it, and a file that is never attached to anything is cleaned up automatically.