API referenceLinkedin users and invitations
POST
/api/v1/users/invite

A write (invite, plus a visit when the profile is opened on the way). A note over 300 characters is refused (422 too_many_characters), never cut. LinkedIn's refusals: 422 errors/cannot_resend_yet (its limit, or too soon to invite again: cool the sender down) and errors/already_invited_recently (already pending: treat as sent).

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Request Body

application/json

account_id in the body or the query.

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" \  -H "Content-Type: application/json" \  -d '{    "account_id": "lg_3f9c2a7b1d",    "provider_id": "ACoAAB1a2b3c4d5e6f",    "message": "Hi Jane, glad to connect."  }'
{  "object": "UserInvitationSent",  "invitation_id": "7391827364519283746"}