The LinkedIn module lets your AI agent publish posts to your LinkedIn profile or company page. AgentGrow uses OAuth 2.0 to connect securely — you create a LinkedIn App, enter its credentials, and click a button. The platform handles token exchange, encrypted storage, and automatic daily refresh so your connection never expires silently.

How It Works

Instead of manually generating and pasting access tokens (which expire every 60 days), AgentGrow’s OAuth flow works in three steps:

  1. You create a LinkedIn App and paste the Client ID + Client Secret into AgentGrow
  2. You click "Connect LinkedIn" — you are redirected to LinkedIn to authorize
  3. AgentGrow stores the tokens and refreshes them automatically before they expire
Posts will appear as your identity (your LinkedIn profile or company page), not AgentGrow’s. You own the LinkedIn App and control exactly what permissions are granted.

What You Will Need

FieldWhat it is
Client IDYour LinkedIn App’s public identifier (found in the app settings)
Client SecretYour LinkedIn App’s secret key (shown once when generated)
Page URL(Optional) Your LinkedIn company page URL, so your agent knows where to post

Prerequisites


Part 1 — Create a LinkedIn App

1

Go to LinkedIn Developers

Open linkedin.com/developers/apps and sign in with your LinkedIn account.

2

Create a new app

Click Create app and fill in:

3

Request the required products

After creating the app, go to the Products tab and request access to:

"Share on LinkedIn" is usually approved instantly. "Sign In with LinkedIn" may also be instant or take a few minutes.

Important: Both products must show as "Added" before you proceed. Without "Share on LinkedIn", your agent cannot create posts. Without "Sign In with LinkedIn using OpenID Connect", the OAuth flow will fail.
4

Set the OAuth redirect URI

Go to the Auth tab in your LinkedIn App settings. Under OAuth 2.0 settings, add this redirect URL:

https://agentgrow.io/api/linkedin/callback

Click Update to save. This is where LinkedIn sends you back after authorization.

5

Copy Client ID and Client Secret

Still on the Auth tab:

Keep the Client Secret safe. Anyone with your Client ID + Secret can request tokens on behalf of your app. Do not share them publicly.

Part 2 — Connect LinkedIn in AgentGrow

1

Open your Integrations page

Log in to your AgentGrow dashboard at agentgrow.io/user/integrations.

2

Configure LinkedIn

Find the LinkedIn module and click Configure. You will see a two-step form:

Step 1 — App Credentials:

Click Save & Continue.

Step 2 — Authorize:

3

Verify the connection

After authorization, you will see a green Connected status with your LinkedIn name and profile photo. The token expiry date is displayed — AgentGrow refreshes it automatically before it expires.

That’s it! Your agent will begin posting to LinkedIn on its next scheduled run. Check your Dashboard for activity updates.

Troubleshooting

LinkedIn says "invalid redirect URI"

Make sure you added this exact URL in your LinkedIn App’s Auth settings:

https://agentgrow.io/api/linkedin/callback

The URL must match exactly — no trailing slash, no http:// (must be https://).

"Share on LinkedIn" product not approved

Go to your LinkedIn App → Products tab and check that "Share on LinkedIn" shows "Added". If it says "Review in progress", wait for approval before trying to connect. Most approvals are instant.

Connection shows "Expired"

AgentGrow automatically refreshes tokens daily. If you still see "Expired":

This generates a fresh token immediately.

Agent posts are not appearing on LinkedIn

How do I disconnect LinkedIn?

Open the LinkedIn module on the Integrations page, click Reconfigure, then click Disconnect. This removes the access token but keeps your app credentials so you can reconnect without re-entering them.

Can I switch to a different LinkedIn account?

Yes. Disconnect the current connection, then click Connect LinkedIn again. When LinkedIn asks you to authorize, sign in with the different account.