The connections, newest first, a page of limit (at most 40, as LinkedIn's connections page loads). Pass cursor back for the next page; null on the last. Some accounts can page through their newest 200 connections only: past them the list ends (cursor is null).
Your API key from the console (gw_live_…).
In: header
Query Parameters
The LinkedIn account (lg_…) to act as.
1 <= lengthConnections per page, 1 to 40. Default 40.
1 <= value <= 4040The previous page's cursor, as given. Leave it out for the first page.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/users/relations?account_id=lg_3f9c2a7b1d"{ "object": "UserRelationsList", "items": [ { "object": "UserRelation", "member_id": "ACoAAB1a2b3c4d5e6f", "member_urn": "urn:li:fsd_profile:ACoAAB1a2b3c4d5e6f", "public_identifier": "jane-doe", "public_profile_url": "https://www.linkedin.com/in/jane-doe", "first_name": "Jane", "last_name": "Doe", "headline": "Head of Sales at Example Corp", "created_at": 1761901800000 } ], "cursor": null}Pending received invitations GET
The invitations the account received and has not answered yet, a page of `limit`. Pass `cursor` back for the next page; `null` on the last.
Pending sent invitations GET
The invitations the account sent that are still pending, a page of `limit`. Pass `cursor` back for the next page; `null` on the last.