Appearance
Attachments API
Files can be attached to issues, epics, and the comments on either. The same five operations exist for each parent; only the path prefix differs. A file can also be uploaded to the project before its issue exists, as an orphan attachment, and handed to the new issue when it is created.
Report attachments live on the Reports API.
Permissions
| Action | Required Permission | Scope |
|---|---|---|
| List | Project access | In accessible projects |
| Upload | Attachments: Create | In accessible projects |
| Download one file | Attachments: Read | In accessible projects |
| Download all of an issue's files | Attachments: Read | In accessible projects |
| Delete one file | Attachments: Delete (Own/All) | Own: files you uploaded |
| Delete all of a parent's files | Attachments: Delete (All) | In accessible projects |
Admins and project owners bypass all permission checks for project-scoped resources. Downloading or deleting a file that belongs to a report also requires Reports: Read.
Endpoints
Issue attachments
| Method | Endpoint | Description |
|---|---|---|
GET | /api/projects/{projectId}/issues/{issueId}/attachments | List an issue's attachments |
POST | /api/projects/{projectId}/issues/{issueId}/attachments | Upload a file to an issue |
DELETE | /api/projects/{projectId}/issues/{issueId}/attachments | Delete all of an issue's attachments |
GET | /api/projects/{projectId}/issues/{issueId}/attachments/download-all | Download all of an issue's attachments as a zip |
GET | /api/projects/{projectId}/issues/{issueId}/attachments/{attachmentId}/download | Download one attachment |
DELETE | /api/projects/{projectId}/issues/{issueId}/attachments/{attachmentId} | Delete one attachment |
Epic attachments
| Method | Endpoint | Description |
|---|---|---|
GET | /api/projects/{projectId}/epics/{epicId}/attachments | List an epic's attachments |
POST | /api/projects/{projectId}/epics/{epicId}/attachments | Upload a file to an epic |
DELETE | /api/projects/{projectId}/epics/{epicId}/attachments | Delete all of an epic's attachments |
GET | /api/projects/{projectId}/epics/{epicId}/attachments/{attachmentId}/download | Download one attachment |
DELETE | /api/projects/{projectId}/epics/{epicId}/attachments/{attachmentId} | Delete one attachment |
Comment attachments
Comments on issues and on epics take attachments the same way.
| Method | Endpoint | Description |
|---|---|---|
GET | /api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments | List an issue comment's attachments |
POST | /api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments | Upload a file to an issue comment |
DELETE | /api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments | Delete all of an issue comment's attachments |
GET | /api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments/{attachmentId}/download | Download one attachment |
DELETE | /api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments/{attachmentId} | Delete one attachment |
GET | /api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments | List an epic comment's attachments |
POST | /api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments | Upload a file to an epic comment |
DELETE | /api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments | Delete all of an epic comment's attachments |
GET | /api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments/{attachmentId}/download | Download one attachment |
DELETE | /api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments/{attachmentId} | Delete one attachment |
Orphan attachments
| Method | Endpoint | Description |
|---|---|---|
POST | /api/projects/{projectId}/attachments | Upload a file with no parent yet |
GET | /api/projects/{projectId}/attachments/{attachmentId}/download | Download a project attachment |
DELETE | /api/projects/{projectId}/attachments/{attachmentId} | Delete a project attachment |
The Attachment Object
| Field | Type | Description |
|---|---|---|
id | integer | Attachment ID |
filename | string | Stored file name. An uploaded image is converted to WebP and its name ends in .webp |
mime_type | string | MIME type of the stored file |
size | integer | Size in bytes |
user_id | integer | The user who uploaded it |
attachable_type | string | null | issues, epics, comments or reports; null for an orphan |
attachable_id | integer | null | ID of the parent; null for an orphan |
created_at | string | null | ISO 8601 timestamp |
List Attachments
GET /api/projects/{projectId}/issues/{issueId}/attachments
Returns the parent's attachments, oldest first. The epic and comment forms answer the same way.
bash
curl https://{tenant}.kendo.dev/api/projects/1/issues/42/attachments \
-H "Authorization: Bearer your-token"json
[
{
"id": 17,
"filename": "screenshot.webp",
"mime_type": "image/webp",
"size": 28417,
"user_id": 4,
"attachable_type": "issues",
"attachable_id": 42,
"created_at": "2026-11-20T09:15:00.000000Z"
}
]Upload Attachment
POST /api/projects/{projectId}/issues/{issueId}/attachments
Uploads one file as multipart/form-data. The epic, comment and orphan forms take the same field.
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Max 20 MB. Allowed: pdf, doc(x), xls(x), ppt(x), odt/ods/odp, txt, csv, json, xml, md, diff/patch, mbox, C source, zip and gz (see below), jpg/jpeg, png, gif, webp, bmp, mp4, mp3, wav, ogg. An image may not exceed 30 megapixels |
The server judges a file by its content, not by its name. It reads the type from the bytes, so a diff is accepted as a diff under any name, and an HTML page named notes.txt is refused. Plain-text files such as .log, .yaml, .sql, .ini and .toml are read as text and accepted. git format-patch output is read as mbox. C, C++ and Go source is usually read as C source. Content the server recognises as HTML, SVG, JavaScript or PHP is refused, and so is a shell or Python script that starts with a #! line: put such a file in a zip. Content the server reads as plain text is accepted as text/plain, even when it holds a fragment of such code. The download endpoint serves every file with Content-Disposition: attachment.
zip and gz archives are accepted only from inside the team: on issues, epics, comments and orphan uploads, from a signed-in member or a personal token. A project token and the report attachment endpoint refuse them with 422, because those uploads come from outside the team.
bash
curl -X POST https://{tenant}.kendo.dev/api/projects/1/issues/42/attachments \
-H "Authorization: Bearer your-token" \
-F "[email protected]"json
{
"id": 17,
"filename": "screenshot.webp",
"mime_type": "image/webp",
"size": 28417,
"user_id": 4,
"attachable_type": "issues",
"attachable_id": 42,
"created_at": "2026-11-20T09:15:00.000000Z"
}Orphan uploads
POST /api/projects/{projectId}/attachments stores the file with no parent: attachable_type and attachable_id are null. Pass its id in attachment_ids when you create an issue and the new issue takes it.
Download Attachment
GET /api/projects/{projectId}/issues/{issueId}/attachments/{attachmentId}/download
Streams the file with a Content-Disposition: attachment header. Downloads have their own rate limit of 120 requests per minute.
bash
curl https://{tenant}.kendo.dev/api/projects/1/issues/42/attachments/17/download \
-H "Authorization: Bearer your-token" \
-o screenshot.webpGET /api/projects/{projectId}/attachments/{attachmentId}/download downloads any attachment of the project by its ID, whatever its parent.
Download All of an Issue's Attachments
GET /api/projects/{projectId}/issues/{issueId}/attachments/download-all
Streams every attachment of the issue as one zip archive (Content-Type: application/zip, file name attachments.zip). Limited to 20 requests per minute.
bash
curl https://{tenant}.kendo.dev/api/projects/1/issues/42/attachments/download-all \
-H "Authorization: Bearer your-token" \
-o attachments.zipDelete Attachment
DELETE /api/projects/{projectId}/issues/{issueId}/attachments/{attachmentId}
Deletes one attachment and its stored file. Returns 204 No Content.
bash
curl -X DELETE https://{tenant}.kendo.dev/api/projects/1/issues/42/attachments/17 \
-H "Authorization: Bearer your-token"DELETE /api/projects/{projectId}/attachments/{attachmentId} deletes any attachment of the project by its ID, a report's included.
Delete All Attachments
DELETE /api/projects/{projectId}/issues/{issueId}/attachments
Deletes every attachment of the issue, epic or comment in the path. Returns 204 No Content, also when there was nothing to delete.
bash
curl -X DELETE https://{tenant}.kendo.dev/api/projects/1/issues/42/attachments \
-H "Authorization: Bearer your-token"Error Responses
| Status | Cause |
|---|---|
403 | The caller lacks the permission in the table above |
404 | The parent or attachment does not belong to the project in the path, or the file is no longer in storage (This attachment is no longer available.) |
422 | file is missing, too large, of a type not allowed, or an image that cannot be processed or exceeds 30 megapixels |
429 | Rate limit exceeded |
See Also
- Issues API —
attachment_idson issue create - Comments API — Comments that carry attachments
- Reports API — Report attachments