# Engagement

> Like and comment on posts, and pull the list of people who reacted to a post.

Engage with posts on behalf of an account, and harvest the people who reacted to a post as leads.

## Like a post

```http
POST /v1/engagement/like
```

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `account_id` | string | yes | The account that reacts. |
| `post_url` | string | yes | The post's URL or activity id. |

```bash
curl -X POST https://api.correctinbox.com/v1/engagement/like \
  -H "X-API-KEY: $CORRECTINBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "account_id": "acc_8f21c0", "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7160..." }'
```

```js
await fetch("https://api.correctinbox.com/v1/engagement/like", {
  method: "POST",
  headers: {
    "X-API-KEY": process.env.CORRECTINBOX_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ account_id: "acc_8f21c0", post_url: "https://www.linkedin.com/feed/update/urn:li:activity:7160..." }),
});
```

```python
requests.post(
    "https://api.correctinbox.com/v1/engagement/like",
    headers={"X-API-KEY": os.environ["CORRECTINBOX_API_KEY"]},
    json={"account_id": "acc_8f21c0", "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7160..."},
)
```

## Comment on a post

```http
POST /v1/engagement/comment
```

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `account_id` | string | yes | The account that comments. |
| `post_url` | string | yes | The post's URL or activity id. |
| `text` | string | yes | The comment body. |

```bash
curl -X POST https://api.correctinbox.com/v1/engagement/comment \
  -H "X-API-KEY: $CORRECTINBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "account_id": "acc_8f21c0", "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7160...", "text": "Great breakdown — the point on retention lands." }'
```

## List reactors

Pull everyone who reacted to a post. Great for sourcing warm leads — pair it with [lead lists](/search#save-a-lead-list).

```http
GET /v1/engagement/reactions?account_id={account_id}&post_url={post_url}
```

```bash
curl "https://api.correctinbox.com/v1/engagement/reactions?account_id=acc_8f21c0&post_url=https%3A%2F%2Fwww.linkedin.com%2Ffeed%2Fupdate%2Furn%3Ali%3Aactivity%3A7160..." \
  -H "X-API-KEY: $CORRECTINBOX_API_KEY"
```

```python
reactions = requests.get(
    "https://api.correctinbox.com/v1/engagement/reactions",
    headers={"X-API-KEY": os.environ["CORRECTINBOX_API_KEY"]},
    params={"account_id": "acc_8f21c0", "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7160..."},
).json()
```

**Response**

```json
{
  "total": 212,
  "reactors": [
    { "id": "ACoAAB1x...", "name": "Priya Menon", "headline": "Head of Sales at Northwind" }
  ]
}
```

> Reactions are rate‑sensitive on the provider. Fetch a post's reactors once and cache them rather than polling repeatedly.
