Skip to main content

Networking

Removing connections

This endpoint allows you to remove specified people from your LinkedIn connections.

POST https://api.linkedapi.io/account/connections.remove

Body


{
  "people": [
    "https://www.linkedin.com/in/person1",
    "https://www.linkedin.com/in/person2"
  ]
}
  • people – LinkedIn URLs of people you want to remove from your connections.

Response

  1. If all removals are successful:

{
  "status": "complete",
  "completion": [
    {
      "person": "https://www.linkedin.com/in/person1",
      "result": {
        "success": true
      }
    },
    {
      "person": "https://www.linkedin.com/in/person2",
      "result": {
        "success": true
      }
    }
  ]
}
  1. If some removals are unsuccessful:

{
  "status": "complete",
  "completion": [
    {
      "person": "https://www.linkedin.com/in/person1",
      "result": {
        "success": true
      }
    },
    {
      "person": "https://www.linkedin.com/in/person2",
      "result": {
        "success": false,
        "error": {
          "errorType": "connectionNotFound"
          "message": "The person isn't in your LinkedIn connections."
        }
      }
    }
  ]
}
  • errorType – enum with the following possible values:
    • connectionNotFound – the person isn't in your LinkedIn connections.
    • personNotFound – provided URL is not an existing LinkedIn person.

Throughout the documentation, for simplicity, only the request body and final response (when status is complete) are shown. Consider possible global errors and result handling options for proper implementation.