API Reference
Get the member
/v2/mehttps://linkedin-ads.mimicr.dev · provider: https://api.linkedin.comReturns the member of the token (scope r_basicprofile or r_liteprofile). The person URN is urn:li:person:{id}. This unversioned path needs no LinkedIn-Version; the versioned alias GET /rest/me is accepted too. Other /v2/ Marketing paths were sunset and answer 426.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Responses
200The member.
Member id; the person URN is urn:li:person:{id}.
First name.
Last name.
Localized text.
Show child attributes
Text per locale ({"pt_BR": "…"}).
Show child attributes
Country code (BR).
Language code (pt).
Localized text.
Show child attributes
Text per locale ({"pt_BR": "…"}).
Show child attributes
Country code (BR).
Language code (pt).
Headline.
Vanity name.
401Missing token (Empty oauth2_access_token), invalid token (65600 INVALID_ACCESS_TOKEN), revoked (65601 REVOKED_ACCESS_TOKEN) or expired (65602 EXPIRED_ACCESS_TOKEN).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
403The token lacks the scope (ACCESS_DENIED, "Not enough permissions to access: {resource}.{METHOD}.{version}") or the member's role is too low (NO_PERMISSION_ON_ENTITY).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.