Skip to content
Ordinal
Esc
↑↓navigate↵open⌘Jpreview

Create a comment on a post

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.

POST/posts/{postId}/comments
Authorization
AuthorizationBearer token · headerrequired

API key authentication. Generate an API key from your workspace settings.

Path parameters
postIdstring<uuid>required

Post ID (UUID)

Request body
requiredapplication/json
messagestringrequired

The comment text. Cannot be empty. Supports @mentions using the format @[Display Name](userId)

min length 1
Responses
200

Comment created successfully

idstring<uuid>

Unique identifier for the comment

messagestring

The comment text. Mentions use the format @[Display Name](userId)

postIdstring<uuid>

The post this comment belongs to

createdAtstring<date-time>

When the comment was created

updatedAtstring<date-time>

When the comment was last updated

userCommentUser

User who created a comment

Show properties
idstring<uuid>
firstNamestring | null
lastNamestring | null
emailstring<email>
400

Bad Request - Invalid input parameters

codestring
messagestring
dataobject
Show properties
errorsobject
401

Unauthorized - Missing or invalid API key

codestring
messagestring
404

Not Found - Resource does not exist

codestring
messagestring
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://app.tryordinal.com/api/v1/posts/497f6eca-6276-4993-bfeb-53cbbbba6f08/comments' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "message": "Looks good! @[Jane Smith](550e8400-e29b-41d4-a716-446655440002) can you review the first paragraph?"
}'
Response
{
  "id": "b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
  "message": "Looks good! @[Jane Smith](550e8400-e29b-41d4-a716-446655440002) can you review the first paragraph?",
  "postId": "d4f8e2a1-3b7c-4e9d-8f2a-1c5b9e7d3a6f",
  "createdAt": "2026-02-04T11:00:00.000Z",
  "updatedAt": "2026-02-04T11:00:00.000Z",
  "user": {
    "id": "550e8400-e29b-41d4-a716-446655440001",
    "firstName": "John",
    "lastName": "Doe",
    "email": "john@example.com"
  }
}