API referenceLinkedin posts
POST
/api/v1/posts/reaction

A write (reaction). Unknown reaction_type values react like. as_organization answers 422.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Query Parameters

account_id?string

The LinkedIn account (lg_…) to act as. Send it here or as account_id in the body; one of the two is required (400 otherwise).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/posts/reaction?account_id=lg_3f9c2a7b1d" \  -H "Content-Type: application/json" \  -d '{    "account_id": "lg_3f9c2a7b1d",    "post_id": "urn:li:activity:7390000000000000000",    "reaction_type": "like"  }'
{  "object": "ReactionAdded"}