Like a Post in LinkedIn
POST /api/v1/like_a_post
This API allows the authenticated user to like a LinkedIn post, showing appreciation or support for the content.
The profile_id is a unique identifier used by LinkedIn to distinguish individual user profiles. On WeLink, you can obtain the profile_id by calling the /api/v1/get_profile_details API. In the response of this API, the field profile_id is provided. This value should be used as the profile_id when making requests to other WeLink APIs that require a LinkedIn profile reference.
Headers
| Name | Type | Required |
|---|---|---|
x-api-key | string | Yes |
x-api-secret | string | Yes |
Request Body
Schema
accountIdstringrequiredThe unique identifier of the WeLink account.
profile_idstringrequiredThe unique identifier of the LinkedIn profile.
Sample Request
{
"accountId": "string",
"profile_id": "string"
}
Responses
Webhook Events
Schema
statusstringStatus indicating the request completed successfully (e.g. "SUCCESS").
requestIdstringUnique identifier for the request.
resultobjectThe response payload.
likedbooleanWhether the post was liked.
liked_post_urlstringURL of the liked post.
profile_idstringrequiredThe unique identifier of the LinkedIn profile.
Sample Response
{
"status": "string",
"requestId": "string",
"result": {
"liked": false,
"liked_post_url": "string",
"profile_id": "string"
}
}