Skip to main content

Upload attachment

Upload a local file and get a token; pass the token to Create ticket or Add comment to attach the file.

Command in the Zendesk toolkit · id ooa.zendesk/upload_attachment · 7 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SiteStringYesYour Zendesk address, e.g. https://acme.zendesk.com, or just the subdomain acme.
EmailStringNoEmail of the agent the API token belongs to. Leave empty when using an OAuth token.
API tokenCredentialNoZendesk API token from the vault (used with email).
OAuth tokenCredentialNoOAuth access token from the vault, instead of email and API token. Or leave it empty and choose a connection that signs in, which gets and renews the token.
PathFileYesLocal file to upload.
Add to tokenStringNoToken of an earlier upload, to group several files under one token.
File nameStringNoName to give the attachment; the local file name when empty.

Outputs​

OutputTypeWhat it is
tokenStringUpload token to pass in upload_tokens.
attachment_idNumberId of the stored file.