The LinkedIn component is designed for seamless integration with the LinkedIn API, enabling you to trigger flows based on LinkedIn data and perform various actions like creating posts.
Authentication occurs via OAuth 2.0.
To use OAuth 2.0, you must create a LinkedIn Application in the LinkedIn Developer Portal. During the app creation process, you will be asked to specify a Redirect URL. To process OAuth authentication via the platform, your redirect URL should be in the format https://your-tenant.elastic.io/callback/oauth2.
More information can be found in the official LinkedIn documentation.
To create credentials in the elastic.io platform:
| Field Name | Mandatory | Description |
|---|---|---|
| Name | Yes | A name for your Auth Client. |
| Client ID | Yes | Your Application’s Client ID. |
| Client Secret | Yes | Your Application’s Client Secret. |
| Authorization Endpoint | Yes | https://www.linkedin.com/oauth/v2/authorization |
| Token Endpoint | Yes | https://www.linkedin.com/oauth/v2/accessToken |
r_member_postAnalytics,r_organization_followers,r_organization_social,rw_organization_admin,r_organization_social_feed,w_member_social,r_member_profileAnalytics,w_organization_social,r_basicprofile,w_organization_social_feed,w_member_social_feed,r_1st_connections_size
/me endpoint).Polls for new or updated objects like Posts from a specific author.
Posts.Emit individually (default): Emits each new post as a separate message.Emit page: Emits all new posts found in the polling interval as a single message.1970-01-01T00:00:00.000Z).Create a new post or reshare an existing one with commentary.
urn:li:share:12345).Executes a custom REST API call to a LinkedIn endpoint. Compatible with Rest.li 2.0 protocol.
The LinkedIn API uses the Rest.li protocol, which has two versions with different syntax rules. By default, this component uses Rest.li 2.0.0 and the LinkedIn Versioned API (e.g., 202401).
/rest/ (e.g., /rest/posts instead of /posts).:) in URNs must be percent-encoded as %3A.
/rest/me?projection=(id,firstName,lastName)/rest/organizationalEntityFollowerStatistics?q=organizationalEntity&organizationalEntity=urn%3Ali%3Aorganization%3A12345X-Restli-Protocol-Version: 1.0.0.
/rest/organizationPageStatistics?q=organization&
organization=urn:li:organization:12345&timeIntervals.timeGranularityType=DAY (Must send 1.0.0 header).
For more details on the differences between protocol versions, see the official LinkedIn documentation:GET, POST, PUT, PATCH, DELETE)./me or /posts).