---
title: LinkedIn API Integration on Truto
slug: linkedin
category: Marketing Automation
canonical: "https://truto.one/integrations/detail/linkedin/"
---

# LinkedIn API Integration on Truto



**Category:** Marketing Automation  
**Status:** Beta

## Unified APIs

### Unified User Directory API

- **Roles** — The Role object represents a role of a User.
- **Users** — The User object represents a User.

### Unified Ads Management API

- **Accounts** — Accounts are the top level resource in the Ads API. Each account has a unique ID and contains a set of campaigns.
- **Ad Groups** — Ad Groups are the third level resource in the Ads API. Each ad_group has a unique ID and contains a set of ads.
- **Campaigns** — Campaigns are the second level resource in the Ads API. Each campaign has a unique ID and contains a set of ad_groups.
- **Custom Audiences** — 

## MCP-ready AI tools

Truto exposes 43 tools for LinkedIn that AI agents can call directly.

- **list_all_linked_in_me** — Get the signed-in member (OpenID Connect userinfo): member id (sub), name, email and picture. GET /v2/userinfo. Needs the openid, profile and email scopes.
- **list_all_linked_in_ad_accounts** — Search the ad accounts the member can access (GET /rest/adAccounts?q=search). Optional search filters by status, type, name, reference or test. Paginated with pageToken.
- **get_single_linked_in_ad_account_by_id** — Get one ad account by its numeric ID (GET /rest/adAccounts/{id}): name, currency, type, status, owning organization and serving statuses.
- **create_a_linked_in_ad_account** — Create an ad account (POST /rest/adAccounts) owned by an organization. Required: name, currency, reference (organization URN) and type. The new ID is returned in the x-restli-id header.
- **list_all_linked_in_ad_campaigns** — Search campaigns in an ad account (GET /rest/adAccounts/{ad_account_id}/adCampaigns?q=search). Optional search by status, type, campaignGroup, name or id. Paginated.
- **get_single_linked_in_ad_campaign_by_id** — Get one campaign (GET /rest/adAccounts/{ad_account_id}/adCampaigns/{id}): budget, bid, schedule, targeting and status. Required: id, ad_account_id.
- **create_a_linked_in_ad_campaign** — Create a campaign (POST …/adCampaigns). Required: account, campaignGroup, name, type, costType, dailyBudget or totalBudget, unitCost, locale, runSchedule, targetingCriteria, status.
- **update_a_linked_in_ad_campaign_by_id** — Partially update a campaign (POST …/adCampaigns/{id} with X-RestLi-Method PARTIAL_UPDATE), e.g. {"patch": {"$set": {"status": "PAUSED"}}}. Required: id, ad_account_id, patch.
- **delete_a_linked_in_ad_campaign_by_id** — Delete a DRAFT campaign (DELETE …/adCampaigns/{id}); live campaigns are archived or canceled with update instead. Required: id, ad_account_id.
- **list_all_linked_in_ad_campaign_groups** — Search campaign groups in an ad account (GET /rest/adAccounts/{ad_account_id}/adCampaignGroups?q=search). Optional search by status, name, id or test. Paginated.
- **get_single_linked_in_ad_campaign_group_by_id** — Get one campaign group (GET /rest/adAccounts/{ad_account_id}/adCampaignGroups/{id}). Required: id, ad_account_id.
- **create_a_linked_in_ad_campaign_group** — Create a campaign group in an ad account (POST …/adCampaignGroups). Required: account URN, name, runSchedule.start and status; totalBudget optional.
- **update_a_linked_in_ad_campaign_group_by_id** — Partially update a campaign group (…/adCampaignGroups/{id}) with a Rest.li patch, e.g. {"patch": {"$set": {"status": "PAUSED"}}}. Required: id, ad_account_id, patch.
- **delete_a_linked_in_ad_campaign_group_by_id** — Delete a DRAFT campaign group (DELETE …/adCampaignGroups/{id}); other statuses must be archived or canceled with update instead. Required: id, ad_account_id.
- **list_all_linked_in_creatives** — Search creatives (ads) in an ad account (GET /rest/adAccounts/{ad_account_id}/creatives finder). Filter with campaigns, intendedStatuses, isTestAccount. Paginated.
- **get_single_linked_in_creative_by_id** — Get one creative (GET …/creatives/{id}). id is the URL-encoded creative URN, e.g. urn%3Ali%3AsponsoredCreative%3A123. Required: id, ad_account_id.
- **update_a_linked_in_creative_by_id** — Partially update a creative (POST …/creatives/{id}, PARTIAL_UPDATE), e.g. {"patch": {"$set": {"intendedStatus": "PAUSED"}}}. id is the URL-encoded creative URN.
- **create_a_linked_in_creative** — Create a creative that sponsors an existing post (POST …/creatives). Required: campaign URN, content.reference (post URN) and intendedStatus.
- **delete_a_linked_in_creative_by_id** — Delete a DRAFT creative (DELETE …/creatives/{id}). id is the URL-encoded creative URN; live creatives are archived with update instead. Required: id, ad_account_id.
- **list_all_linked_in_in_mail_contents** — Batch-get Message Ad (InMail) contents by ID (GET /rest/inMailContents?ids=…). Required: ids, one or more URL-encoded adInMailContent URNs separated as the API expects.
- **get_single_linked_in_in_mail_content_by_id** — Get one Message Ad content (GET /rest/inMailContents/{id}). id is the URL-encoded adInMailContent URN.
- **create_a_linked_in_in_mail_content** — Create Message Ad content (POST /rest/inMailContents). Required: account, name, subject, sender (person URN), htmlBody and subContent (regular CTA or guidedReplies).
- **update_a_linked_in_in_mail_content_by_id** — Partially update Message Ad content (/rest/inMailContents/{id}) with a Rest.li patch, e.g. {"patch": {"$set": {"subject": "New subject"}}}. id is the URL-encoded URN.
- **get_single_linked_in_carousel_ad_by_id** — Get a carousel ad post (GET /rest/posts/{id}). id is the URL-encoded post URN, e.g. urn%3Ali%3Ashare%3A123.
- **create_a_linked_in_carousel_ad** — Create a sponsored carousel post (POST /rest/posts) with 2-10 image cards; then sponsor it with creatives.create. Required: author, commentary, visibility, distribution, content.carousel, lifecycleState.
- **create_a_linked_in_text_ad** — Create a text ad creative (POST /rest/creatives) in a TEXT_AD campaign: headline, description, landing page and optional image. Required: campaign, content.textAd, intendedStatus.
- **get_single_linked_in_text_ad_by_id** — Get a text ad creative (GET /rest/creatives/{id}). id is the URL-encoded creative URN, e.g. urn%3Ali%3AsponsoredCreative%3A123.
- **update_a_linked_in_text_ad_by_id** — Partially update a text ad creative (POST /rest/creatives/{id}) with a Rest.li patch, e.g. {"patch": {"$set": {"intendedStatus": "PAUSED"}}}.
- **create_a_linked_in_image_ad** — Create a sponsored single-image post (POST /rest/posts); upload the image first (assets.create), then sponsor the post with creatives.create.
- **get_single_linked_in_article_ad_by_id** — Get an article (link) ad post (GET /rest/posts/{id}). id is the URL-encoded post URN.
- **create_a_linked_in_article_ad** — Create a sponsored article (link) post (POST /rest/posts) with source URL, title, description and thumbnail image; then sponsor it with creatives.create.
- **create_a_linked_in_video_ad** — Create a sponsored video post (POST /rest/posts) referencing an uploaded video URN; then sponsor it with creatives.create.
- **create_a_linked_in_document_ad** — Create a sponsored document post (POST /rest/posts) referencing an uploaded document URN (PDF, PPT, DOC); then sponsor it with creatives.create.
- **create_a_linked_in_asset** — Register an image or video upload (POST /rest/assets?action=registerUpload). Returns the asset URN and an uploadUrl; PUT the file bytes to uploadUrl, then use the URN in ad posts.
- **list_all_linked_in_dmp_segments** — List Matched Audience (DMP) segments of an ad account (GET /rest/dmpSegments?q=account). Required: ad_account_id.
- **get_single_linked_in_dmp_segment_by_id** — Get one Matched Audience segment (GET /rest/dmpSegments/{id}): type, status and matched audience size per destination.
- **create_a_linked_in_dmp_segment** — Create a Matched Audience segment (POST /rest/dmpSegments) to upload users or companies into. Required: name, account, type, sourcePlatform, destinations.
- **update_a_linked_in_dmp_segment_by_id** — Partially update a Matched Audience segment (/rest/dmpSegments/{id}), e.g. {"patch": {"$set": {"name": "New name"}}}.
- **delete_a_linked_in_dmp_segment_by_id** — Delete a Matched Audience segment (DELETE /rest/dmpSegments/{id}).
- **create_a_linked_in_dmp_segments_user** — Add or remove users in a segment in a batch (POST /rest/dmpSegments/{dmp_segment_id}/users, BATCH_CREATE). Each element: action ADD or REMOVE plus hashed userIds. Required: dmp_segment_id.
- **create_a_linked_in_dmp_segments_company** — Add or remove companies in a segment in a batch (POST /rest/dmpSegments/{dmp_segment_id}/companies, BATCH_CREATE). Each element: action plus company name, domain, page URL or identifiers.
- **list_all_linked_in_ad_account_users** — List the ad accounts the signed-in member has access to and their role in each (GET /rest/adAccountUsers?q=authenticatedUser).
- **get_single_linked_in_ad_account_user_by_id** — Get one ad account user (GET /rest/adAccountUsers/{id}). id is the compound key (account:urn%3Ali%3AsponsoredAccount%3A123,user:urn%3Ali%3Aperson%3Aabc).

## How it works

1. **Link your customer's LinkedIn account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach LinkedIn.** The Proxy API is a 1-to-1 mapping of the LinkedIn API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Centralize cross-platform ad reporting with LinkedIn data** — Analytics and BI SaaS companies can pull LinkedIn Ads accounts, campaign groups, campaigns, and performance metrics alongside Google and Meta Ads data through Truto's Unified Ads Management API, giving their users a single pane of glass for ad spend, impressions, and cost-per-acquisition across all networks.
- **Power ABM campaigns with dynamic audience syncing** — Account-based marketing and intent-data platforms can push high-intent company or contact lists into LinkedIn as Custom Audiences via Truto, enabling their users to instantly target decision-makers at surging accounts without manual CSV uploads.
- **Automate audience suppression to reduce wasted ad spend** — CRM and marketing automation platforms can programmatically update LinkedIn Custom Audiences to exclude converted leads or existing customers, ensuring their users' ad budgets are focused on net-new prospects rather than people already in the pipeline.
- **Sync LinkedIn campaign structure into multi-channel orchestration tools** — Campaign management SaaS products can read a user's LinkedIn Ad Accounts, Ad Groups, and Campaigns through Truto to map them alongside campaigns on other channels, enabling unified budget allocation and performance comparison without switching between platforms.

## What you can build

- **Unified ad spend dashboard across LinkedIn, Meta, and Google** — Fetch Accounts, Campaigns, and Ad Groups from LinkedIn alongside other ad platforms through Truto's Unified Ads Management API and render normalized spend, impressions, and click metrics in a single dashboard.
- **One-click Custom Audience creation from CRM segments** — Let your users select a CRM segment or intent-signal cohort and push it directly to LinkedIn as a Matched Audience for targeted advertising or exclusion.
- **Automated audience refresh on conversion events** — Trigger Custom Audience updates whenever a lead converts in your platform, automatically removing them from prospecting audiences and adding them to upsell or exclusion lists on LinkedIn.
- **Cross-channel campaign hierarchy explorer** — Display a user's full LinkedIn campaign structure — Accounts → Campaign Groups → Campaigns — alongside their other ad platforms so they can compare naming conventions, budgets, and statuses in one view.
- **ABM target-account audience builder** — Allow users to upload or select a list of target companies from your platform and automatically create a LinkedIn Company List Custom Audience, ready for immediate campaign activation.

## FAQs

### What LinkedIn resources are available through Truto's Unified Ads Management API?

The Unified Ads Management API maps to four core LinkedIn objects: Accounts (Ad Accounts), Ad Groups (Campaign Groups), Campaigns, and Custom Audiences (Matched Audiences). These cover the primary campaign structure and audience management capabilities of LinkedIn Campaign Manager.

### How does authentication work for LinkedIn integrations via Truto?

LinkedIn uses OAuth 2.0 for API access. Truto manages the full OAuth flow — including token acquisition, storage, and automatic refresh — so your end users simply authorize their LinkedIn Ads account through a connect dialog and you never handle raw tokens.

### Are there rate limits I need to worry about with the LinkedIn Marketing API?

Yes. LinkedIn enforces daily API call limits that vary by endpoint and application approval tier. Truto handles retry logic and rate-limit awareness on your behalf, but if you're syncing large volumes of campaign data or frequently updating Custom Audiences, it's worth designing your sync cadence to stay within LinkedIn's quotas.

### Can I sync LinkedIn Lead Gen Form responses through Truto?

Lead Gen Form response syncing is not currently part of the standard Unified Ads Management API resources. However, Truto builds additional tools and endpoints on request — if lead syncing is critical to your use case, reach out to discuss enabling it for your workspace.

### What if I need LinkedIn API capabilities beyond Accounts, Ad Groups, Campaigns, and Custom Audiences?

Truto builds new tools on request. If you need access to additional LinkedIn Marketing API resources — such as Creatives, ad analytics breakdowns, or Lead Gen Forms — you can request them and Truto will scope and build them for your integration.

### Does Truto normalize LinkedIn data with other ad platforms?

Yes. The Unified Ads Management API provides a consistent schema for Accounts, Ad Groups, Campaigns, and Custom Audiences across supported ad platforms including LinkedIn. This means you write one integration and get normalized data regardless of the underlying ad network.

## Related reading

- [Connect HeyReach to ChatGPT: Automate LinkedIn Campaigns](https://truto.one/blog/connect-heyreach-to-chatgpt-automate-linkedin-campaigns-and-messaging/) — Learn how to build a production-ready HeyReach MCP server to connect ChatGPT to your LinkedIn campaigns, conversations, and sender accounts.
- [Connect Kaspr to ChatGPT: Enrich LinkedIn Data & Monitor Credits](https://truto.one/blog/connect-kaspr-to-chatgpt-enrich-linkedin-data-monitor-credits/) — Learn how to connect Kaspr to chatgpt using Truto. Step-by-step guide to tool calling, API quirks, and autonomous workflows.
- [Connect Unipile to ChatGPT: Automate Messaging & LinkedIn Recruiting](https://truto.one/blog/connect-unipile-to-chatgpt-automate-messaging-linkedin-recruiting/) — Learn how to connect Unipile to ChatGPT using an MCP server. Automate LinkedIn recruiting, WhatsApp messaging, and cross-platform communication.
- [Connect LinkedIn Personal to Claude: Publish Content and Media Assets](https://truto.one/blog/connect-linkedin-personal-to-claude-publish-content-and-media-assets/) — Learn how to connect LinkedIn Personal to Claude using Truto's managed MCP server. Automate post publishing and complex media uploads with step-by-step code.
- [Connect LinkedIn Personal to ChatGPT: Manage Posts and Media Feeds](https://truto.one/blog/connect-linkedin-personal-to-chatgpt-manage-posts-and-media-feeds/) — Learn how to connect LinkedIn Personal to ChatGPT using a managed MCP server. Automate text posts, multi-step media uploads, and feed management via Truto.
- [Connect HeyReach to AI Agents: Scale LinkedIn Networking and Workflows](https://truto.one/blog/connect-heyreach-to-ai-agents-scale-linkedin-networking-and-workflows/) — Learn how to connect HeyReach to AI agents using Truto's /tools endpoint. Build autonomous workflows for LinkedIn prospecting, campaign management, and messaging.
