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
- 1In Melso, open Settings → Agent Apps and hit Connect on LinkedIn.
- 2Finish the OAUTH2 sign-in in the window that opens. Melso stores the connection, not your credentials.
- 3Open your Codex agent, go to its Agent Apps tab, and allow LinkedIn.
- 4Give the agent a task. It calls LinkedIn itself when the work needs it.
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
Tools LinkedIn exposes
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.
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.
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).
Create video post
Publish an available member-owned LinkedIn video as a personal native video post.
Delete LinkedIn Post
Deletes a specific LinkedIn post (share) by its unique `share_id`, which must correspond to an existing share.
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.
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.
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).