Skip to content

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 ​

ActionRequired PermissionScope
ListProject accessIn accessible projects
UploadAttachments: CreateIn accessible projects
Download one fileAttachments: ReadIn accessible projects
Download all of an issue's filesAttachments: ReadIn accessible projects
Delete one fileAttachments: Delete (Own/All)Own: files you uploaded
Delete all of a parent's filesAttachments: 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 ​

MethodEndpointDescription
GET/api/projects/{projectId}/issues/{issueId}/attachmentsList an issue's attachments
POST/api/projects/{projectId}/issues/{issueId}/attachmentsUpload a file to an issue
DELETE/api/projects/{projectId}/issues/{issueId}/attachmentsDelete all of an issue's attachments
GET/api/projects/{projectId}/issues/{issueId}/attachments/download-allDownload all of an issue's attachments as a zip
GET/api/projects/{projectId}/issues/{issueId}/attachments/{attachmentId}/downloadDownload one attachment
DELETE/api/projects/{projectId}/issues/{issueId}/attachments/{attachmentId}Delete one attachment

Epic attachments ​

MethodEndpointDescription
GET/api/projects/{projectId}/epics/{epicId}/attachmentsList an epic's attachments
POST/api/projects/{projectId}/epics/{epicId}/attachmentsUpload a file to an epic
DELETE/api/projects/{projectId}/epics/{epicId}/attachmentsDelete all of an epic's attachments
GET/api/projects/{projectId}/epics/{epicId}/attachments/{attachmentId}/downloadDownload 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.

MethodEndpointDescription
GET/api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachmentsList an issue comment's attachments
POST/api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachmentsUpload a file to an issue comment
DELETE/api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachmentsDelete all of an issue comment's attachments
GET/api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments/{attachmentId}/downloadDownload one attachment
DELETE/api/projects/{projectId}/issues/{issueId}/comments/{commentId}/attachments/{attachmentId}Delete one attachment
GET/api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachmentsList an epic comment's attachments
POST/api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachmentsUpload a file to an epic comment
DELETE/api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachmentsDelete all of an epic comment's attachments
GET/api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments/{attachmentId}/downloadDownload one attachment
DELETE/api/projects/{projectId}/epics/{epicId}/comments/{commentId}/attachments/{attachmentId}Delete one attachment

Orphan attachments ​

MethodEndpointDescription
POST/api/projects/{projectId}/attachmentsUpload a file with no parent yet
GET/api/projects/{projectId}/attachments/{attachmentId}/downloadDownload a project attachment
DELETE/api/projects/{projectId}/attachments/{attachmentId}Delete a project attachment

The Attachment Object ​

FieldTypeDescription
idintegerAttachment ID
filenamestringStored file name. An uploaded image is converted to WebP and its name ends in .webp
mime_typestringMIME type of the stored file
sizeintegerSize in bytes
user_idintegerThe user who uploaded it
attachable_typestring | nullissues, epics, comments or reports; null for an orphan
attachable_idinteger | nullID of the parent; null for an orphan
created_atstring | nullISO 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.

FieldTypeRequiredDescription
filefileYesMax 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.webp

GET /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.zip

Delete 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 ​

StatusCause
403The caller lacks the permission in the table above
404The 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.)
422file is missing, too large, of a type not allowed, or an image that cannot be processed or exceeds 30 megapixels
429Rate limit exceeded

See Also ​