Skip to main content
POST
/
{projectSlug}
/
tasks
Create task
curl --request POST \
  --url https://api.elean.app/v1/public/{projectSlug}/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Fix login bug",
  "description": "Users cannot log in with SSO on Safari.",
  "priority": "high",
  "dueDate": "2026-03-15T00:00:00.000Z",
  "statusId": "018e1b2c-aaaa-0000-0000-000000000002"
}
'
{
  "id": "018e1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
  "externalId": "PROJ-42",
  "title": "Fix login bug",
  "description": "Users cannot log in with SSO on Safari.",
  "category": "in_progress",
  "status": {
    "id": "018e1b2c-aaaa-0000-0000-000000000002",
    "name": "In Review",
    "color": "#f59e0b",
    "category": "in_progress"
  },
  "priority": "high",
  "dueDate": "2026-03-15T00:00:00.000Z",
  "assignees": [
    {
      "id": "018e1b2c-0000-0000-0000-000000000099",
      "name": "Jane Smith"
    }
  ],
  "attachments": [
    {
      "id": "018e1b2c-aaaa-bbbb-cccc-000000000001",
      "filename": "screenshot.png"
    }
  ],
  "createdAt": "2026-03-01T12:00:00.000Z",
  "updatedAt": "2026-03-02T09:30: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 to create the task in.

Example:

"my-project"

Body

application/json
title
string
required

Task title.

Required string length: 1 - 500
Example:

"Fix login bug"

description
string

Task description as plain text. Newlines are supported.

Example:

"Users cannot log in with SSO on Safari.\n\nReproducible on Safari 17+."

priority
enum<string>

Task priority. Defaults to none if omitted.

Available options:
none,
low,
medium,
high,
urgent
Example:

"high"

dueDate
string<date-time>

Due date in ISO 8601 format.

Example:

"2026-03-15T00:00:00.000Z"

statusId
string<uuid>

UUID of the custom status to assign. If omitted, the task is placed in the first status of the todo category. Use GET /{projectSlug}/statuses to retrieve available IDs.

Example:

"018e1b2c-aaaa-0000-0000-000000000002"

Response

Task created successfully.

A task object returned by the API.

id
string<uuid>

Unique identifier of the task.

Example:

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

externalId
string

Human-readable task identifier, unique within the project (e.g. PROJ-42).

Example:

"PROJ-42"

title
string

Task title.

Example:

"Fix login bug"

description
string | null

Task description as plain text. Newlines are preserved.

Example:

"Users cannot log in with SSO on Safari."

category
enum<string>

Status category of the task. For the specific named status, see status.

Available options:
todo,
in_progress,
done
Example:

"in_progress"

status
object

The specific custom status assigned to this task, or null if none is set.

priority
enum<string>

Priority level of the task.

Available options:
none,
low,
medium,
high,
urgent
Example:

"high"

dueDate
string<date-time> | null

Due date in ISO 8601 format, or null if not set.

Example:

"2026-03-15T00:00:00.000Z"

assignees
object[]

List of users assigned to the task.

attachments
object[]

Files attached to this task. Each entry contains only the attachment ID and filename. Use GET /{projectSlug}/tasks/{taskId}/attachments/{attachmentId} to retrieve the full attachment details including the download URL.

createdAt
string<date-time>

ISO 8601 timestamp of when the task was created.

Example:

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

updatedAt
string<date-time>

ISO 8601 timestamp of the last update.

Example:

"2026-03-02T09:30:00.000Z"