Skip to main content
POST
/
{projectSlug}
/
tasks
/
{taskId}
/
comments
Add comment
curl --request POST \
  --url https://api.elean.app/v1/public/{projectSlug}/tasks/{taskId}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "Deployed to staging."
}
'
{
  "id": "018e1b2c-cccc-0000-0000-000000000001",
  "content": "This is ready for review.",
  "authorName": "my-api-key",
  "createdAt": "2026-03-15T10:00:00.000Z",
  "updatedAt": "2026-03-15T10: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
Example:

"my-project"

taskId
string
required

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

Example:

"PROJ-42"

Body

application/json
content
string
required

Comment text.

Required string length: 1 - 10000
Example:

"Deployed to staging."

Response

Comment added successfully.

A comment on a task.

id
string<uuid>

Unique identifier of the comment.

Example:

"018e1b2c-cccc-0000-0000-000000000001"

content
string

Comment text.

Example:

"This is ready for review."

authorName
string | null

Name of the API key that posted the comment, or null for comments posted by workspace members.

Example:

"my-api-key"

createdAt
string<date-time>
Example:

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

updatedAt
string<date-time>
Example:

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