API referenceSandbox
POST
/api/v1/sandbox/simulate

Sandbox only (a gw_test_ key, a sandbox account): what LinkedIn would do on its own, so your sandbox webhook receives the same event, in the same shape, as on a live account. A live account answers 403. Every field but account_id and kind is optional: a sandbox person, chat, message or post is picked when it is left out.

kindWhat happensFields it reads
message_receivedA person writes: in chat_id, else to the account in their conversation (provider_id) or a new one.chat_id, provider_id, text
message_editedThe other person edits their message (message_id, else their newest).message_id, chat_id, provider_id, text
message_deletedThe other person deletes their message.message_id, chat_id, provider_id
message_reactionThe other person reacts to the account's message (its newest, by default).message_id, chat_id, provider_id, reaction (an emoji)
message_readThe other person reads the account's message (told once per message).message_id, chat_id, provider_id
new_relationA pending invitation the account sent (provider_id, else the oldest) is accepted. invitation_accepted is the same.provider_id
invitation_receivedSomeone invites the account; it shows in GET /users/invite/received.provider_id, text
post_commentSomeone comments on one of the account's three newest posts.post_id, provider_id, text
post_reactionSomeone who has not yet reacts to one of those posts.post_id, provider_id, reaction (like, celebrate, support, love, insightful, funny)
profile_viewSomeone views the account's profile (one view per person a day).provider_id

The change shows when read back: a message in its chat, an edit or a deletion in it, a comment or a reaction on the post. message_edited, message_deleted, message_reaction, message_read, post_comment, post_reaction and profile_view reach your webhook only when your company receives live events, as on a live account.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

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

curl -X POST "https://example.com/api/v1/sandbox/simulate" \  -H "Content-Type: application/json" \  -d '{    "account_id": "lg_3f9c2a7b1d4e5f60",    "kind": "message_received",    "text": "Thanks for reaching out, happy to chat."  }'
{  "object": "SandboxSimulation",  "kind": "message_received",  "account_id": "lg_3f9c2a7b1d4e5f60",  "provider_id": "ACoAAB1a2b3c4d5e6f",  "chat_id": "lgc_8XyZ12ab34",  "message_id": "lgm_4k2Lp9"}