# Comment on a post

### Comment on a post

`POST /api/v1/instagram/posts/{postId}/comments`

Operation ID: `commentOnInstagramPost`

Comments on a post, or replies to a comment. A comment cannot be edited or removed through this API.

**Path parameters**

- `postId` (string, required): postId from a posts listing, or the short code from the post URL.

**Request body** (required)

- `connectedAccountId` (string · uuid, required): Connected account to act as
- `text` (string, required): The comment. Write @username to mention someone.
- `commentId` (string, optional): Reply to this comment instead of commenting on the post.

**201**: Comment result.

- `result` (object, required)
  - `commentId` (string | null, required)
  - `createdAt` (string · date-time, required)
- `remainingToday` (integer, required): Remaining daily allowance for this action on the connected account. Each action type has its own limit.

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
