---
title: "Creates a Comment"
method: POST
path: "/api/2026-10-01/resources/posts/comments"
tags: ["Posts > Comment"]
---

# Creates a Comment

`POST /api/2026-10-01/resources/posts/comments`

## Request

- Base URL: `https://api.factorialhr.com`
- URL: `https://api.factorialhr.com/api/2026-10-01/resources/posts/comments`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.factorialhr.com/oauth/authorize`
    - Token URL: `https://id.factorialhr.com/api/oauth/token` scopes: `posts`
  - API key in header `x-api-key`

Creates a Comment

## Request body

- object
  - `post_id` string, required: identifier of the post
  - `text` string, required: Text of the comment

## Response `201`

CREATED

- PostsComment
  - `id` string, required: identifier of the comment
  - `post_id` string, required: identifier of the post
  - `author_id` string, required: author identifier refers to the employee access, you can get the employee from the employee endpoint
  - `text` string, required: text of the comment
  - `created_at` string, required: date of the comment

## Changes

- **2026-11-03** `83ac9aa1de50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factorialhr/apis/factorial-api/changes/api/2026-10-01/resources/posts/comments/post.md)

---

[API](https://skmtc.dev/factorialhr/apis/factorial-api.md) - [All operations](https://skmtc.dev/factorialhr/apis/factorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factorialhr/apis/factorial-api/revisions/83ac9aa1de50?raw)
