Why your LinkedIn API @mentions show up as plain text
If you've tried to @mention a person in a LinkedIn post through an API, you probably did this: open their profile, copy the ID from the URL or page source (ACoAA…), build urn:li:person:ACoAA…, post. The post goes out and the mention is plain text.
That ID is a web-profile ID. LinkedIn's API only resolves mentions with the member's native ID, a short string like Dk968RHxiO, and there is no way to convert one into the other.
Where native IDs come from
The one source Publora can use is engagement on company pages. When you read comments or reactions on your company page's posts, LinkedIn returns each engaging member with their native ID.
Publora keeps those. Every time you read engagement on a connected company page (in the app or through the API), the people who commented or reacted are saved to a per-user directory, the LinkedIn mentionables list. No extra LinkedIn calls are made; it fills as a side effect of reads you already do.
Getting a ready-made mention
curl "https://api.publora.com/api/v1/linkedin-mentionables?q=daria&limit=10" \ -H "x-publora-key: YOUR_API_KEY" { "success": true, "people": [ { "personId": "Dk968RHxiO", "name": "Daria Bulaeva", "source": "comment", "lastSeenAt": "2026-07-16T10:00:00.000Z", "mention": "@{urn:li:person:Dk968RHxiO|Daria Bulaeva}" } ] } q is a case-insensitive filter on the name, limit goes up to 100, and the most recently engaged people come first. The mention field is the whole token: paste it into post content, a comment or a reshare and LinkedIn renders it as a real mention.
The name part is strict
LinkedIn matches the display name in the token exactly. You can shorten it to the first name, the last name or the full name, but keep the case and add nothing. @{urn:li:person:Dk968RHxiO|Daria} works; @{urn:li:person:Dk968RHxiO|daria} or |Daria B. doesn't.
What it can't do
The limits, so you know them up front:
- Engagement on personal profile posts can't be captured: LinkedIn restricts that scope. Only company-page engagement fills the directory.
- There's no endpoint to add a person by profile URL, for the same reason as above.
- It's on paid plans. A free Starter key is accepted, then gets
403withcode: "UPGRADE_REQUIRED".
So it works best for the people who already engage with your company page: commenters you want to thank, partners, regular readers.
MCP clients get the same list as the linkedin_list_mentionables tool, with the same q and limit parameters.
The full reference, including errors and how the directory fills, is in the LinkedIn mentionables docs.
Written with Claude.
Have you found any other reliable way to get native member IDs? I'd love to hear it if you have.
原文:https://www.a8q9.cn/en/article/why-your-linkedin-api-mentions-show-up-as-plain-text-19bc8c.html