| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 22 Dec 2025 11:31:13 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20110709142429
location: https://web.archive.org/web/20110709142429/https://www.zendesk.com/api/attachments
server-timing: captures_list;dur=0.547550, exclusion.robots;dur=0.044167, exclusion.robots.policy;dur=0.035255, esindex;dur=0.008736, cdx.remote;dur=19.344578, LoadShardBlock;dur=575.282894, PetaboxLoader3.resolve;dur=239.904884, PetaboxLoader3.datanode;dur=223.719403
x-app-server: wwwb-app225-dc8
x-ts: 302
x-tr: 618
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app225; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 22 Dec 2025 11:31:13 GMT
content-type: text/html; charset=UTF-8
x-archive-orig-server: nginx/0.7.65
x-archive-orig-date: Sat, 09 Jul 2011 14:24:29 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: w3tc_referrer=http%3A%2F%2Fwww.zendesk.com%2Fresources%2Fapi; path=/private/
x-archive-orig-x-pingback: https://www.zendesk.com/private/xmlrpc.php
x-archive-orig-x-powered-by: W3 Total Cache/0.9.2.3
x-archive-orig-last-modified: Sat, 09 Jul 2011 14:24:29 GMT
x-archive-orig-vary: Cookie,Accept-Encoding
x-archive-orig-expires: Sat, 09 Jul 2011 16:24:29 GMT
x-archive-orig-cache-control: max-age=7200
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 09 Jul 2011 14:24:29 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: WIDE-20110709135806-crawl415/WIDE-20110709141517-01388.warc.gz
server-timing: captures_list;dur=0.567902, exclusion.robots;dur=0.018977, exclusion.robots.policy;dur=0.008798, esindex;dur=0.025710, cdx.remote;dur=5.244973, LoadShardBlock;dur=236.881013, PetaboxLoader3.datanode;dur=215.548580, PetaboxLoader3.resolve;dur=140.757801, load_resource;dur=161.992378
x-app-server: wwwb-app225-dc8
x-ts: 200
x-tr: 467
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Attachments Zendesk Help Desk Software API
- White Papers
- A Guide to Multi-Channel Customer Support
- An Inside Look Into How Groupon Does Support
- Guide to Customizing and Integrating Your Zendesk
- How To Support Your Customers with Twitter
- Saas Help Desk Software: Your 6 Requirements
- Selecting Help Desk Software for the Enterprise
- Zendesk for Salesforce: An Integration Guide
- Webinars
- Why Zendesk?
- Batchbook + Zendesk Webinar Integration
- Capture the Definitive Business Metric: Customer Satisfaction
- Customer Support Made Easy: Why Zendesk?
- CSS in Zendesk
- Customizing Zendesk to Work for You
- Get Satisfaction + Zendesk Integration Webinar
- Getting Started with your Zendesk
- Getting Started: Intermediate
- GoodData for Zendesk Webinar
- JIRA + Zendesk Integration Webinar
- LiquidPlanner + Zendesk Integration Webinar
- LogMeIn Rescue for Zendesk – Remote Support Solution Webinar
- New Release of GoodData for Zendesk
- Salesforce + Zendesk Integration Webinar
- SurveyGizmo + Zendesk Integration Webinar
- Sweeten your help desk with an integration to SugarCRM
- Webinar: Tips and Tricks for Getting the Most Out of Zendesk
- Zendesk for iPad
- What’s New?
- Zendesk for Seesmic Desktop
- Zendesk for Twitter 2.0
- Zendesk New Community Features Webinar
- Zenfession: BigTent
- Zenfession: Postbox
- Ifbyphone for Zendesk Integration
- Customer Stories
- API
- Documentation
- Partners
- Newsletter
Mail API
Rest API
- Introduction
- Organizations
- Groups
- Tickets
- Attachments
- Users
- Tags
- Forums
- Entries
- Search
- Ticket Fields
- Macros
Widgets
Remote Authentication
Targets
Rest API: Attachments
You can upload and associate attachments to comments via the REST API. Please note, that in order to do so, you submit the attachments first, and then subsequently link them to the comment when creating that.
Create attachment
curl -u username:password -H "Content-Type: application/binary" \
--data-binary @somefile.txt \
-X POST https://helpdesk.zendesk.com/uploads.xml?filename=somefile.txt
You will get a response containing a token, which is used to identify this file later on. Example:
<uploads token="abc123">
<attachments>
<attachment>789</attachment>
</attachments>
</uploads>
The number (789 in this case) is the id of the attachment. You can add another attachment to the same upload “batch” by supplying the just returned token:
curl -u username:password -H "Content-Type: application/binary" \
--data-binary @otherfile.txt \
-X POST https://helpdesk.zendesk.com/uploads.xml?filename=otherfile.txt&token=abc123
Which results in:
<uploads token="abc123">
<attachments>
<attachment>789</attachment>
<attachment>790</attachment>
</attachments>
</uploads>
Once you’ve uploaded the files, you can create a ticket with these attachments like so:
curl -u username:password -H "Content-Type: application/xml" \
-d "<ticket><description>Hi</description><uploads>abc123</uploads></ticket>" \
-X POST https://helpdesk.zendesk.com/tickets.xml
Or, create a comment for an existing ticket (in this case ticket 123):
curl -u username:password -H "Content-Type: application/xml" \
-d "<comment><value>Some comment</value><uploads>abc123</uploads></comment>" \
-X PUT https://helpdesk.zendesk.com/tickets/123.xml