> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.scaleabm.org/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.scaleabm.org/_mcp/server.

# Posts & Engagement

> Create posts, like, comment, and monitor engagement on LinkedIn content

# Posts & Engagement

Voyager provides full post lifecycle management — create posts, react with any of LinkedIn's 6 reaction types, comment, edit, delete, and monitor engagement. All engagement endpoints are pure HTTP (REST + GraphQL fallback).

> **Note**
>
> Every Voyager response is wrapped in the standard envelope `{ success, statusCode, message, data, errors }`. The JSON examples below show only the endpoint-specific payload — access `res.data.<field>` in your client. See [Introduction](/guides/getting-started/introduction) for the full envelope shape.

## Create a Post

```bash
curl -X POST "$BASE/api/post" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Excited to share our latest findings on AI infrastructure scaling.\n\nKey takeaways:\n- Latency matters more than throughput\n- Cache everything you can\n- Measure from the edge\n\n#AI #Engineering #Infrastructure"
  }'
```

```json
{
  "success": true,
  "postUrn": "urn:li:share:7180123456789012345",
  "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7180123456789012345/"
}
```

## Like a Post

React to a post with any of LinkedIn's 6 reaction types:

```bash
curl -X POST "$BASE/api/like" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7180123456789012345/",
    "reactionType": "PRAISE"
  }'
```

### Reaction Types

| Type            | Emoji     | Description         |
| --------------- | --------- | ------------------- |
| `LIKE`          | Thumbs up | Default reaction    |
| `PRAISE`        | Clap      | Celebrating         |
| `APPRECIATION`  | Heart     | Love                |
| `EMPATHY`       | Hug       | Supportive / Caring |
| `INTEREST`      | Lightbulb | Insightful          |
| `ENTERTAINMENT` | Laugh     | Funny               |

If `reactionType` is omitted, it defaults to `LIKE`.

## Unlike a Post

```bash
curl -X POST "$BASE/api/like" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7180123456789012345/",
    "unlike": true
  }'
```

## Comment on a Post

```bash
curl -X POST "$BASE/api/comment" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7180123456789012345/",
    "comment": "Great insight! We have been seeing similar trends in our infrastructure work."
  }'
```

## Delete a Comment

Delete by matching text (finds your comment that matches the provided text):

```bash
curl -X POST "$BASE/api/comment" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7180123456789012345/",
    "comment": "Great insight! We have been seeing similar trends",
    "delete": true
  }'
```

Or delete by URN directly:

```bash
curl -X DELETE "$BASE/api/comment" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"commentUrn": "urn:li:comment:(activity:7180123456789012345,7180987654321098765)"}'
```

## Delete a Post

```bash
curl -X POST "$BASE/api/post" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Excited to share our latest findings",
    "delete": true
  }'
```

## Get a Person's Posts

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/posts?profileUrl=https://www.linkedin.com/in/janesmith/&limit=10"
```

## Get Post Reactions

See who reacted to a specific post:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/posts/7180123456789012345/reactions?limit=50"
```

## Get Post Comments

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/posts/7180123456789012345/comments?limit=50"
```

> **Tip**
>
> The `postId` in URLs like `/api/posts/:postId/comments` is the numeric activity ID. Extract it from a post URL: `urn:li:activity:7180123456789012345` has postId `7180123456789012345`.

## Feed & Content Discovery

### Your Feed

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/feed?start=0&count=20"
```

### Trending Topics

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/feed/topics?count=10"
```

### Search Content

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/search/content?keywords=AI+infrastructure&count=10"
```

## Follow / Unfollow

```bash
# Follow a profile
curl -X POST "$BASE/api/follow" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"profileUrl": "https://www.linkedin.com/in/janesmith/"}'

# Unfollow
curl -X POST "$BASE/api/follow" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"profileUrl": "https://www.linkedin.com/in/janesmith/", "unfollow": true}'
```

## Your Engagement History

See posts you have liked and comments you have written:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/reactions?count=20"
```

## Notifications

Get engagement notifications on your own content (likes, comments, mentions):

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/notifications?count=20"
```

## Related

* [Content Intelligence Guide](/guides/workflow-guides/content-intelligence) -- Monitor what prospects are posting
* [Webhooks](/guides/workflow-guides/webhooks) -- Real-time engagement notifications
* [Batch Operations](/common-patterns/common-patterns/batch-operations) -- Batch post data retrieval