Skip to main content
GET
/
{projectSlug}
/
tasks
/
{taskId}
/
attachments
/
{attachmentId}
Get attachment
curl --request GET \
  --url https://api.elean.app/v1/public/{projectSlug}/tasks/{taskId}/attachments/{attachmentId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "018e1b2c-aaaa-bbbb-cccc-000000000001",
  "filename": "screenshot.png",
  "url": "https://elean-attachments.example.r2.cloudflarestorage.com/workspace-id/task-id/file-id.png?X-Amz-Expires=3600&...",
  "mimeType": "image/png",
  "size": 204800,
  "createdAt": "2026-03-01T12:00:00.000Z"
}

Authorizations

Authorization
string
header
required

API key created in Workspace Settings → API Keys. Pass it in the Authorization header as a Bearer token, or in the X-API-Key header.

Format: el_ followed by 40 hex characters.

Path Parameters

projectSlug
string
required

The slug of the project.

Example:

"my-project"

taskId
string
required

UUID of the task, or its external ID (e.g. PROJ-42).

Example:

"018e1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c"

attachmentId
string<uuid>
required

UUID of the attachment.

Example:

"018e1b2c-aaaa-bbbb-cccc-000000000001"

Response

Attachment found.

A file attached to a task.

id
string<uuid>

Unique identifier of the attachment.

Example:

"018e1b2c-aaaa-bbbb-cccc-000000000001"

filename
string

Original filename of the uploaded file.

Example:

"screenshot.png"

url
string<uri>

Presigned URL to download the attachment. Valid for 1 hour from the time of the request.

Example:

"https://elean-attachments.example.r2.cloudflarestorage.com/workspace-id/task-id/file-id.png?X-Amz-Expires=3600&..."

mimeType
string

MIME type of the file.

Example:

"image/png"

size
integer

File size in bytes.

Example:

204800

createdAt
string<date-time>

ISO 8601 timestamp of when the attachment was uploaded.

Example:

"2026-03-01T12:00:00.000Z"