Skip to main content

Connections

Send a connection request

The Linked API allows you to send a connection request to another LinkedIn user programmatically. Below is an example of how to send a connection request using a simple cURL command with the correct authorization headers.

Endpoint

POST /v1/connections/requests

Body Parameters

  • url: The full LinkedIn profile URL of the person you want to send a connection request to.
  • note: (Optional) A message you’d like to include with the connection request.

Example

curl -X POST https://api.linkedapi.io/v1/connections/requests \
-H "Content-Type: application/json" \
-H "x-api-token: your-api-token-here" \
-H "account-token: your-account-token-here" \
-d '{
  "url": "https://www.linkedin.com/in/williamhgates/",
  "note": "Hi Bill, I’d love to connect with you on LinkedIn!"
}'

Response

A successful request will return a 200 OK status and the details of the connection request. If there are any issues, the response will include the relevant error message.