Skip to main content
The Like Post endpoint creates an async task to like a LinkedIn post. You provide the post’s activity URN and the API handles the rest, performing the like action through your team’s oldest admin member’s LinkedIn account.

Endpoint

POST https://api.outx.ai/linkedin-agent/like-post

Request Body

social_urn
string
required
The LinkedIn activity URN of the post to like (e.g., "urn:li:activity:7123456789012345678")
Don’t have a social URN? Use Fetch Posts to retrieve posts from a profile — each post in the response includes its activity URN. If you only have a profile slug, first use Fetch Profile to get the profile URN, then fetch their posts.
The like action is performed using your team’s oldest admin member’s LinkedIn account. Make sure this team member is aware that likes will be made from their account via the API.

Response

The endpoint returns immediately with a task ID:
success
boolean
Whether the task was created successfully
api_agent_task_id
string
UUID to poll for results via Get Task Status
message
string
Human-readable confirmation
{
  "success": true,
  "api_agent_task_id": "550e8400-e29b-41d4-a716-446655440000",
  "message": "Like post task created successfully"
}

Polling for Results

Poll the Get Task Status endpoint to confirm the like was executed:
GET https://api.outx.ai/linkedin-agent/get-task-status?api_agent_task_id=550e8400-e29b-41d4-a716-446655440000

Completed Response

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "completed",
    "task_input": {
      "task_type": "agent_like_post",
      "social_urn": "urn:li:activity:7123456789012345678"
    },
    "task_output": {
      "liked": true
    }
  }
}

Code Examples

# Like a post
curl -X POST \
  "https://api.outx.ai/linkedin-agent/like-post" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"social_urn": "urn:li:activity:7123456789012345678"}'

# Check the result
curl -X GET \
  "https://api.outx.ai/linkedin-agent/get-task-status?api_agent_task_id=TASK_ID" \
  -H "x-api-key: YOUR_API_KEY"

Error Responses

StatusErrorDescription
400Missing or invalid 'social_urn'The social_urn field is missing or not a string
401Missing API Key / Invalid API KeyAPI key is missing or invalid
403Plugin installation required...No team member has an active Chrome extension. See Authentication
404No admin user found in the teamYour team has no admin members

FAQ

The like is performed using your team’s oldest admin member’s LinkedIn account (sorted by when they joined the team). This is the team member whose Chrome extension session executes the action.
Activity URNs look like urn:li:activity:7123456789012345678. You can find them in LinkedIn post URLs (the number after /activity/), or from the output of the Fetch Posts endpoint.
OutX does not rate-limit these requests for you. OutX is a proxy — every like you trigger is executed immediately on LinkedIn through a real browser session. If you send 50 like requests in rapid succession, all 50 will attempt to execute, and LinkedIn may flag the account for unusual activity. Space out likes by at least 30–60 seconds and distribute them throughout the day. See Rate Limits for safe usage guidelines.
The API currently supports liking posts only. Unlike functionality is on our roadmap. If you need this feature, contact support@outx.ai.
The LinkedIn API’s like endpoint currently performs likes as the admin user’s personal account. For company page engagement, see the Intelligence API which supports company actor types.

Learn More