---
title: "Create a comment on a post"
method: POST
path: "/posts/{postId}/comments"
tags: ["Comments"]
---

# Create a comment on a post

`POST /posts/{postId}/comments`

Add a comment to a post. Supports @mentions using the format `@[Display Name](userId)`. Tagged users must be workspace members. The commenter and any tagged users are automatically subscribed to the post.

## Path parameters

- `postId` string, uuid, required

## Request body

- CreateCommentInput
  - `message` string, required — The comment text. Cannot be empty. Supports @mentions using the format @[Display Name](userId)

## Response `200`

Comment created successfully

- Comment — A comment on a post
  - `id` string, uuid — Unique identifier for the comment
  - `message` string — The comment text. Mentions use the format @[Display Name](userId)
  - `postId` string, uuid — The post this comment belongs to
  - `createdAt` string, date-time — When the comment was created
  - `updatedAt` string, date-time — When the comment was last updated
  - `user` CommentUser — User who created a comment
    - `id` string, uuid
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `email` string, email

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Missing or invalid API key
- `404` — Not Found - Resource does not exist

---

[API](https://skmtc.net/tryordinal/apis/ordinal-agency-api.md) · [All operations](https://skmtc.net/tryordinal/apis/ordinal-agency-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryordinal/ordinal-agency-api/versions/f0063bbd9805/schema)
