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

Headers

HeaderTypeRequiredDescription
Content-TypestringYesMust be application/json
x-api-keystringYesYour OutX API key

Request Body

FieldTypeRequiredDescription
social_urnstringYesThe LinkedIn activity URN of the post to like (e.g., "urn:li:activity:7123456789012345678")
{
  "social_urn": "urn:li:activity:7123456789012345678"
}
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": true,
  "api_agent_task_id": "550e8400-e29b-41d4-a716-446655440000",
  "message": "Like post task created successfully"
}
FieldTypeDescription
successbooleanWhether the task was created successfully
api_agent_task_idstringUUID to poll for results via Get Task Status
messagestringHuman-readable confirmation

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.
Since the action is performed through a real browser session, it appears as normal LinkedIn activity. However, you should still be mindful of volume. Avoid liking hundreds of posts in rapid succession, as LinkedIn may flag unusual patterns on any account. Space out your engagement actions naturally.
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.