# Comment on a post

`POST https://api.cryptohopper.com/v1/social/post/{id}/comment`

Part of [Social](https://www.cryptohopper.com/api-documentation/api-reference/social.md) in the Cryptohopper API reference.

Adds a comment to a post. The response contains the parent post with the new comment in item, so you can refresh the thread from one call.

OAuth scope: `manage`

Accepts the same message, media, video and location fields as Create a social post. You can comment at most once every 10 seconds, and once every 20 seconds on the same post.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Numeric ID of the post to comment on. |

## Example request

```bash
curl -X POST "https://api.cryptohopper.com/v1/social/post/POST_ID/comment" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message":"Same here, waiting for a breakout"}'
```

## Response

Example response (illustrative values):

```json
{
    "data": {
        "id": "123456",
        "profile_id": "4567",
        "location": "NL",
        "message": "Watching BTC closely today #bitcoin",
        "media_url": "",
        "created": 1790316000,
        "updated": 1790316000,
        "private_message": "0",
        "profile_alias": "trader-jane",
        "profile_image": "https://cdn.example.com/images/social/uploads/avatar_4567.jpg",
        "profile_name": "Trader Jane",
        "verified": "0",
        "total_likes": "12",
        "total_comments": "3",
        "total_reposts": "1",
        "liked": 0,
        "commented": 0,
        "reposted": 0,
        "profile_link": "/social/profile/trader-jane",
        "following": 0,
        "status": 1,
        "item": {
            "id": "778899",
            "post_id": "123456",
            "profile_id": "5678",
            "location": "",
            "message": "Same here, waiting for a breakout",
            "media_url": "",
            "created": 1790317800,
            "updated": 1790317800,
            "private_message": "0",
            "profile_alias": "hodl-henk",
            "profile_image": "https://cdn.example.com/images/social/uploads/avatar_4567.jpg",
            "profile_name": "Hodl Henk",
            "verified": "0",
            "total_likes": "2",
            "liked": 0,
            "profile_link": "/social/profile/hodl-henk",
            "reposted": 0,
            "commented": 0,
            "following": 0
        }
    }
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
