Skip to main content
An attachment is a file carried by a ticket or a comment. For fields and response details, see the API reference. 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.

Upload a file

This command uploads one file and prints the signed_id that attaches it. Use this when the file has to be attached by a later call than the one that uploads it, such as a script that uploads once and reuses the id, or a request you build yourself against the API. The file is sent straight to storage rather than through the API.
Required arguments:
  • <file> - Path to the file to upload
This command takes no flags beyond the global ones.
Sample output (--json)
With --quiet, the command prints the payload without the envelope. Read signed_id from it, 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.