Skip to main content
POST
Accept Connection Invitation
Accept a pending connection invitation using the invitation’s shared secret and entity URN.
This endpoint costs 1 credit per request. Ignore this if you’re on per-seat pricing: usage is unlimited.

Header Parameters

string
required
Your API key

Body Parameters

string
required
Shared secret of the invitation
string
required
Entity URN of the invitation
string
default:"FR"
Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
string
required
LinkedIn authentication cookie obtained from the login/verify process

Response

string
Request status (success/error)
string
Detailed message about the acceptance status

Notes

  • Both shared_secret and entity_urn can be obtained from the /v1/network/invitations endpoint
  • The invitation must still be pending and not expired
  • Each invitation can only be accepted once
  • The API will return an error if:
    • The invitation has already been accepted
    • The invitation has expired
    • The shared secret or entity URN is invalid
    • The user doesn’t have permission to accept the invitation