---
search:
  tags:
    - LinkedIn
    - GET
seo:
  description: >-
    Look up the mention format for a LinkedIn user or organization by their…
    Reference for the GET /linkedin/{username}/mentions endpoint in the Ordinal
    API.
sidebar:
  label: Mention format by username
  badge: GET
title: Mention format by username
type: openapi-operation
---
Look up the mention format for a LinkedIn user or organization by their username to use in posts or comments.

The username is the part after `/in/` or `/company/` in a LinkedIn profile URL:
- Personal profile: `linkedin.com/in/johndoe`  - username is `johndoe`
- Company page: `linkedin.com/company/acme-inc`  - username is `acme-inc`

Returns both user and organization results if a username matches both (rare but possible).

`GET /linkedin/{username}/mentions`

**Responses**

- `200` — LinkedIn mention information
- `401` — Unauthorized - Missing or invalid API key
- `404` — Not Found - Resource does not exist

Response example, 200:

```json
{
  "user": {
    "username": "johndoe",
    "urn": "urn:li:person:ABC123xyz",
    "type": "User",
    "displayName": "John Doe",
    "firstName": "John",
    "mentionFormat": "@[John Doe](urn:li:person:ABC123xyz)",
    "firstNameMentionFormat": "@[John](urn:li:person:ABC123xyz)"
  },
  "organization": {
    "username": "acme-inc",
    "urn": "urn:li:organization:123456",
    "type": "Organization",
    "displayName": "Acme Inc",
    "mentionFormat": "@[Acme Inc](urn:li:organization:123456)"
  }
}
```

Response example, 401:

```json
{
  "code": "UNAUTHORIZED",
  "message": "Invalid or unauthorized API key"
}
```

Response example, 404:

```json
{
  "code": "NOT_FOUND",
  "message": "Post not found or does not belong to this workspace"
}
```
