> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkupapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accept Connection Invitation

> Accept a pending LinkedIn connection invitation

Accept a pending connection invitation using the invitation's shared secret and entity URN.

<Note>
  This endpoint costs **1 credit** per request.
</Note>

### Header Parameters

<ParamField header="x-api-key" type="string" required>
  Your API key
</ParamField>

### Body Parameters

<ParamField body="shared_secret" type="string" required>
  Shared secret of the invitation
</ParamField>

<ParamField body="entity_urn" type="string" required>
  Entity URN of the invitation
</ParamField>

<ParamField body="country" type="string" default="FR">
  Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
</ParamField>

<ParamField body="login_token" type="string" required>
  LinkedIn authentication cookie obtained from the login/verify process
</ParamField>

### Response

<ResponseField name="status" type="string">
  Request status (success/error)
</ResponseField>

<ResponseField name="message" type="string">
  Detailed message about the acceptance status
</ResponseField>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "status": "success",
    "message": "Invitation accepted successfully"
  }
  ```
</ResponseExample>

### 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
