Withdraw a connection request
The LinkedIn API allows you to withdraw a connection request that you previously sent. Below is an example of how to withdraw a connection request using the DELETE
method with a cURL
command.
Endpoint
DELETE /v1/connections/requests
Body Parameters
- url: The full LinkedIn profile URL of the person whose connection request you want to withdraw.
Example
curl -X DELETE 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/"
}'
Response
A successful request will return a 200 OK
status and a confirmation that the connection request has been withdrawn. If the request cannot be withdrawn (e.g., it was already accepted or does not exist), the response will include the relevant error message.