---
title: "Create comments"
method: POST
path: "/projects/{project_id}:{branch}/keys/{key_id}/comments"
tags: ["Comments"]
---

# Create comments

`POST /projects/{project_id}:{branch}/keys/{key_id}/comments`

## Request

- Base URL: `https://api.lokalise.com/api2`
- URL: `https://api.lokalise.com/api2/projects/{project_id}:{branch}/keys/{key_id}/comments`
- Auth: API key in header `X-Api-Token`

Adds a set of comments to the key.

Requires <code>write_comments</code> OAuth access scope.

## Path parameters

- `project_id` string, required
- `branch` string, required
- `key_id` number, required

## Request body

- object
  - `comments` object[]: A set of comments to add
    - `comment` string, required: The comment to add.

## Response `200`

OK

- object
  - `project_id` string
  - `comment` Comments
    - `comment_id` number: A unique identifier of the comment.
    - `key_id` number: Identifier of a key, the comment is attached to.
    - `comment` string: The comment message.
    - `added_by` number: Identifier of a user, who has left the comment.
    - `added_by_email` string: E-mail of a user, who has left the comment.
    - `added_at` string: Date and time the comment was added.
    - `added_at_timestamp` number: Unix timestamp the comment was added.

---

[API](https://skmtc.dev/lokalise/apis/projects-with-branches.md) - [All operations](https://skmtc.dev/lokalise/apis/projects-with-branches/llms.txt) - [OpenAPI document](https://skmtc.dev/lokalise/apis/projects-with-branches/revisions/7ed3f978a361?raw)
