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.
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:
Required Parameters
| Parameter | Type | Description |
|---|---|---|
| post_id | string | UUID of the post to like (from api-posts response) |
| user_email | string | For user: User's email For company: Admin email of the company |
Optional / Conditional Parameters
| Parameter | Type | Description |
|---|---|---|
| actor_type | string | "user" or "company" (defaults to "user") |
| company_title | string | Required when actor_type is "company" Exact company title/name from LinkedIn |
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
}
{
"success": true,
"message": "Like task created successfully",
"task_id": "456e7890-e12b-34d5-a678-912345678901"
}
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
| message | string | Human-readable confirmation message |
| task_id | string | Unique ID of the created like task |
| Status Code | Error Message | Description |
|---|---|---|
| 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 @OutXAI | A 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.