Skip to main content
POST
/
v1
/
posts
/
{id}
/
comments
curl -X POST https://api.infinipost.co/v1/posts/post_abc123/comments \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_123",
    "text": "Amazing content! 🔥"
  }'
{
  "id": "cmt_xyz789",
  "postId": "post_abc123",
  "accountId": "acc_123",
  "text": "Amazing content! 🔥",
  "createdAt": "2024-04-21T20:25:00Z"
}

Path Parameters

id
string
required
The post ID to comment on (can be your own post or another user’s).

Request Body

accountId
string
required
The account ID to comment from.
text
string
required
The comment text.

Response

id
string
Unique comment identifier.
postId
string
The post that was commented on.
accountId
string
Account that created the comment.
text
string
Comment text.
createdAt
string
ISO 8601 timestamp.
curl -X POST https://api.infinipost.co/v1/posts/post_abc123/comments \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_123",
    "text": "Amazing content! 🔥"
  }'
{
  "id": "cmt_xyz789",
  "postId": "post_abc123",
  "accountId": "acc_123",
  "text": "Amazing content! 🔥",
  "createdAt": "2024-04-21T20:25:00Z"
}