Uploads a file and attaches it to the specified task.
Requires the task:create scope.
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.
The slug of the project.
"my-project"
UUID of the task, or its external ID (e.g. PROJ-42).
"018e1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c"
The file to upload. Maximum size is 10 MB.
Attachment uploaded successfully.
A file attached to a task.
Unique identifier of the attachment.
"018e1b2c-aaaa-bbbb-cccc-000000000001"
Original filename of the uploaded file.
"screenshot.png"
Presigned URL to download the attachment. Valid for 1 hour from the time of the request.
"https://elean-attachments.example.r2.cloudflarestorage.com/workspace-id/task-id/file-id.png?X-Amz-Expires=3600&..."
MIME type of the file.
"image/png"
File size in bytes.
204800
ISO 8601 timestamp of when the attachment was uploaded.
"2026-03-01T12:00:00.000Z"