API referenceLinkedin users and invitations
POST
/api/v1/users/invite/received/{id}

action accept (the default) accepts it; decline ignores it, as the invitation manager's Ignore does (the inviter is not told). Both are writes under the accept daily cap. With shared_secret (from GET /users/invite/received) it is used as given; without it, the invitation must be among the newest 100 received, 404 otherwise.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

id*string

The invitation's id, id in GET /users/invite/received. An urn:li:invitation:… urn works too (its number is used).

Query Parameters

account_id*string

The LinkedIn account (lg_…) to act as.

Length1 <= length

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/users/invite/received/7391827364519283999?account_id=lg_3f9c2a7b1d" \  -H "Content-Type: application/json" \  -d '{    "provider": "LINKEDIN",    "account_id": "lg_3f9c2a7b1d",    "action": "accept"  }'
{  "object": "UserInvitationHandled",  "status": "DECLINED"}