---
title: "Get attachment content"
method: GET
path: "/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}"
tags: ["Request"]
---

# Get attachment content

`GET /rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}`

Returns the contents of an attachment.

To return a thumbnail of the attachment, use [servicedeskapi/request/\{issueIdOrKey\}/attachment/\{attachmentId\}/thumbnail](./#api-rest-servicedeskapi-request-issueidorkey-attachment-attachmentid-thumbnail-get).

**[Permissions](#permissions) required:** For the issue containing the attachment:

 *  *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in.
 *  If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue.

## Path parameters

- `issueIdOrKey` string, required
- `attachmentId` integer, required

## Response `200`

200 response

- unknown

## Other responses

- `303` — Returned if the request is successful. See the `Location` header for the download URL.
- `401` — Returned if the authentication credentials are incorrect.
- `403` — The user does not have the necessary permission.
- `404` — Returned if: * the attachment is not found. * attachments are disabled in the Jira settings.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/atlassian/apis/service-management-public-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/service-management-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/service-management-public-rest-api/versions/d1dc1a13b783/schema)
