# LinkedIn — Pipedream Connect

> LinkedIn is a business and employment-focused social media platform. Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.

- API slug: `linkedin` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Marketing
- Website: https://linkedin.com/
- Managed OAuth scopes: `r_1st_connections_size` · `r_ads_reporting` · `rw_organization_admin` · `w_organization_social` · `r_organization_social` · `w_member_social_feed` · `w_member_social` · `w_organization_social_feed` · `r_basicprofile` · `rw_ads` · `r_organization_social_feed` · `r_ads`
- This page (HTML): https://pipedream.com/apps/linkedin
- Tools: 22 actions · 1 trigger

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: linkedin`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "linkedin",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create a Simple Post (Organization):
const result = await mcp.callTool({
  name: "linkedin-create-text-post-organization",
  arguments: {
    organizationId: "Organization Id",
    text: "Text",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a LinkedIn endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.linkedin.com/v2/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkubGlua2VkaW4uY29tL3YyL21l?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "linkedin-create-text-post-organization",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    linkedin: { authProvisionId: "apn_xxxxxxx" },
    organizationId: "Organization Id",
    text: "Text",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (22)

### `linkedin-create-text-post-organization` — Create a Simple Post (Organization) (Write)

Create post on LinkedIn using text, URL or article. See the documentation for more information

Full schema: https://pipedream.com/apps/linkedin/actions/create-text-post-organization.md

### `linkedin-create-text-post-user` — Create a Simple Post (User) (Write)

Create post on LinkedIn using text, URL or article. See the documentation for more information

Full schema: https://pipedream.com/apps/linkedin/actions/create-text-post-user.md

### `linkedin-create-comment` — Create Comment (Write)

Create a comment on a share or user generated content post. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/create-comment.md

### `linkedin-create-image-post-organization` — Create Image Post (Organization) (Write)

Create an image post on LinkedIn. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/create-image-post-organization.md

### `linkedin-create-image-post-user` — Create Image Post (User) (Write)

Create an image post on LinkedIn. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/create-image-post-user.md

### `linkedin-create-like-on-share` — Create Like On Share (Write)

Creates a like on a share. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/create-like-on-share.md

### `linkedin-delete-post` — Delete Post (Write)

Removes a post from user's wall. See the documentation for more information

Full schema: https://pipedream.com/apps/linkedin/actions/delete-post.md

### `linkedin-fetch-ad-account` — Fetch Ad Account (Write)

Fetches an individual adAccount given its id. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/fetch-ad-account.md

### `linkedin-get-current-member-profile` — Get Current Member Profile (Read-only)

Gets the profile of the current authenticated member. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/get-current-member-profile.md

### `linkedin-get-member-profile` — Get Member Profile (Read-only)

Gets another member's profile, given its person id. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/get-member-profile.md

### `linkedin-get-member-organization-access-control` — Get Member's Organization Access Control Information (Write)

Gets the organization access control information of the current authenticated member. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/get-member-organization-access-control.md

### `linkedin-get-org-member-access` — Get Member's Organization Access Control Information (Read-only)

Gets the organization access control information of the current authenticated member. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/get-org-member-access.md

### `linkedin-get-multiple-member-profiles` — Get Multiple Member Profiles (Read-only)

Gets multiple member profiles at once. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/get-multiple-member-profiles.md

### `linkedin-get-organization-administrators` — Get Organization Administrators (Read-only)

Gets the administrator members of a selected organization. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/get-organization-administrators.md

### `linkedin-get-profile-picture-fields` — Get Profile Picture Fields (Read-only)

Gets the authenticated user's profile picture data including display image and metadata. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/get-profile-picture-fields.md

### `linkedin-get-organization-access-control` — Gets Organization Access Control (Read-only)

Gets a selected organization's access control information. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/get-organization-access-control.md

### `linkedin-list-ad-account-id-options` — List Ad Account Id Options (Read-only)

Retrieves available options for the Ad Account Id field.

Full schema: https://pipedream.com/apps/linkedin/actions/list-ad-account-id-options.md

### `linkedin-list-campaign-id-options` — List Campaign Id Options (Read-only)

Retrieves available options for the Campaign Id field.

Full schema: https://pipedream.com/apps/linkedin/actions/list-campaign-id-options.md

### `linkedin-list-organization-id-options` — List Organization Id Options (Read-only)

Retrieves available options for the Organization Id field.

Full schema: https://pipedream.com/apps/linkedin/actions/list-organization-id-options.md

### `linkedin-retrieve-comments-shares` — Retrieve Comments On Shares (Write)

Retrieve comments on shares given the share urn. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/retrieve-comments-shares.md

### `linkedin-retrieve-comments-on-comments` — Retrieves Comments on Comments (Write)

Retrieves comments on comments, given the parent comment urn. See the documentation

Full schema: https://pipedream.com/apps/linkedin/actions/retrieve-comments-on-comments.md

### `linkedin-search-organization` — Search Organization (Read-only)

Searches for an organization by vanity name or email domain. See the docs here

Full schema: https://pipedream.com/apps/linkedin/actions/search-organization.md

## Triggers (1)

### `linkedin-new-organization-post-created` — New Organization Post Created (Polling)

Emit new event when a new post is created by the organization. See the documentation.

Full schema: https://pipedream.com/apps/linkedin/triggers/new-organization-post-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
