# Checking connection status

This page describes how to create workflows for checking connection statuses between your LinkedIn account and other people.

## Single person check

To check the connection status between your account and another person, you need to include [`st.checkConnectionStatus`](/docs/action-st-check-connection-status) action in your workflow. Here's an example:

**Workflow:**

```json
{
  "actionType": "st.checkConnectionStatus",
  "personUrl": "https://www.linkedin.com/in/person1"
}
```

**Completion:**

```json
{
  "actionType": "st.checkConnectionStatus",
  "success": true,
  "data": {
    "connectionStatus": "pending"
  }
}
```

## Multiple people check

To check the connection statuses between your account and several people, you need to use [`st.checkConnectionStatus`](/docs/action-st-check-connection-status) multiple times. Here's an example:

**Workflow:**

```json
[
  {
    "actionType": "st.checkConnectionStatus",
    "label": "person1",
    "personUrl": "https://www.linkedin.com/in/person1"
  },
  {
    "actionType": "st.checkConnectionStatus",
    "label": "person2",
    "personUrl": "https://www.linkedin.com/in/person2"
  },
  {
    "actionType": "st.checkConnectionStatus",
    "label": "person3",
    "personUrl": "https://www.linkedin.com/in/person3"
  }
]
```

**Completion:**

```json
[
  {
    "actionType": "st.checkConnectionStatus",
    "label": "person1",
    "success": true,
    "data": {
      "connectionStatus": "connected"
    }
  },
  {
    "actionType": "st.checkConnectionStatus",
    "label": "person2",
    "success": true,
    "data": {
      "connectionStatus": "pending"
    }
  },
  {
    "actionType": "st.checkConnectionStatus",
    "label": "person3",
    "success": true,
    "data": {
      "connectionStatus": "notConnected"
    }
  }
]
```

> 💡 Use this approach for multiple checks as it's significantly faster than creating separate workflows for each person.

> This page provides examples of [workflows](/docs/building-workflows) and their [completions](/docs/executing-workflows). For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding [action documentation pages](/docs/actions-overview).
