API referenceEvents

Someone invited the account to connect, usually within a minute or two (LinkedIn's My Network badge is the cue; a check every few hours is the fallback). Once per invitation. Invitations already there when Swarmhit first looked are not sent. Accept it with POST /api/v1/users/invite/received/{invitation_id}.

Header Parameters

X-LG-Signature*string

base64url(HMAC-SHA256(raw body, your webhook's signing secret)), the secret being the whsec_… shown in the console. Verify it over the raw bytes before parsing, and refuse the event when it does not match.

X-LG-Event-Id*string

The event id, also event_id in the body: the same on every retry of the event. Deduplicate on it.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

Example Requests

POST/InvitationReceived