> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Find and like a relevant LinkedIn post

> Scans a target LinkedIn user's recent posts, selects one relevant to the supplied topic or context, and likes it automatically. The caller does not provide a post URL. If no post qualifies, the job still succeeds and returns result.status=skipped.

Scans a target LinkedIn user's recent posts, selects one relevant to the supplied topic or context, and likes it automatically. The caller does not provide a post URL. If no post qualifies, the job still succeeds and returns `result.status=skipped`.

| | |
| - | - |
| Method | `POST` |
| Permission | LinkedIn engagement create |
| Idempotency | Optional; reuse the same `Idempotency-Key` for safe retries |
| Returns | Job ID |

> [!WARNING]
>
> Send `Authorization` and `Content-Type: application/json`. `Idempotency-Key` is optional; for safe retries, send one and reuse the same value.

## Request body

**profile\_url** `string` *required*

HTTPS profile URL on `linkedin.com` or `www.linkedin.com` with an `/in/…` path; no URL credentials or nonstandard port.

**content** `string` *required*

Topic used to judge relevance, not text to publish or send. Maximum 16,000 UTF-8 bytes. For example: `AI sales automation and outbound workflow`.

**account\_id** `string`

Connect account used for the like. Required when multiple usable LinkedIn accounts exist.

**post\_limit** `number` (default: 20)

Number of candidate posts; default 20, range 1-50.

**locale** `string` (default: en)

`en` or `zh`.

**min\_channel\_task\_interval\_seconds** `number`

Minimum LinkedIn job interval, range 60-86400 seconds.

## Example request

```bash cURL theme={null}
curl -X POST "https://revor.ai/api/v2/outreach/linkedin/post-likes" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "connect_account_xxx",
    "profile_url": "https://www.linkedin.com/in/example/",
    "content": "AI sales automation and outbound workflow",
    "post_limit": 20,
    "locale": "en"
  }'
```

## Response and result

The creation endpoint returns HTTP `202`, with `item.action` set to `outreach.linkedin.post_like` and `item.channel` set to `linkedin`. Save `item.id`, then call:

```http GET theme={null}
GET /api/v2/jobs/{id}
```

> [!NOTE]
>
> When no relevant post is found, `item.result.status=skipped` and `reason` explains why.

### Result example

```json liked theme={null}
{
  "status": "liked",
  "liked_post": {
    "url": "https://www.linkedin.com/posts/example_activity-123"
  },
  "reason": "The post matches the requested topic."
}
```

## Common errors

| HTTP | Code | Description |
| - | - | - |
| `400` | `profile_url_required` / `content_required` | The target or relevance context is missing. |
| `400` | `invalid_profile_url` | `profile_url` is not a LinkedIn profile URL. |
| `400` | `post_limit_invalid` / `locale_invalid` | A parameter is outside its valid range. |
| `403` | `permission_denied` | The key cannot create LinkedIn engagement. |
| `413` | `request_payload_too_large` | The request body exceeds 32 KB. |
| `503` | `task_unavailable` | The job cannot be created temporarily. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.