LinkedIn Integration

Connect your AI agent to LinkedIn. Automate post creation, manage your Company Page, message connections, and track analytics with secure OAuth2 access.

API Key (Bearer Token)*.linkedin.com, api.linkedin.com

What your agent can do

Full LinkedIn presence management through the Marketing Developer Platform API.

Post creation

Publish posts to your personal profile or company page. Add text, images, links, and document attachments. Schedule posts for optimal visibility.

Company page management

Manage your LinkedIn Company Page. Update page details, respond to comments, and maintain a consistent brand presence.

Connection messaging

Send messages to your LinkedIn connections. Follow up with prospects, nurture leads, and respond to inbound inquiries.

Analytics

Access post analytics, page follower demographics, and engagement trends. Generate performance reports for your content strategy.

Comment management

Monitor and respond to comments on your posts. Engage with your audience and build meaningful conversations around your content.

Secure OAuth2 access

Your OAuth2 access token is encrypted with AES-256-GCM. All API calls go through your agent's sandboxed environment with full audit logging.

Prerequisites

  • A LinkedIn account with a Company Page (admin access required)
  • An app created in the LinkedIn Developer Portal
  • Marketing Developer Platform access approved for your app
  • An OAuth2 access token with posting and analytics scopes

Marketing Developer Platform access requires approval from LinkedIn. This can take 1-5 business days. Apply early to avoid delays in setup.

Step-by-step setup

Connect your LinkedIn account to ClawTrust in about 10 minutes (after API access is approved).

1

Create a LinkedIn Company Page

If you do not have one, create a Company Page on LinkedIn. You will need admin access to post and manage the page through the API.

2

Create an app in the LinkedIn Developer Portal

Go to linkedin.com/developers and create a new app. Associate it with your Company Page. Request the Marketing Developer Platform product for posting access.

3

Request API access and permissions

Under your app's Products tab, request access to "Share on LinkedIn" and "Marketing Developer Platform." These give your app permission to create posts and read analytics.

4

Generate an OAuth2 access token

Use LinkedIn's OAuth 2.0 flow to generate an access token with the r_liteprofile, w_member_social, and r_organization_social scopes. The token is valid for 60 days.

5

Add credentials in ClawTrust

Open your agent's dashboard, go to Credentials, and click Add Credential. Select "LinkedIn" and paste your access token. ClawTrust encrypts it before storage.

6

Your agent is live on LinkedIn

Your agent can now create posts, manage your Company Page, and respond to comments. Test it by asking your agent to draft and publish a post.

Credential details

LinkedIn uses OAuth2 Bearer token authentication.

OAuth2 Access Token

A token granting your agent permission to post and manage content on your behalf. Standard tokens expire after 60 days and need to be refreshed.

Organization ID

The numeric ID of your LinkedIn Company Page. Found in your Page's admin URL or via the API. Required for company page posting.

All credentials are encrypted with AES-256-GCM and stored in ClawTrust's secrets vault. They never touch the tenant VPS directly.

Example actions

Once connected, try asking your agent any of these:

"Post a thought leadership article about [topic] to our Company Page"

"Reply to comments on our latest LinkedIn post"

"Send a follow-up message to the leads who engaged with our last post"

"Pull our Company Page analytics for the past month"

"Draft a post announcing our new product feature"

Ready to automate your LinkedIn presence?

Connect your LinkedIn account in minutes. Secure OAuth2 on every plan.