For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Cloudflare
    • GETpayload example
    • POSThttps://social-media-posting-dev.deao.workers.dev/post
        • POST3. Publish Post: https://api.linkedin.com/rest/posts
LogoLogo
CloudflareSocial Media PostingLinkedin

  1. Publish Post: https://api.linkedin.com/rest/posts

||View as Markdown|
POST
/rest/posts
POST
/rest/posts
$curl -X POST https://graph.facebook.com/rest/posts \
> -H "LinkedIn-Version: 202601" \
> -H "Content-Type: application/json" \
> -d "{
> \"author\": \"urn:li:organization:111886404\",
> \"commentary\": \"tttttttttttttttttttttFeeling inspired after meeting so many talented individuals at this year's conference.\", //{linkedin_message}
> \"visibility\": \"PUBLIC\",
> \"distribution\": {
> \"feedDistribution\": \"MAIN_FEED\",
> \"targetEntities\": [],
> \"thirdPartyDistributionChannels\": []
> },
> \"content\": { // post_type: article, image(media), multiImage or video(media)
> // \"article\": {
> // \"source\": \"https://musicca.st/blog/1/\",
> //\"title\": \"Official Blog post\",
> // \"description\": \"...\",
> // \"thumbnail\": \"urn:li:image:C49klciosC89\"
> // }
> // \"multiImage\": {
> // \"images\": [
> // {
> // \"id\": \"urn:li:image:D4E10AQHX6-4S0lk2QA\"
> // },
> // {
> // \"id\": \"urn:li:image:D4E10AQHX6-4S0lk2QA\"
> //},
> //{
> // \"id\": \"urn:li:image:D4E10AQHX6-4S0lk2QA\"
> //},
> //{
> // \"id\": \"urn:li:image:D4E10AQHX6-4S0lk2QA\"
> // }
> // ]
> // }
> \"media\": {
> \"id\": \"urn:li:video:D4E10AQHN1RlRbqCaiQ\"
> }
> },
> \"lifecycleState\": \"PUBLISHED\"
>}"
201Created
1{}
Was this page helpful?
Previous

Upload Media: https://api.x.com/2/media/upload

Next

1. Initialize Upload: https://api.linkedin.com/rest/images?action=initializeUpload

Built with

Headers

LinkedIn-VersionstringOptional

Request

This endpoint expects a string.

Response headers

Locationstring
X-Li-Popstring
X-LI-UUIDstring
X-LI-Protostring
X-Li-Fabricstring
x-linkedin-idstring
X-LI-Route-Keystring
X-Li-Source-Fabricstring
x-restli-protocol-versionstring

Response

Created

Upload Media: https://api.x.com/2/media/upload

  1. Initialize Upload: https://api.linkedin.com/rest/images?action=initializeUpload