Check a connection status
The Linked API allows you to check the status of a connection request that you have sent programmatically. Below is an example of how to check the connection status using a simple GET
request.
Endpoint
GET /v1/connections/requests
Parameters
url
(required, string): The URL of the LinkedIn profile to check the connection status for.
Example
curl -X GET https://api.linkedapi.io/v1/connections/status \
-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
{
"status": "Connected"
}
Status Variations:
Connected
: You are connected with the user.Pending
: Your connection request is still awaiting approval.Not Connected
: No connection or pending request exists.
Errors
400 Bad Request
: Invalid or missing parameters.401 Unauthorized
: Missing or invalid authorization token.404 Not Found
: Profile not found.