> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.scaleabm.org/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.scaleabm.org/_mcp/server.

# Connections

> Send connection requests, accept invitations, and manage your LinkedIn network

# Connections

Voyager provides full connection lifecycle management — send requests with personalized notes, accept inbound invitations, check pending requests, follow/unfollow profiles, and remove connections.

> **Note**
>
> Every Voyager response is wrapped in the standard envelope `{ success, statusCode, message, data, errors }`. The JSON examples below show only the endpoint-specific payload — access `res.data.<field>` in your client. See [Introduction](/guides/getting-started/introduction) for the full envelope shape.

## Send a Connection Request

```bash
curl -X POST "$BASE/api/connect" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "profileUrl": "https://www.linkedin.com/in/janesmith/",
    "message": "Hi Jane, I noticed your work on distributed systems at Acme. Would love to connect."
  }'
```

```json
{
  "success": true
}
```

> **Warning**
>
> Connection request notes are limited to 300 characters by LinkedIn. The `message` parameter is optional -- requests without a note have a higher acceptance rate according to most studies, but personalized notes work better for cold outreach.

## Check Pending Inbound Requests

See who wants to connect with you:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/connect/received"
```

```json
{
  "success": true,
  "invitations": [
    {
      "invitationUrn": "urn:li:fsd_invitation:123456",
      "sharedSecret": "abc123",
      "from": {
        "fullName": "John Doe",
        "headline": "CEO at StartupCo",
        "vanityName": "johndoe",
        "profileUrl": "https://www.linkedin.com/in/johndoe/"
      },
      "sentTime": "2026-03-16T10:30:00.000Z",
      "message": "Hey, saw your talk at the conference. Would love to chat."
    }
  ]
}
```

## Accept a Connection Request

Use the `invitationUrn` and `sharedSecret` from the received invitations list:

```bash
curl -X POST "$BASE/api/connect/accept" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "invitationUrn": "urn:li:fsd_invitation:123456",
    "sharedSecret": "abc123"
  }'
```

```json
{
  "success": true
}
```

## Remove a Connection

```bash
curl -X DELETE "$BASE/api/connection" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"profileUrl": "https://www.linkedin.com/in/janesmith/"}'
```

## Check Relationship Before Connecting

Before sending a connection request, check whether you are already connected or have a pending invitation:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/relationship/status?profileUrl=https://www.linkedin.com/in/janesmith/"
```

```json
{
  "success": true,
  "data": {
    "connected": false,
    "connectionDegree": "2ND",
    "canMessageDirectly": false,
    "canConnect": true,
    "openProfile": false,
    "pendingInvitationSent": false
  }
}
```

Key fields to check:

* `connected: true` -- Already connected, no need to send request
* `pendingInvitationSent: true` -- You already sent a request, wait for response
* `canConnect: false` -- LinkedIn is blocking connection (rate limit or restriction)

## Follow / Unfollow

Follow a profile without connecting (you will see their posts in your feed):

```bash
# Follow
curl -X POST "$BASE/api/follow" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"profileUrl": "https://www.linkedin.com/in/janesmith/"}'

# Unfollow
curl -X POST "$BASE/api/follow" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"profileUrl": "https://www.linkedin.com/in/janesmith/", "unfollow": true}'
```

## Visit a Profile

Trigger a "profile viewed" notification (useful for warming up prospects):

```bash
curl -X POST "$BASE/api/visit" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{"profileUrl": "https://www.linkedin.com/in/janesmith/"}'
```

> **Note**
>
> Profile visits are async jobs. The endpoint returns a `jobId` -- poll `GET /api/jobs/:jobId` for completion.

## Event-Driven Connection Management

Set up webhooks to be notified of new connection requests:

```bash
curl -X POST "$BASE/api/webhooks" \
  -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/webhook",
    "events": ["connection_received"],
    "secret": "your-hmac-secret"
  }'
```

Or poll the event feed:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/events?types=connection.received&since=2026-03-17T00:00:00Z"
```

## Recommended Pacing

* **Connection requests**: 60 seconds between requests, max \~20 per day for new accounts
* **Acceptance**: No specific limit, but batch-accepting dozens at once may look automated
* **Profile visits**: 5-10 seconds between visits

> **Warning**
>
> LinkedIn limits the number of weekly connection requests. Exceeding the limit triggers a temporary restriction. Voyager reports usage via `GET /api/session/capabilities` -- your agent should check `connectionsRequested` and pace accordingly.

## Connection Balance

Check your connection request limits and sent invitation count:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/connect/balance"
```

## Relationship Insights

Find warm paths to a person -- mutual connections, shared experiences:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/relationship/insights?profileUrl=https://www.linkedin.com/in/janesmith/"
```

## Suggested Contacts

Get LinkedIn's own suggested contacts for your network:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/contacts/suggested"
```

## Sent Invitations

View your pending outbound connection requests:

```bash
curl -H "Authorization: Bearer $KEY" \
  -H "X-User-Id: $USER" \
  "$BASE/api/invitations/sent?start=0&count=20"
```

## Related

* [Profiles](/guides/core-concepts/profiles) -- Get profile data before connecting
* [Messaging](/guides/core-concepts/messaging) -- Message connections
* [SalesNav](/guides/core-concepts/sales-nav) -- Account intelligence and relationship maps
* [Warm Outreach Guide](/guides/workflow-guides/warm-outreach) -- Full connect-then-message workflow
* [Rate Limiting](/common-patterns/common-patterns/rate-limiting) -- Usage tracking