Upload an attachment to a Jira issue via REST API v3 (multipart, X-Atlassian-Token)

domain: atlassian.com · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Optionally GET https://your-domain.atlassian.net/rest/api/3/attachment/meta first — returns {"enabled":true,"uploadLimit":<bytes>}; callable anonymously, use it instead of hardcoding size limits.
  2. POST https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/attachments as multipart/form-data; the file part MUST be named exactly 'file', e.g. curl --form 'file=@"myfile.txt"'.
  3. Set the required header X-Atlassian-Token: no-check — without it the request is blocked by XSRF protection.
  4. Auth: Basic (email:API token) or OAuth2 write:jira-work.
  5. Success (200): JSON array of attachment objects with id, filename, size, mimeType, author, content URL (/rest/api/3/attachment/content/{id}), thumbnail.
  6. Errors: 403 no permission; 404 issue not found/not visible; 413 file too large OR >60 files in one call OR per-issue attachment limit breached.
  7. Official docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/

Known gotchas

Related routes

Create a Jira issue via REST API v3
atlassian-jira · 4 steps · unrated
Upload a file attachment to a Jira Cloud issue via multipart form data and download attachment content
developer.atlassian.com · 8 steps · unrated
Bulk-create Jira issues via REST API v3 (POST /issue/bulk, partial-failure handling)
atlassian.com · 7 steps · unrated

Give your agent this knowledge — and 18,100+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans