---
title: "Comment on a post."
method: POST
path: "/v1/posts/{post_id}/comments"
tags: ["Posts"]
---

# Comment on a post.

`POST /v1/posts/{post_id}/comments`

## Request

- Base URL: `https://linkfetch.io`
- URL: `https://linkfetch.io/v1/posts/{post_id}/comments`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Comment on a post.

5 credits per request, however many rows come back.

Runs through a connected LinkedIn account, within its safety limits.

MCP tool: `comment_on_post`.

## Path parameters

- `post_id` string, required

## Query parameters

- `account_id` string

## Request body

- object
  - `text` string, required: The comment.

## Response `200`

OK

- object
  - `ok` boolean

## Other responses

- `400`: Invalid input (`bad_request`).
- `401`: Missing, invalid or revoked API key (`unauthorized`).
- `402`: Out of credits (`out_of_credits`).
- `404`: Nothing found (`not_found`).
- `429`: The account's safety limit or queue is full (`rate_limited`, `queue_full`); try again later.
- `default`: Other errors: 409 account session needs attention, 428 no connected account (`no_account`), 501 not in the API yet (`coming_soon`), 502 LinkedIn failed (`upstream`), 503 `unavailable`, 500 `internal`.

---

[API](https://skmtc.dev/linkfetch/apis/linkfetch-api.md) · [All operations](https://skmtc.dev/linkfetch/apis/linkfetch-api/llms.txt) · [OpenAPI document](https://skmtc.dev/linkfetch/apis/linkfetch-api/revisions/b83d21f70fcb?raw)
