Like Post API

K
Kavya M

Like Posts

The Like API allows you to automate like on LinkedIn posts through OutXAI.

You can like posts either as an individual user or on behalf of a company, making it easy to scale engagement and stay visible without manual effort.

Quick Set up Guide

  • To get your API KEY mail us support@outx.ai
  • Create a watchlist using the POST endpoint
  • Retrieve posts using the GET endpoint with your watchlist ID
  • Update watchlist settings as needed using the PUT endpoint
  • Like and Comment using Engagement APIs

Curl

curl -X POST 'https://cafqluqomuhgtchexldv.supabase.co/functions/v1/api-like'   -H 'Content-Type: application/json'   -H 'x-api-key: YOUR_TEAM_API_KEY'   -d '{
    "post_id": "123e4567-e89b-12d3-a456-426614174000",
    "user_email": "john.doe@example.com",
    "actor_type": "user"
  }'

Authentication:

  • x-api-key: “YOUR TEAM API KEY HERE”

Required Parameters

ParameterTypeDescription
post_idstringUUID of the post to like (from api-posts response)
user_emailstringFor user: User's email
For company: Admin email of the company

Optional / Conditional Parameters

ParameterTypeDescription
actor_typestring"user" or "company" (defaults to "user")
company_titlestringRequired when actor_type is "company" Exact company title/name from LinkedIn

Request Body

Liking Post as a user:

{
  "post_id": "123e4567-e89b-12d3-a456-426614174000",
  "user_email": "john.doe@example.com",
  "actor_type": "user"
}

Liking Post as the Company:

{
  "post_id": "123e4567-e89b-12d3-a456-426614174000",
  "user_email": "admin@company.com", //should be the admin email of company
  "actor_type": "company",
  "company_title": "Acme Corporation" // company title/name from LinkedIn
}

Response:

{
  "success": true,
  "message": "Like task created successfully",
  "task_id": "456e7890-e12b-34d5-a678-912345678901"
}
FieldTypeDescription
successbooleanIndicates if the request was successful
messagestringHuman-readable confirmation message
task_idstringUnique ID of the created like task

Errors

Status CodeError MessageDescription
400"Missing required parameters"One or more required fields were not provided in the request
401"Unauthorized: Invalid API key"The provided API key is missing or invalid
403"Company '[title]' not found or user is not an admin of this company in the current team"The company name is incorrect or the user lacks admin rights
500"Internal server error" Contact support @OutXAIA server-side error occurred — reach out to OutXAI support

For more information about the OutXAI API, feel free to contact us at support@outx.ai.


Track LinkedIn posts, job changes, birthdays, and keywords — never miss a sales trigger.
No Credit Card Required. Cancel anytime.