melso
AutomationUse casesChangelog
Start your business
Codex and LinkedIn

Connect Codex to LinkedIn

Give your Codex agent access to LinkedIn in Melso — 24 tools it can call while it works through a task.

Set it up in Melso

  1. 1In Melso, open Settings → Agent Apps and hit Connect on LinkedIn.
  2. 2Finish the OAUTH2 sign-in in the window that opens. Melso stores the connection, not your credentials.
  3. 3Open your Codex agent, go to its Agent Apps tab, and allow LinkedIn.
  4. 4Give the agent a task. It calls LinkedIn itself when the work needs it.
Get Melso
What you get

What LinkedIn gives your agent

The tools, permissions, and events LinkedIn exposes — the same ones your agent can use once the app is authorized.

What you sign in with

LinkedIn connects with OAUTH2.

  • Client id
  • Client secret

Permissions

openidprofilew_member_socialemail

Tools LinkedIn exposes

LINKEDIN_CREATE_ARTICLE_OR_URL_SHARE

Create article or URL share

Tool to create an article or URL share on LinkedIn using the UGC Posts API. Use when you need to share a link with optional commentary on LinkedIn. Supports sharing URLs as articles with customizable visibility settings.

LINKEDIN_CREATE_COMMENT_ON_POST

Create comment on LinkedIn post

Tool to create a first-level or nested comment on a LinkedIn share, UGC post, or parent comment via the Social Actions Comments API. Use when you need to engage with posts by adding comments or replying to existing comments. Supports text comments with optional @-mentions and image attachments.

LINKEDIN_CREATE_LINKED_IN_POST

Create a LinkedIn post

Creates a new post on LinkedIn for the authenticated user or an organization they manage. Requires w_member_social scope for posting as a person, and w_organization_social scope for posting as an organization (with ADMINISTRATOR, DIRECT_SPONSORED_CONTENT_POSTER, or CONTENT_ADMIN role).

LINKEDIN_CREATE_VIDEO_POST

Create video post

Publish an available member-owned LinkedIn video as a personal native video post.

LINKEDIN_DELETE_LINKED_IN_POST

Delete LinkedIn Post

Deletes a specific LinkedIn post (share) by its unique `share_id`, which must correspond to an existing share.

LINKEDIN_DELETE_POST

Delete Post

Delete a LinkedIn post using the Posts API REST endpoint. Supports both ugcPost and share URN formats. This action is idempotent - deleting an already-deleted post returns success. Note: LinkedIn's own live /rest/posts DELETE endpoint does NOT actually honor this on its own (a repeat delete 404s rather than returning 204 as LinkedIn's docs claim); this action compensates by treating a 404 as a successful deletion.

LINKEDIN_DELETE_UGC_POST

Delete UGC Post (Legacy)

Delete a UGC post using the legacy UGC Post API endpoint. Use when you need to delete a post using the v2/ugcPosts endpoint. Deletion is idempotent - previously deleted posts also return success.

LINKEDIN_GET_AD_TARGETING_FACETS

Get ad targeting facets

Tool to retrieve available ad targeting facets from LinkedIn Marketing API. Use when you need to discover what targeting options are available for ad campaigns (e.g., locations, industries, job functions).

Example prompts

  • Use LinkedIn to check recent changes and summarize them in the issue.
  • When a customer writes in, pull their data from LinkedIn before replying.
  • Audit our open items in LinkedIn and notify the channel of anything stale.

Useful links

  • LinkedIn website
  • Melso Agent Apps docs

More in Social Media Accounts

  • Twitter
  • YouTube
  • Reddit
  • LinkedIn
  • Facebook
melso

Run your company with AI agents.

Start your business

Product

  • Home
  • Automation
  • Melso vs Polsia
  • Use cases
  • Changelog
  • Download

Resources

    Company

    • About
    • Contact Sales

    © 2026 Melso. All rights reserved.