[{"data":1,"prerenderedAt":3440},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fpublishing":3},{"id":4,"title":5,"body":6,"description":3431,"extension":3432,"meta":3433,"navigation":3434,"order":97,"path":3435,"seo":3436,"seoTitle":3437,"stem":3438,"__hash__":3439},"docs\u002Fdocs\u002Fpublishing.md","Publishing",{"type":7,"value":8,"toc":3404},"minimark",[9,13,27,32,170,187,192,317,329,333,336,367,381,385,602,604,610,719,783,798,802,810,870,873,876,883,925,943,974,989,993,1006,1094,1097,1112,1116,1119,1144,1226,1268,1271,1312,1475,1478,1482,1486,1581,1599,1603,1640,1789,1793,1822,1826,1852,1867,1873,1877,2444,2483,2487,2508,2575,2636,2646,2650,2670,2674,2677,2718,2742,2748,2752,2776,2785,2788,2791,2832,2847,2851,2875,2911,3044,3060,3064,3067,3131,3362,3374,3378,3400],[10,11,5],"h1",{"id":12},"publishing",[14,15,16,17,21,22,26],"p",{},"One endpoint creates every kind of post: ",[18,19,20],"code",{},"POST \u002Fapi\u002Fv1\u002Fposts",". A post goes to one or more accounts of one user. Each account is a ",[23,24,25],"strong",{},"target"," that is published on its own, so one platform failing doesn't stop the others.",[28,29,31],"h2",{"id":30},"create-a-post","Create a post",[33,34,39],"pre",{"className":35,"code":36,"language":37,"meta":38,"style":38},"language-bash shiki shiki-themes github-light github-dark","curl -X POST https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts \\\n  -H \"Authorization: Bearer pk_3f9a...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Idempotency-Key: 4d1e7c3a-launch-post\" \\\n  -d '{\n    \"account_ids\": [\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\", \"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\"],\n    \"content\": \"Our spring collection is out today.\",\n    \"media\": [\n      { \"url\": \"https:\u002F\u002Fcdn.example.com\u002Fspring.jpg\", \"alt_text\": \"Three jackets on a rail\" }\n    ],\n    \"platform_content\": {\n      \"twitter\": \"Spring collection, out today.\"\n    },\n    \"first_comment\": \"Shop the collection: https:\u002F\u002Fexample.com\u002Fspring\",\n    \"metadata\": { \"campaign_id\": \"spring-26\" }\n  }'\n","bash","",[18,40,41,64,75,85,95,104,110,116,122,128,134,140,146,152,158,164],{"__ignoreMap":38},[42,43,46,50,54,58,61],"span",{"class":44,"line":45},"line",1,[42,47,49],{"class":48},"sScJk","curl",[42,51,53],{"class":52},"sj4cs"," -X",[42,55,57],{"class":56},"sZZnC"," POST",[42,59,60],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts",[42,62,63],{"class":52}," \\\n",[42,65,67,70,73],{"class":44,"line":66},2,[42,68,69],{"class":52},"  -H",[42,71,72],{"class":56}," \"Authorization: Bearer pk_3f9a...\"",[42,74,63],{"class":52},[42,76,78,80,83],{"class":44,"line":77},3,[42,79,69],{"class":52},[42,81,82],{"class":56}," \"Content-Type: application\u002Fjson\"",[42,84,63],{"class":52},[42,86,88,90,93],{"class":44,"line":87},4,[42,89,69],{"class":52},[42,91,92],{"class":56}," \"Idempotency-Key: 4d1e7c3a-launch-post\"",[42,94,63],{"class":52},[42,96,98,101],{"class":44,"line":97},5,[42,99,100],{"class":52},"  -d",[42,102,103],{"class":56}," '{\n",[42,105,107],{"class":44,"line":106},6,[42,108,109],{"class":56},"    \"account_ids\": [\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\", \"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\"],\n",[42,111,113],{"class":44,"line":112},7,[42,114,115],{"class":56},"    \"content\": \"Our spring collection is out today.\",\n",[42,117,119],{"class":44,"line":118},8,[42,120,121],{"class":56},"    \"media\": [\n",[42,123,125],{"class":44,"line":124},9,[42,126,127],{"class":56},"      { \"url\": \"https:\u002F\u002Fcdn.example.com\u002Fspring.jpg\", \"alt_text\": \"Three jackets on a rail\" }\n",[42,129,131],{"class":44,"line":130},10,[42,132,133],{"class":56},"    ],\n",[42,135,137],{"class":44,"line":136},11,[42,138,139],{"class":56},"    \"platform_content\": {\n",[42,141,143],{"class":44,"line":142},12,[42,144,145],{"class":56},"      \"twitter\": \"Spring collection, out today.\"\n",[42,147,149],{"class":44,"line":148},13,[42,150,151],{"class":56},"    },\n",[42,153,155],{"class":44,"line":154},14,[42,156,157],{"class":56},"    \"first_comment\": \"Shop the collection: https:\u002F\u002Fexample.com\u002Fspring\",\n",[42,159,161],{"class":44,"line":160},15,[42,162,163],{"class":56},"    \"metadata\": { \"campaign_id\": \"spring-26\" }\n",[42,165,167],{"class":44,"line":166},16,[42,168,169],{"class":56},"  }'\n",[14,171,172,173,176,177,182,183,186],{},"The response is ",[18,174,175],{},"201"," with the ",[178,179,181],"a",{"href":180},"#the-post-object","post object",". When publishing now, the call waits until every target has a result, so ",[18,184,185],{},"targets"," already holds each platform's post ID and URL, or its error.",[188,189,191],"h3",{"id":190},"four-ways-to-create-a-post","Four ways to create a post",[193,194,195,211],"table",{},[196,197,198],"thead",{},[199,200,201,205,208],"tr",{},[202,203,204],"th",{},"Mode",[202,206,207],{},"Body",[202,209,210],{},"What happens",[212,213,214,248,268,291],"tbody",{},[199,215,216,220,234],{},[217,218,219],"td",{},"Publish now",[217,221,222,223,226,227,230,231],{},"neither ",[18,224,225],{},"scheduled_at",", ",[18,228,229],{},"queue"," nor ",[18,232,233],{},"draft",[217,235,236,237,226,240,243,244,247],{},"Published during the request. Status ",[18,238,239],{},"published",[18,241,242],{},"partially_published"," or ",[18,245,246],{},"failed",".",[199,249,250,253,258],{},[217,251,252],{},"Schedule",[217,254,255],{},[18,256,257],{},"\"scheduled_at\": \"2026-11-01T09:00:00+01:00\"",[217,259,260,261,264,265,247],{},"Status ",[18,262,263],{},"pending"," until then. Sends ",[18,266,267],{},"post.scheduled",[199,269,270,273,278],{},[217,271,272],{},"Queue",[217,274,275],{},[18,276,277],{},"\"queue\": true",[217,279,280,281,285,286,288,289,247],{},"Scheduled into the user's next free ",[178,282,284],{"href":283},"\u002Fdocs\u002Fqueue","queue slot",". Status ",[18,287,263],{},". Sends ",[18,290,267],{},[199,292,293,296,301],{},[217,294,295],{},"Draft",[217,297,298],{},[18,299,300],{},"\"draft\": true",[217,302,303,304,310,311,247],{},"Stored, not published. Publish it with ",[178,305,307],{"href":306},"#publish-a-draft-or-scheduled-post-now",[18,308,309],{},"POST \u002Fposts\u002F{id}\u002Fpublish"," or schedule it with ",[178,312,314],{"href":313},"#edit-a-post",[18,315,316],{},"PATCH",[14,318,319,321,322,325,326,328],{},[18,320,225],{}," is ISO 8601 with a timezone offset or ",[18,323,324],{},"Z",". It must be in the future and within a year. Scheduled posts are published within a minute of their time. A draft can carry ",[18,327,225],{},", but stays a draft until you publish or schedule it.",[188,330,332],{"id":331},"targeting","Targeting",[14,334,335],{},"Choose the accounts in one of two ways:",[337,338,339,353],"ul",{},[340,341,342,345,346,352],"li",{},[18,343,344],{},"account_ids",": the account IDs from ",[178,347,349],{"href":348},"\u002Fdocs\u002Faccounts",[18,350,351],{},"GET \u002Faccounts",". Use this when a user has more than one account on a platform.",[340,354,355,358,359,362,363,366],{},[18,356,357],{},"user_id"," and ",[18,360,361],{},"platforms",": the user's connected account on each platform. Returns ",[18,364,365],{},"404 account_not_found"," when the user has none on one of them.",[14,368,369,370,373,374,377,378,247],{},"All accounts in a post belong to the same user (",[18,371,372],{},"422 multiple_users"," otherwise). A test key can only target sandbox accounts and a live key only real ones (",[18,375,376],{},"403 mode_mismatch","). A disconnected account returns ",[18,379,380],{},"409 account_revoked",[188,382,384],{"id":383},"body-fields","Body fields",[193,386,387,400],{},[196,388,389],{},[199,390,391,394,397],{},[202,392,393],{},"Field",[202,395,396],{},"Type",[202,398,399],{},"Description",[212,401,402,421,434,450,462,479,498,514,526,538,550,561,575,586],{},[199,403,404,408,413],{},[217,405,406],{},[18,407,344],{},[217,409,410,411],{},"string",[42,412],{},[217,414,415,416,418,419,247],{},"Up to 50 accounts. Or use ",[18,417,357],{}," + ",[18,420,361],{},[199,422,423,427,429],{},[217,424,425],{},[18,426,357],{},[217,428,410],{},[217,430,431,432,247],{},"Your ID for the user. Required with ",[18,433,361],{},[199,435,436,440,444],{},[217,437,438],{},[18,439,361],{},[217,441,410,442],{},[42,443],{},[217,445,446,447,247],{},"Platform slugs, e.g. ",[18,448,449],{},"[\"linkedin\", \"instagram\"]",[199,451,452,457,459],{},[217,453,454],{},[18,455,456],{},"content",[217,458,410],{},[217,460,461],{},"The text or caption. Required unless there is media.",[199,463,464,469,472],{},[217,465,466],{},[18,467,468],{},"media",[217,470,471],{},"array",[217,473,474,475,247],{},"Images, videos, GIFs or documents in order. See ",[178,476,478],{"href":477},"#media","Media",[199,480,481,486,489],{},[217,482,483],{},[18,484,485],{},"platform_content",[217,487,488],{},"object",[217,490,491,492,494,495,247],{},"Text per platform that replaces ",[18,493,456],{},", e.g. ",[18,496,497],{},"{ \"twitter\": \"Shorter text\" }",[199,499,500,505,507],{},[217,501,502],{},[18,503,504],{},"platform_options",[217,506,488],{},[217,508,509,510,247],{},"Settings per platform. See ",[178,511,513],{"href":512},"#platform-options","Platform options",[199,515,516,521,523],{},[217,517,518],{},[18,519,520],{},"thread",[217,522,471],{},[217,524,525],{},"Follow-up posts published as replies, on platforms that support threads.",[199,527,528,533,535],{},[217,529,530],{},[18,531,532],{},"first_comment",[217,534,410],{},[217,536,537],{},"A comment posted right after publishing.",[199,539,540,545,547],{},[217,541,542],{},[18,543,544],{},"metadata",[217,546,488],{},[217,548,549],{},"Your own data, up to 4 KB of JSON. Returned with the post and in webhooks.",[199,551,552,556,558],{},[217,553,554],{},[18,555,225],{},[217,557,410],{},[217,559,560],{},"Publish at this time.",[199,562,563,567,570],{},[217,564,565],{},[18,566,229],{},[217,568,569],{},"boolean",[217,571,572,573,247],{},"Use the next free queue slot. Can't be combined with ",[18,574,225],{},[199,576,577,581,583],{},[217,578,579],{},[18,580,233],{},[217,582,569],{},[217,584,585],{},"Save without publishing.",[199,587,588,593,597],{},[217,589,590],{},[18,591,592],{},"media_urls",[217,594,410,595],{},[42,596],{},[217,598,599,600,247],{},"First-version field, still accepted. Use ",[18,601,468],{},[28,603,478],{"id":468},[14,605,606,607,609],{},"Each ",[18,608,468],{}," item is a public URL, or an object:",[33,611,615],{"className":612,"code":613,"language":614,"meta":38,"style":38},"language-json shiki shiki-themes github-light github-dark","{\n  \"media\": [\n    \"https:\u002F\u002Fcdn.example.com\u002Fphoto-1.jpg\",\n    {\n      \"url\": \"https:\u002F\u002Fcdn.example.com\u002Fclip.mp4\",\n      \"type\": \"video\",\n      \"thumbnail_url\": \"https:\u002F\u002Fcdn.example.com\u002Fclip-cover.jpg\"\n    },\n    { \"url\": \"https:\u002F\u002Fcdn.example.com\u002Fphoto-2.jpg\", \"alt_text\": \"The team at the spring launch\" }\n  ]\n}\n","json",[18,616,617,623,631,639,644,657,669,679,683,709,714],{"__ignoreMap":38},[42,618,619],{"class":44,"line":45},[42,620,622],{"class":621},"sVt8B","{\n",[42,624,625,628],{"class":44,"line":66},[42,626,627],{"class":52},"  \"media\"",[42,629,630],{"class":621},": [\n",[42,632,633,636],{"class":44,"line":77},[42,634,635],{"class":56},"    \"https:\u002F\u002Fcdn.example.com\u002Fphoto-1.jpg\"",[42,637,638],{"class":621},",\n",[42,640,641],{"class":44,"line":87},[42,642,643],{"class":621},"    {\n",[42,645,646,649,652,655],{"class":44,"line":97},[42,647,648],{"class":52},"      \"url\"",[42,650,651],{"class":621},": ",[42,653,654],{"class":56},"\"https:\u002F\u002Fcdn.example.com\u002Fclip.mp4\"",[42,656,638],{"class":621},[42,658,659,662,664,667],{"class":44,"line":106},[42,660,661],{"class":52},"      \"type\"",[42,663,651],{"class":621},[42,665,666],{"class":56},"\"video\"",[42,668,638],{"class":621},[42,670,671,674,676],{"class":44,"line":112},[42,672,673],{"class":52},"      \"thumbnail_url\"",[42,675,651],{"class":621},[42,677,678],{"class":56},"\"https:\u002F\u002Fcdn.example.com\u002Fclip-cover.jpg\"\n",[42,680,681],{"class":44,"line":118},[42,682,151],{"class":621},[42,684,685,688,691,693,696,698,701,703,706],{"class":44,"line":124},[42,686,687],{"class":621},"    { ",[42,689,690],{"class":52},"\"url\"",[42,692,651],{"class":621},[42,694,695],{"class":56},"\"https:\u002F\u002Fcdn.example.com\u002Fphoto-2.jpg\"",[42,697,226],{"class":621},[42,699,700],{"class":52},"\"alt_text\"",[42,702,651],{"class":621},[42,704,705],{"class":56},"\"The team at the spring launch\"",[42,707,708],{"class":621}," }\n",[42,710,711],{"class":44,"line":130},[42,712,713],{"class":621},"  ]\n",[42,715,716],{"class":44,"line":136},[42,717,718],{"class":621},"}\n",[193,720,721,729],{},[196,722,723],{},[199,724,725,727],{},[202,726,393],{},[202,728,399],{},[212,730,731,741,763,773],{},[199,732,733,738],{},[217,734,735],{},[18,736,737],{},"url",[217,739,740],{},"Public URL the platforms can download from.",[199,742,743,748],{},[217,744,745],{},[18,746,747],{},"type",[217,749,750,226,753,226,756,243,759,762],{},[18,751,752],{},"image",[18,754,755],{},"video",[18,757,758],{},"gif",[18,760,761],{},"document",". Inferred from the extension when omitted, so set it for URLs without one.",[199,764,765,770],{},[217,766,767],{},[18,768,769],{},"alt_text",[217,771,772],{},"Up to 1,500 characters, on platforms that support alt text. Elsewhere it is ignored with a warning.",[199,774,775,780],{},[217,776,777],{},[18,778,779],{},"thumbnail_url",[217,781,782],{},"Video cover, on platforms that support one.",[14,784,785,786,792,793,797],{},"Several images make a carousel where the platform supports one. Each platform's media limits (count, types, mixing images and videos) are in ",[178,787,789],{"href":788},"\u002Fdocs\u002Fplatforms",[18,790,791],{},"GET \u002Fapi\u002Fv1\u002Fplatforms",". Files that aren't online yet can be ",[178,794,796],{"href":795},"\u002Fdocs\u002Fmedia","uploaded to Pogton"," first.",[28,799,801],{"id":800},"per-platform-text","Per-platform text",[14,803,804,806,807,809],{},[18,805,456],{}," is used everywhere unless ",[18,808,485],{}," has text for that platform:",[33,811,813],{"className":612,"code":812,"language":614,"meta":38,"style":38},"{\n  \"content\": \"We're hiring a senior backend engineer in Stockholm. Remote-friendly, Go and Postgres. Apply by 15 November.\",\n  \"platform_content\": {\n    \"twitter\": \"We're hiring: senior backend engineer, Stockholm or remote.\",\n    \"bluesky\": \"We're hiring a senior backend engineer (Stockholm or remote).\"\n  }\n}\n",[18,814,815,819,831,839,851,861,866],{"__ignoreMap":38},[42,816,817],{"class":44,"line":45},[42,818,622],{"class":621},[42,820,821,824,826,829],{"class":44,"line":66},[42,822,823],{"class":52},"  \"content\"",[42,825,651],{"class":621},[42,827,828],{"class":56},"\"We're hiring a senior backend engineer in Stockholm. Remote-friendly, Go and Postgres. Apply by 15 November.\"",[42,830,638],{"class":621},[42,832,833,836],{"class":44,"line":77},[42,834,835],{"class":52},"  \"platform_content\"",[42,837,838],{"class":621},": {\n",[42,840,841,844,846,849],{"class":44,"line":87},[42,842,843],{"class":52},"    \"twitter\"",[42,845,651],{"class":621},[42,847,848],{"class":56},"\"We're hiring: senior backend engineer, Stockholm or remote.\"",[42,850,638],{"class":621},[42,852,853,856,858],{"class":44,"line":97},[42,854,855],{"class":52},"    \"bluesky\"",[42,857,651],{"class":621},[42,859,860],{"class":56},"\"We're hiring a senior backend engineer (Stockholm or remote).\"\n",[42,862,863],{"class":44,"line":106},[42,864,865],{"class":621},"  }\n",[42,867,868],{"class":44,"line":112},[42,869,718],{"class":621},[14,871,872],{},"Text limits are checked per platform with that platform's counting rules. X counts links as 23 characters and some characters, such as emoji and CJK, as 2. Bluesky counts graphemes.",[28,874,513],{"id":875},"platform-options",[14,877,878,879,882],{},"Settings that only exist on one platform, such as a privacy level, a board or a video title, go under ",[18,880,881],{},"platform_options.\u003Cplatform>",":",[33,884,886],{"className":612,"code":885,"language":614,"meta":38,"style":38},"{\n  \"platform_options\": {\n    \"pinterest\": { \"board_id\": \"987654321\" }\n  }\n}\n",[18,887,888,892,899,917,921],{"__ignoreMap":38},[42,889,890],{"class":44,"line":45},[42,891,622],{"class":621},[42,893,894,897],{"class":44,"line":66},[42,895,896],{"class":52},"  \"platform_options\"",[42,898,838],{"class":621},[42,900,901,904,907,910,912,915],{"class":44,"line":77},[42,902,903],{"class":52},"    \"pinterest\"",[42,905,906],{"class":621},": { ",[42,908,909],{"class":52},"\"board_id\"",[42,911,651],{"class":621},[42,913,914],{"class":56},"\"987654321\"",[42,916,708],{"class":621},[42,918,919],{"class":44,"line":87},[42,920,865],{"class":621},[42,922,923],{"class":44,"line":97},[42,924,718],{"class":621},[14,926,927,928,930,931,934,935,939,940,882],{},"The available options change as platforms gain features, so the source of truth is the API itself. ",[18,929,791],{}," returns an ",[18,932,933],{},"options_schema"," (JSON Schema) for each platform, and the ",[178,936,938],{"href":937},"\u002Fdocs\u002Fopenapi","OpenAPI spec"," has the same schemas under ",[18,941,942],{},"PlatformOptions",[33,944,946],{"className":35,"code":945,"language":37,"meta":38,"style":38},"curl https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fplatforms -H \"Authorization: Bearer pk_3f9a...\" \\\n  | jq '.data[] | {platform, options: .options_schema}'\n",[18,947,948,962],{"__ignoreMap":38},[42,949,950,952,955,958,960],{"class":44,"line":45},[42,951,49],{"class":48},[42,953,954],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fplatforms",[42,956,957],{"class":52}," -H",[42,959,72],{"class":56},[42,961,63],{"class":52},[42,963,964,968,971],{"class":44,"line":66},[42,965,967],{"class":966},"szBVR","  |",[42,969,970],{"class":48}," jq",[42,972,973],{"class":56}," '.data[] | {platform, options: .options_schema}'\n",[14,975,976,977,980,981,984,985,247],{},"Options are validated before publishing. An invalid option returns ",[18,978,979],{},"422 validation_failed"," with a field such as ",[18,982,983],{},"platform_options.tiktok.privacy_level",". Options for a platform that has none are ignored with a warning. IDs such as Pinterest boards or YouTube playlists come from ",[178,986,988],{"href":987},"\u002Fdocs\u002Faccounts#lookup-resources","lookup resources",[28,990,992],{"id":991},"threads-and-first-comments","Threads and first comments",[14,994,995,997,998,1001,1002,1005],{},[18,996,520],{}," posts follow-ups as replies to the first post, on platforms with ",[18,999,1000],{},"thread: true"," in ",[18,1003,1004],{},"GET \u002Fplatforms"," (such as X, Threads and Bluesky):",[33,1007,1009],{"className":612,"code":1008,"language":614,"meta":38,"style":38},"{\n  \"account_ids\": [\"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\"],\n  \"content\": \"How we cut our build time in half, in four steps.\",\n  \"thread\": [\n    { \"text\": \"1. We cached dependencies between runs.\" },\n    { \"text\": \"2. We split the test suite across four machines.\", \"media\": [\"https:\u002F\u002Fcdn.example.com\u002Fchart.png\"] }\n  ]\n}\n",[18,1010,1011,1015,1029,1040,1047,1062,1086,1090],{"__ignoreMap":38},[42,1012,1013],{"class":44,"line":45},[42,1014,622],{"class":621},[42,1016,1017,1020,1023,1026],{"class":44,"line":66},[42,1018,1019],{"class":52},"  \"account_ids\"",[42,1021,1022],{"class":621},": [",[42,1024,1025],{"class":56},"\"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\"",[42,1027,1028],{"class":621},"],\n",[42,1030,1031,1033,1035,1038],{"class":44,"line":77},[42,1032,823],{"class":52},[42,1034,651],{"class":621},[42,1036,1037],{"class":56},"\"How we cut our build time in half, in four steps.\"",[42,1039,638],{"class":621},[42,1041,1042,1045],{"class":44,"line":87},[42,1043,1044],{"class":52},"  \"thread\"",[42,1046,630],{"class":621},[42,1048,1049,1051,1054,1056,1059],{"class":44,"line":97},[42,1050,687],{"class":621},[42,1052,1053],{"class":52},"\"text\"",[42,1055,651],{"class":621},[42,1057,1058],{"class":56},"\"1. We cached dependencies between runs.\"",[42,1060,1061],{"class":621}," },\n",[42,1063,1064,1066,1068,1070,1073,1075,1078,1080,1083],{"class":44,"line":106},[42,1065,687],{"class":621},[42,1067,1053],{"class":52},[42,1069,651],{"class":621},[42,1071,1072],{"class":56},"\"2. We split the test suite across four machines.\"",[42,1074,226],{"class":621},[42,1076,1077],{"class":52},"\"media\"",[42,1079,1022],{"class":621},[42,1081,1082],{"class":56},"\"https:\u002F\u002Fcdn.example.com\u002Fchart.png\"",[42,1084,1085],{"class":621},"] }\n",[42,1087,1088],{"class":44,"line":112},[42,1089,713],{"class":621},[42,1091,1092],{"class":44,"line":118},[42,1093,718],{"class":621},[14,1095,1096],{},"A thread sent to a platform without threads fails validation for that platform, so target those accounts in a separate post.",[14,1098,1099,1101,1102,1105,1106,1109,1110,247],{},[18,1100,532],{}," is posted from the same account right after the post, on platforms with ",[18,1103,1104],{},"firstComment: true",". Its ID is in ",[18,1107,1108],{},"targets[].first_comment_id",". If the post is published but the comment fails, the target stays ",[18,1111,239],{},[28,1113,1115],{"id":1114},"validation","Validation",[14,1117,1118],{},"Every post is checked against every target platform before anything is stored. Issues have a severity:",[337,1120,1121,1134],{},[340,1122,1123,1126,1127,1129,1130,1133],{},[23,1124,1125],{},"Errors"," block the post. The API returns ",[18,1128,979],{}," with the issues in ",[18,1131,1132],{},"data.error.details",", and nothing is published on any platform.",[340,1135,1136,1139,1140,1143],{},[23,1137,1138],{},"Warnings"," don't. They are returned in ",[18,1141,1142],{},"warnings",", e.g. alt text on a platform that ignores it.",[33,1145,1147],{"className":612,"code":1146,"language":614,"meta":38,"style":38},"{\n  \"field\": \"media\",\n  \"code\": \"media_required\",\n  \"message\": \"Instagram requires an image\",\n  \"severity\": \"error\",\n  \"platform\": \"instagram\",\n  \"account_id\": \"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\"\n}\n",[18,1148,1149,1153,1164,1176,1188,1200,1212,1222],{"__ignoreMap":38},[42,1150,1151],{"class":44,"line":45},[42,1152,622],{"class":621},[42,1154,1155,1158,1160,1162],{"class":44,"line":66},[42,1156,1157],{"class":52},"  \"field\"",[42,1159,651],{"class":621},[42,1161,1077],{"class":56},[42,1163,638],{"class":621},[42,1165,1166,1169,1171,1174],{"class":44,"line":77},[42,1167,1168],{"class":52},"  \"code\"",[42,1170,651],{"class":621},[42,1172,1173],{"class":56},"\"media_required\"",[42,1175,638],{"class":621},[42,1177,1178,1181,1183,1186],{"class":44,"line":87},[42,1179,1180],{"class":52},"  \"message\"",[42,1182,651],{"class":621},[42,1184,1185],{"class":56},"\"Instagram requires an image\"",[42,1187,638],{"class":621},[42,1189,1190,1193,1195,1198],{"class":44,"line":97},[42,1191,1192],{"class":52},"  \"severity\"",[42,1194,651],{"class":621},[42,1196,1197],{"class":56},"\"error\"",[42,1199,638],{"class":621},[42,1201,1202,1205,1207,1210],{"class":44,"line":106},[42,1203,1204],{"class":52},"  \"platform\"",[42,1206,651],{"class":621},[42,1208,1209],{"class":56},"\"instagram\"",[42,1211,638],{"class":621},[42,1213,1214,1217,1219],{"class":44,"line":112},[42,1215,1216],{"class":52},"  \"account_id\"",[42,1218,651],{"class":621},[42,1220,1221],{"class":56},"\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\"\n",[42,1223,1224],{"class":44,"line":118},[42,1225,718],{"class":621},[14,1227,1228,1229,226,1232,226,1235,226,1238,226,1241,226,1244,226,1247,226,1250,226,1253,226,1256,226,1259,226,1262,226,1265,247],{},"Common codes: ",[18,1230,1231],{},"text_too_long",[18,1233,1234],{},"text_required",[18,1236,1237],{},"media_required",[18,1239,1240],{},"too_many_media",[18,1242,1243],{},"video_not_supported",[18,1245,1246],{},"image_not_supported",[18,1248,1249],{},"document_not_supported",[18,1251,1252],{},"mixed_media",[18,1254,1255],{},"thread_not_supported",[18,1257,1258],{},"first_comment_not_supported",[18,1260,1261],{},"invalid_option",[18,1263,1264],{},"alt_text_ignored",[18,1266,1267],{},"options_ignored",[14,1269,1270],{},"To check a post without creating it, send the same body to the validation endpoint:",[33,1272,1274],{"className":35,"code":1273,"language":37,"meta":38,"style":38},"curl -X POST https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fvalidate \\\n  -H \"Authorization: Bearer pk_3f9a...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"user_id\": \"user_123\", \"platforms\": [\"twitter\", \"instagram\"], \"content\": \"No image here\" }'\n",[18,1275,1276,1289,1297,1305],{"__ignoreMap":38},[42,1277,1278,1280,1282,1284,1287],{"class":44,"line":45},[42,1279,49],{"class":48},[42,1281,53],{"class":52},[42,1283,57],{"class":56},[42,1285,1286],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fvalidate",[42,1288,63],{"class":52},[42,1290,1291,1293,1295],{"class":44,"line":66},[42,1292,69],{"class":52},[42,1294,72],{"class":56},[42,1296,63],{"class":52},[42,1298,1299,1301,1303],{"class":44,"line":77},[42,1300,69],{"class":52},[42,1302,82],{"class":56},[42,1304,63],{"class":52},[42,1306,1307,1309],{"class":44,"line":87},[42,1308,100],{"class":52},[42,1310,1311],{"class":56}," '{ \"user_id\": \"user_123\", \"platforms\": [\"twitter\", \"instagram\"], \"content\": \"No image here\" }'\n",[33,1313,1315],{"className":612,"code":1314,"language":614,"meta":38,"style":38},"{\n  \"valid\": false,\n  \"results\": [\n    { \"account_id\": \"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\", \"platform\": \"twitter\", \"valid\": true, \"issues\": [] },\n    {\n      \"account_id\": \"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\",\n      \"platform\": \"instagram\",\n      \"valid\": false,\n      \"issues\": [{ \"field\": \"media\", \"code\": \"media_required\", \"message\": \"Instagram requires an image\", \"severity\": \"error\" }]\n    }\n  ]\n}\n",[18,1316,1317,1321,1333,1340,1379,1383,1395,1406,1417,1462,1467,1471],{"__ignoreMap":38},[42,1318,1319],{"class":44,"line":45},[42,1320,622],{"class":621},[42,1322,1323,1326,1328,1331],{"class":44,"line":66},[42,1324,1325],{"class":52},"  \"valid\"",[42,1327,651],{"class":621},[42,1329,1330],{"class":52},"false",[42,1332,638],{"class":621},[42,1334,1335,1338],{"class":44,"line":77},[42,1336,1337],{"class":52},"  \"results\"",[42,1339,630],{"class":621},[42,1341,1342,1344,1347,1349,1351,1353,1356,1358,1361,1363,1366,1368,1371,1373,1376],{"class":44,"line":87},[42,1343,687],{"class":621},[42,1345,1346],{"class":52},"\"account_id\"",[42,1348,651],{"class":621},[42,1350,1025],{"class":56},[42,1352,226],{"class":621},[42,1354,1355],{"class":52},"\"platform\"",[42,1357,651],{"class":621},[42,1359,1360],{"class":56},"\"twitter\"",[42,1362,226],{"class":621},[42,1364,1365],{"class":52},"\"valid\"",[42,1367,651],{"class":621},[42,1369,1370],{"class":52},"true",[42,1372,226],{"class":621},[42,1374,1375],{"class":52},"\"issues\"",[42,1377,1378],{"class":621},": [] },\n",[42,1380,1381],{"class":44,"line":97},[42,1382,643],{"class":621},[42,1384,1385,1388,1390,1393],{"class":44,"line":106},[42,1386,1387],{"class":52},"      \"account_id\"",[42,1389,651],{"class":621},[42,1391,1392],{"class":56},"\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\"",[42,1394,638],{"class":621},[42,1396,1397,1400,1402,1404],{"class":44,"line":112},[42,1398,1399],{"class":52},"      \"platform\"",[42,1401,651],{"class":621},[42,1403,1209],{"class":56},[42,1405,638],{"class":621},[42,1407,1408,1411,1413,1415],{"class":44,"line":118},[42,1409,1410],{"class":52},"      \"valid\"",[42,1412,651],{"class":621},[42,1414,1330],{"class":52},[42,1416,638],{"class":621},[42,1418,1419,1422,1425,1428,1430,1432,1434,1437,1439,1441,1443,1446,1448,1450,1452,1455,1457,1459],{"class":44,"line":124},[42,1420,1421],{"class":52},"      \"issues\"",[42,1423,1424],{"class":621},": [{ ",[42,1426,1427],{"class":52},"\"field\"",[42,1429,651],{"class":621},[42,1431,1077],{"class":56},[42,1433,226],{"class":621},[42,1435,1436],{"class":52},"\"code\"",[42,1438,651],{"class":621},[42,1440,1173],{"class":56},[42,1442,226],{"class":621},[42,1444,1445],{"class":52},"\"message\"",[42,1447,651],{"class":621},[42,1449,1185],{"class":56},[42,1451,226],{"class":621},[42,1453,1454],{"class":52},"\"severity\"",[42,1456,651],{"class":621},[42,1458,1197],{"class":56},[42,1460,1461],{"class":621}," }]\n",[42,1463,1464],{"class":44,"line":130},[42,1465,1466],{"class":621},"    }\n",[42,1468,1469],{"class":44,"line":136},[42,1470,713],{"class":621},[42,1472,1473],{"class":44,"line":142},[42,1474,718],{"class":621},[14,1476,1477],{},"Use it to show errors in your composer as the user types.",[28,1479,1481],{"id":1480},"statuses","Statuses",[188,1483,1485],{"id":1484},"post-status","Post status",[193,1487,1488,1498],{},[196,1489,1490],{},[199,1491,1492,1495],{},[202,1493,1494],{},"Status",[202,1496,1497],{},"Meaning",[212,1499,1500,1509,1524,1534,1543,1552,1561,1571],{},[199,1501,1502,1506],{},[217,1503,1504],{},[18,1505,233],{},[217,1507,1508],{},"Saved, not scheduled.",[199,1510,1511,1515],{},[217,1512,1513],{},[18,1514,263],{},[217,1516,1517,1518,1520,1521,1523],{},"Waiting for ",[18,1519,225],{},", or for an automatic retry (then ",[18,1522,225],{}," is the retry time).",[199,1525,1526,1531],{},[217,1527,1528],{},[18,1529,1530],{},"processing",[217,1532,1533],{},"Being published, or a platform is still processing a video.",[199,1535,1536,1540],{},[217,1537,1538],{},[18,1539,239],{},[217,1541,1542],{},"Every target was published.",[199,1544,1545,1549],{},[217,1546,1547],{},[18,1548,242],{},[217,1550,1551],{},"Some targets were published and at least one failed for good.",[199,1553,1554,1558],{},[217,1555,1556],{},[18,1557,246],{},[217,1559,1560],{},"No target could be published.",[199,1562,1563,1568],{},[217,1564,1565],{},[18,1566,1567],{},"cancelled",[217,1569,1570],{},"A draft or scheduled post that was cancelled.",[199,1572,1573,1578],{},[217,1574,1575],{},[18,1576,1577],{},"deleted",[217,1579,1580],{},"Deleted from every platform it was published on.",[14,1582,1583,1584,226,1587,226,1590,226,1593,358,1596,247],{},"The post status is derived from its targets. Webhooks fire when it changes: ",[18,1585,1586],{},"post.published",[18,1588,1589],{},"post.partially_published",[18,1591,1592],{},"post.failed",[18,1594,1595],{},"post.cancelled",[18,1597,1598],{},"post.deleted",[188,1600,1602],{"id":1601},"target-status","Target status",[14,1604,1605,1606,1608,1609,1612,1613,226,1615,226,1617,226,1619,226,1621,226,1623,1625,1626,226,1629,226,1631,226,1634,358,1637,247],{},"Each entry in ",[18,1607,185],{}," has its own ",[18,1610,1611],{},"status"," (",[18,1614,263],{},[18,1616,1530],{},[18,1618,239],{},[18,1620,246],{},[18,1622,1567],{},[18,1624,1577],{},"), ",[18,1627,1628],{},"platform_post_id",[18,1630,737],{},[18,1632,1633],{},"error",[18,1635,1636],{},"attempts",[18,1638,1639],{},"next_attempt_at",[33,1641,1643],{"className":612,"code":1642,"language":614,"meta":38,"style":38},"{\n  \"id\": \"m17c3d4e5f6g7h8j9k0m1n2p3q4r5s6t\",\n  \"account_id\": \"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\",\n  \"platform\": \"instagram\",\n  \"status\": \"failed\",\n  \"platform_post_id\": null,\n  \"url\": null,\n  \"error\": { \"code\": \"media_error\", \"message\": \"The image could not be downloaded (HTTP 403)\" },\n  \"attempts\": 1,\n  \"next_attempt_at\": null,\n  \"published_at\": null,\n  \"first_comment_id\": null\n}\n",[18,1644,1645,1649,1661,1671,1681,1693,1705,1716,1741,1753,1764,1775,1785],{"__ignoreMap":38},[42,1646,1647],{"class":44,"line":45},[42,1648,622],{"class":621},[42,1650,1651,1654,1656,1659],{"class":44,"line":66},[42,1652,1653],{"class":52},"  \"id\"",[42,1655,651],{"class":621},[42,1657,1658],{"class":56},"\"m17c3d4e5f6g7h8j9k0m1n2p3q4r5s6t\"",[42,1660,638],{"class":621},[42,1662,1663,1665,1667,1669],{"class":44,"line":77},[42,1664,1216],{"class":52},[42,1666,651],{"class":621},[42,1668,1392],{"class":56},[42,1670,638],{"class":621},[42,1672,1673,1675,1677,1679],{"class":44,"line":87},[42,1674,1204],{"class":52},[42,1676,651],{"class":621},[42,1678,1209],{"class":56},[42,1680,638],{"class":621},[42,1682,1683,1686,1688,1691],{"class":44,"line":97},[42,1684,1685],{"class":52},"  \"status\"",[42,1687,651],{"class":621},[42,1689,1690],{"class":56},"\"failed\"",[42,1692,638],{"class":621},[42,1694,1695,1698,1700,1703],{"class":44,"line":106},[42,1696,1697],{"class":52},"  \"platform_post_id\"",[42,1699,651],{"class":621},[42,1701,1702],{"class":52},"null",[42,1704,638],{"class":621},[42,1706,1707,1710,1712,1714],{"class":44,"line":112},[42,1708,1709],{"class":52},"  \"url\"",[42,1711,651],{"class":621},[42,1713,1702],{"class":52},[42,1715,638],{"class":621},[42,1717,1718,1721,1723,1725,1727,1730,1732,1734,1736,1739],{"class":44,"line":118},[42,1719,1720],{"class":52},"  \"error\"",[42,1722,906],{"class":621},[42,1724,1436],{"class":52},[42,1726,651],{"class":621},[42,1728,1729],{"class":56},"\"media_error\"",[42,1731,226],{"class":621},[42,1733,1445],{"class":52},[42,1735,651],{"class":621},[42,1737,1738],{"class":56},"\"The image could not be downloaded (HTTP 403)\"",[42,1740,1061],{"class":621},[42,1742,1743,1746,1748,1751],{"class":44,"line":124},[42,1744,1745],{"class":52},"  \"attempts\"",[42,1747,651],{"class":621},[42,1749,1750],{"class":52},"1",[42,1752,638],{"class":621},[42,1754,1755,1758,1760,1762],{"class":44,"line":130},[42,1756,1757],{"class":52},"  \"next_attempt_at\"",[42,1759,651],{"class":621},[42,1761,1702],{"class":52},[42,1763,638],{"class":621},[42,1765,1766,1769,1771,1773],{"class":44,"line":136},[42,1767,1768],{"class":52},"  \"published_at\"",[42,1770,651],{"class":621},[42,1772,1702],{"class":52},[42,1774,638],{"class":621},[42,1776,1777,1780,1782],{"class":44,"line":142},[42,1778,1779],{"class":52},"  \"first_comment_id\"",[42,1781,651],{"class":621},[42,1783,1784],{"class":52},"null\n",[42,1786,1787],{"class":44,"line":148},[42,1788,718],{"class":621},[188,1790,1792],{"id":1791},"partial-failure","Partial failure",[14,1794,1795,1796,1798,1799,1801,1802,1804,1805,1807,1808,358,1810,1813,1814,1816,1817,1821],{},"A post to LinkedIn and Instagram where Instagram can't fetch the image is ",[18,1797,242],{},": the LinkedIn target is ",[18,1800,239],{}," with its URL, the Instagram target is ",[18,1803,246],{}," with the error. The API call itself still returns ",[18,1806,175],{},". Check ",[18,1809,1611],{},[18,1811,1812],{},"targets[].error"," rather than the HTTP status, or listen for ",[18,1815,1589],{},". Fix the cause and ",[178,1818,1820],{"href":1819},"#retry","retry"," the failed target.",[188,1823,1825],{"id":1824},"automatic-retries","Automatic retries",[14,1827,1828,1829,226,1832,226,1835,1838,1839,1842,1843,1845,1846,1848,1849,1851],{},"Temporary failures (",[18,1830,1831],{},"rate_limited",[18,1833,1834],{},"platform_error",[18,1836,1837],{},"network",") are retried automatically: up to 3 attempts per target, 1 minute and then 5 minutes apart, or after the platform's ",[18,1840,1841],{},"Retry-After",". While a retry is waiting the target is ",[18,1844,263],{}," with ",[18,1847,1639],{},", and the post is ",[18,1850,263],{},". Other errors fail the target right away.",[14,1853,1854,1855,1858,1859,1862,1863,247],{},"When a platform rejects the account's token (",[18,1856,1857],{},"auth_expired","), the target fails and the account becomes ",[18,1860,1861],{},"needs_reauth",". See ",[178,1864,1866],{"href":1865},"\u002Fdocs\u002Fconnect-links#reconnecting-an-account","Reconnecting an account",[14,1868,1869,1870,1872],{},"Some platforms, such as TikTok and YouTube, process videos after accepting them. The target stays ",[18,1871,1530],{}," until the platform finishes. Pogton checks every minute, and fails the target if it isn't done within 24 hours.",[28,1874,1876],{"id":1875},"the-post-object","The post object",[33,1878,1880],{"className":612,"code":1879,"language":614,"meta":38,"style":38},"{\n  \"id\": \"k57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\",\n  \"status\": \"published\",\n  \"user_id\": \"user_123\",\n  \"content\": \"Our spring collection is out today.\",\n  \"media\": [\n    { \"url\": \"https:\u002F\u002Fcdn.example.com\u002Fspring.jpg\", \"type\": null, \"alt_text\": \"Three jackets on a rail\", \"thumbnail_url\": null }\n  ],\n  \"thread\": null,\n  \"first_comment\": \"Shop the collection: https:\u002F\u002Fexample.com\u002Fspring\",\n  \"platform_content\": { \"twitter\": \"Spring collection, out today.\" },\n  \"platform_options\": null,\n  \"metadata\": { \"campaign_id\": \"spring-26\" },\n  \"account_ids\": [\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\", \"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\"],\n  \"targets\": [\n    {\n      \"id\": \"m17c3d4e5f6g7h8j9k0m1n2p3q4r5s6t\",\n      \"account_id\": \"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\",\n      \"platform\": \"linkedin\",\n      \"status\": \"published\",\n      \"platform_post_id\": \"urn:li:share:7234567890\",\n      \"url\": \"https:\u002F\u002Fwww.linkedin.com\u002Ffeed\u002Fupdate\u002Furn:li:share:7234567890\",\n      \"error\": null,\n      \"attempts\": 1,\n      \"next_attempt_at\": null,\n      \"published_at\": \"2026-10-21T09:00:03.000Z\",\n      \"first_comment_id\": \"urn:li:comment:(urn:li:share:7234567890,7234567999)\"\n    },\n    {\n      \"id\": \"m17d4e5f6g7h8j9k0m1n2p3q4r5s6t7u\",\n      \"account_id\": \"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\",\n      \"platform\": \"twitter\",\n      \"status\": \"published\",\n      \"platform_post_id\": \"1848012345678901234\",\n      \"url\": \"https:\u002F\u002Fx.com\u002Facme\u002Fstatus\u002F1848012345678901234\",\n      \"error\": null,\n      \"attempts\": 1,\n      \"next_attempt_at\": null,\n      \"published_at\": \"2026-10-21T09:00:02.000Z\",\n      \"first_comment_id\": \"1848012345678909999\"\n    }\n  ],\n  \"platform_post_ids\": {},\n  \"error\": null,\n  \"scheduled_at\": null,\n  \"published_at\": \"2026-10-21T09:00:03.000Z\",\n  \"created_at\": \"2026-10-21T09:00:00.000Z\",\n  \"updated_at\": \"2026-10-21T09:00:03.000Z\",\n  \"source\": \"api\",\n  \"test\": false\n}\n",[18,1881,1882,1886,1897,1908,1920,1931,1937,1977,1982,1992,2004,2019,2029,2046,2060,2067,2071,2083,2094,2106,2118,2131,2143,2155,2167,2179,2192,2203,2208,2213,2225,2236,2247,2258,2270,2282,2293,2304,2315,2327,2337,2342,2347,2356,2367,2379,2390,2403,2415,2428,2439],{"__ignoreMap":38},[42,1883,1884],{"class":44,"line":45},[42,1885,622],{"class":621},[42,1887,1888,1890,1892,1895],{"class":44,"line":66},[42,1889,1653],{"class":52},[42,1891,651],{"class":621},[42,1893,1894],{"class":56},"\"k57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\"",[42,1896,638],{"class":621},[42,1898,1899,1901,1903,1906],{"class":44,"line":77},[42,1900,1685],{"class":52},[42,1902,651],{"class":621},[42,1904,1905],{"class":56},"\"published\"",[42,1907,638],{"class":621},[42,1909,1910,1913,1915,1918],{"class":44,"line":87},[42,1911,1912],{"class":52},"  \"user_id\"",[42,1914,651],{"class":621},[42,1916,1917],{"class":56},"\"user_123\"",[42,1919,638],{"class":621},[42,1921,1922,1924,1926,1929],{"class":44,"line":97},[42,1923,823],{"class":52},[42,1925,651],{"class":621},[42,1927,1928],{"class":56},"\"Our spring collection is out today.\"",[42,1930,638],{"class":621},[42,1932,1933,1935],{"class":44,"line":106},[42,1934,627],{"class":52},[42,1936,630],{"class":621},[42,1938,1939,1941,1943,1945,1948,1950,1953,1955,1957,1959,1961,1963,1966,1968,1971,1973,1975],{"class":44,"line":112},[42,1940,687],{"class":621},[42,1942,690],{"class":52},[42,1944,651],{"class":621},[42,1946,1947],{"class":56},"\"https:\u002F\u002Fcdn.example.com\u002Fspring.jpg\"",[42,1949,226],{"class":621},[42,1951,1952],{"class":52},"\"type\"",[42,1954,651],{"class":621},[42,1956,1702],{"class":52},[42,1958,226],{"class":621},[42,1960,700],{"class":52},[42,1962,651],{"class":621},[42,1964,1965],{"class":56},"\"Three jackets on a rail\"",[42,1967,226],{"class":621},[42,1969,1970],{"class":52},"\"thumbnail_url\"",[42,1972,651],{"class":621},[42,1974,1702],{"class":52},[42,1976,708],{"class":621},[42,1978,1979],{"class":44,"line":118},[42,1980,1981],{"class":621},"  ],\n",[42,1983,1984,1986,1988,1990],{"class":44,"line":124},[42,1985,1044],{"class":52},[42,1987,651],{"class":621},[42,1989,1702],{"class":52},[42,1991,638],{"class":621},[42,1993,1994,1997,1999,2002],{"class":44,"line":130},[42,1995,1996],{"class":52},"  \"first_comment\"",[42,1998,651],{"class":621},[42,2000,2001],{"class":56},"\"Shop the collection: https:\u002F\u002Fexample.com\u002Fspring\"",[42,2003,638],{"class":621},[42,2005,2006,2008,2010,2012,2014,2017],{"class":44,"line":136},[42,2007,835],{"class":52},[42,2009,906],{"class":621},[42,2011,1360],{"class":52},[42,2013,651],{"class":621},[42,2015,2016],{"class":56},"\"Spring collection, out today.\"",[42,2018,1061],{"class":621},[42,2020,2021,2023,2025,2027],{"class":44,"line":142},[42,2022,896],{"class":52},[42,2024,651],{"class":621},[42,2026,1702],{"class":52},[42,2028,638],{"class":621},[42,2030,2031,2034,2036,2039,2041,2044],{"class":44,"line":148},[42,2032,2033],{"class":52},"  \"metadata\"",[42,2035,906],{"class":621},[42,2037,2038],{"class":52},"\"campaign_id\"",[42,2040,651],{"class":621},[42,2042,2043],{"class":56},"\"spring-26\"",[42,2045,1061],{"class":621},[42,2047,2048,2050,2052,2054,2056,2058],{"class":44,"line":154},[42,2049,1019],{"class":52},[42,2051,1022],{"class":621},[42,2053,1392],{"class":56},[42,2055,226],{"class":621},[42,2057,1025],{"class":56},[42,2059,1028],{"class":621},[42,2061,2062,2065],{"class":44,"line":160},[42,2063,2064],{"class":52},"  \"targets\"",[42,2066,630],{"class":621},[42,2068,2069],{"class":44,"line":166},[42,2070,643],{"class":621},[42,2072,2074,2077,2079,2081],{"class":44,"line":2073},17,[42,2075,2076],{"class":52},"      \"id\"",[42,2078,651],{"class":621},[42,2080,1658],{"class":56},[42,2082,638],{"class":621},[42,2084,2086,2088,2090,2092],{"class":44,"line":2085},18,[42,2087,1387],{"class":52},[42,2089,651],{"class":621},[42,2091,1392],{"class":56},[42,2093,638],{"class":621},[42,2095,2097,2099,2101,2104],{"class":44,"line":2096},19,[42,2098,1399],{"class":52},[42,2100,651],{"class":621},[42,2102,2103],{"class":56},"\"linkedin\"",[42,2105,638],{"class":621},[42,2107,2109,2112,2114,2116],{"class":44,"line":2108},20,[42,2110,2111],{"class":52},"      \"status\"",[42,2113,651],{"class":621},[42,2115,1905],{"class":56},[42,2117,638],{"class":621},[42,2119,2121,2124,2126,2129],{"class":44,"line":2120},21,[42,2122,2123],{"class":52},"      \"platform_post_id\"",[42,2125,651],{"class":621},[42,2127,2128],{"class":56},"\"urn:li:share:7234567890\"",[42,2130,638],{"class":621},[42,2132,2134,2136,2138,2141],{"class":44,"line":2133},22,[42,2135,648],{"class":52},[42,2137,651],{"class":621},[42,2139,2140],{"class":56},"\"https:\u002F\u002Fwww.linkedin.com\u002Ffeed\u002Fupdate\u002Furn:li:share:7234567890\"",[42,2142,638],{"class":621},[42,2144,2146,2149,2151,2153],{"class":44,"line":2145},23,[42,2147,2148],{"class":52},"      \"error\"",[42,2150,651],{"class":621},[42,2152,1702],{"class":52},[42,2154,638],{"class":621},[42,2156,2158,2161,2163,2165],{"class":44,"line":2157},24,[42,2159,2160],{"class":52},"      \"attempts\"",[42,2162,651],{"class":621},[42,2164,1750],{"class":52},[42,2166,638],{"class":621},[42,2168,2170,2173,2175,2177],{"class":44,"line":2169},25,[42,2171,2172],{"class":52},"      \"next_attempt_at\"",[42,2174,651],{"class":621},[42,2176,1702],{"class":52},[42,2178,638],{"class":621},[42,2180,2182,2185,2187,2190],{"class":44,"line":2181},26,[42,2183,2184],{"class":52},"      \"published_at\"",[42,2186,651],{"class":621},[42,2188,2189],{"class":56},"\"2026-10-21T09:00:03.000Z\"",[42,2191,638],{"class":621},[42,2193,2195,2198,2200],{"class":44,"line":2194},27,[42,2196,2197],{"class":52},"      \"first_comment_id\"",[42,2199,651],{"class":621},[42,2201,2202],{"class":56},"\"urn:li:comment:(urn:li:share:7234567890,7234567999)\"\n",[42,2204,2206],{"class":44,"line":2205},28,[42,2207,151],{"class":621},[42,2209,2211],{"class":44,"line":2210},29,[42,2212,643],{"class":621},[42,2214,2216,2218,2220,2223],{"class":44,"line":2215},30,[42,2217,2076],{"class":52},[42,2219,651],{"class":621},[42,2221,2222],{"class":56},"\"m17d4e5f6g7h8j9k0m1n2p3q4r5s6t7u\"",[42,2224,638],{"class":621},[42,2226,2228,2230,2232,2234],{"class":44,"line":2227},31,[42,2229,1387],{"class":52},[42,2231,651],{"class":621},[42,2233,1025],{"class":56},[42,2235,638],{"class":621},[42,2237,2239,2241,2243,2245],{"class":44,"line":2238},32,[42,2240,1399],{"class":52},[42,2242,651],{"class":621},[42,2244,1360],{"class":56},[42,2246,638],{"class":621},[42,2248,2250,2252,2254,2256],{"class":44,"line":2249},33,[42,2251,2111],{"class":52},[42,2253,651],{"class":621},[42,2255,1905],{"class":56},[42,2257,638],{"class":621},[42,2259,2261,2263,2265,2268],{"class":44,"line":2260},34,[42,2262,2123],{"class":52},[42,2264,651],{"class":621},[42,2266,2267],{"class":56},"\"1848012345678901234\"",[42,2269,638],{"class":621},[42,2271,2273,2275,2277,2280],{"class":44,"line":2272},35,[42,2274,648],{"class":52},[42,2276,651],{"class":621},[42,2278,2279],{"class":56},"\"https:\u002F\u002Fx.com\u002Facme\u002Fstatus\u002F1848012345678901234\"",[42,2281,638],{"class":621},[42,2283,2285,2287,2289,2291],{"class":44,"line":2284},36,[42,2286,2148],{"class":52},[42,2288,651],{"class":621},[42,2290,1702],{"class":52},[42,2292,638],{"class":621},[42,2294,2296,2298,2300,2302],{"class":44,"line":2295},37,[42,2297,2160],{"class":52},[42,2299,651],{"class":621},[42,2301,1750],{"class":52},[42,2303,638],{"class":621},[42,2305,2307,2309,2311,2313],{"class":44,"line":2306},38,[42,2308,2172],{"class":52},[42,2310,651],{"class":621},[42,2312,1702],{"class":52},[42,2314,638],{"class":621},[42,2316,2318,2320,2322,2325],{"class":44,"line":2317},39,[42,2319,2184],{"class":52},[42,2321,651],{"class":621},[42,2323,2324],{"class":56},"\"2026-10-21T09:00:02.000Z\"",[42,2326,638],{"class":621},[42,2328,2330,2332,2334],{"class":44,"line":2329},40,[42,2331,2197],{"class":52},[42,2333,651],{"class":621},[42,2335,2336],{"class":56},"\"1848012345678909999\"\n",[42,2338,2340],{"class":44,"line":2339},41,[42,2341,1466],{"class":621},[42,2343,2345],{"class":44,"line":2344},42,[42,2346,1981],{"class":621},[42,2348,2350,2353],{"class":44,"line":2349},43,[42,2351,2352],{"class":52},"  \"platform_post_ids\"",[42,2354,2355],{"class":621},": {},\n",[42,2357,2359,2361,2363,2365],{"class":44,"line":2358},44,[42,2360,1720],{"class":52},[42,2362,651],{"class":621},[42,2364,1702],{"class":52},[42,2366,638],{"class":621},[42,2368,2370,2373,2375,2377],{"class":44,"line":2369},45,[42,2371,2372],{"class":52},"  \"scheduled_at\"",[42,2374,651],{"class":621},[42,2376,1702],{"class":52},[42,2378,638],{"class":621},[42,2380,2382,2384,2386,2388],{"class":44,"line":2381},46,[42,2383,1768],{"class":52},[42,2385,651],{"class":621},[42,2387,2189],{"class":56},[42,2389,638],{"class":621},[42,2391,2393,2396,2398,2401],{"class":44,"line":2392},47,[42,2394,2395],{"class":52},"  \"created_at\"",[42,2397,651],{"class":621},[42,2399,2400],{"class":56},"\"2026-10-21T09:00:00.000Z\"",[42,2402,638],{"class":621},[42,2404,2406,2409,2411,2413],{"class":44,"line":2405},48,[42,2407,2408],{"class":52},"  \"updated_at\"",[42,2410,651],{"class":621},[42,2412,2189],{"class":56},[42,2414,638],{"class":621},[42,2416,2418,2421,2423,2426],{"class":44,"line":2417},49,[42,2419,2420],{"class":52},"  \"source\"",[42,2422,651],{"class":621},[42,2424,2425],{"class":56},"\"api\"",[42,2427,638],{"class":621},[42,2429,2431,2434,2436],{"class":44,"line":2430},50,[42,2432,2433],{"class":52},"  \"test\"",[42,2435,651],{"class":621},[42,2437,2438],{"class":52},"false\n",[42,2440,2442],{"class":44,"line":2441},51,[42,2443,718],{"class":621},[14,2445,2446,2449,2450,2453,2454,2457,2458,2462,2463,2465,2466,2469,2470,2472,2473,2476,2477,2480,2481,247],{},[18,2447,2448],{},"source"," is ",[18,2451,2452],{},"api"," for posts created through the REST API and ",[18,2455,2456],{},"mcp"," for posts created through the ",[178,2459,2461],{"href":2460},"\u002Fdocs\u002Fmcp","MCP server",". ",[18,2464,1633],{}," summarises target errors. The ",[18,2467,2468],{},"POST \u002Fposts"," response also has ",[18,2471,1142],{},", and a ",[18,2474,2475],{},"results"," object keyed by platform for clients of the first API version. ",[18,2478,2479],{},"platform_post_ids"," is from the first version too; use ",[18,2482,185],{},[28,2484,2486],{"id":2485},"list-posts","List posts",[33,2488,2490],{"className":35,"code":2489,"language":37,"meta":38,"style":38},"curl \"https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts?user_id=user_123&status=failed&limit=50\" \\\n  -H \"Authorization: Bearer pk_3f9a...\"\n",[18,2491,2492,2501],{"__ignoreMap":38},[42,2493,2494,2496,2499],{"class":44,"line":45},[42,2495,49],{"class":48},[42,2497,2498],{"class":56}," \"https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts?user_id=user_123&status=failed&limit=50\"",[42,2500,63],{"class":52},[42,2502,2503,2505],{"class":44,"line":66},[42,2504,69],{"class":52},[42,2506,2507],{"class":56}," \"Authorization: Bearer pk_3f9a...\"\n",[193,2509,2510,2519],{},[196,2511,2512],{},[199,2513,2514,2517],{},[202,2515,2516],{},"Query",[202,2518,399],{},[212,2520,2521,2530,2552,2562],{},[199,2522,2523,2527],{},[217,2524,2525],{},[18,2526,357],{},[217,2528,2529],{},"Only this user's posts.",[199,2531,2532,2536],{},[217,2533,2534],{},[18,2535,1611],{},[217,2537,2538,226,2540,226,2542,226,2544,226,2546,226,2548,243,2550,247],{},[18,2539,233],{},[18,2541,263],{},[18,2543,1530],{},[18,2545,239],{},[18,2547,242],{},[18,2549,246],{},[18,2551,1567],{},[199,2553,2554,2559],{},[217,2555,2556],{},[18,2557,2558],{},"limit",[217,2560,2561],{},"1 to 100, default 25.",[199,2563,2564,2569],{},[217,2565,2566],{},[18,2567,2568],{},"cursor",[217,2570,2571,2574],{},[18,2572,2573],{},"next_cursor"," from the previous page.",[33,2576,2578],{"className":612,"code":2577,"language":614,"meta":38,"style":38},"{ \"data\": [{ \"id\": \"k57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\", \"status\": \"failed\", \"...\": \"...\" }], \"next_cursor\": null, \"has_more\": false }\n",[18,2579,2580],{"__ignoreMap":38},[42,2581,2582,2585,2588,2590,2593,2595,2597,2599,2602,2604,2606,2608,2611,2613,2615,2618,2621,2623,2625,2627,2630,2632,2634],{"class":44,"line":45},[42,2583,2584],{"class":621},"{ ",[42,2586,2587],{"class":52},"\"data\"",[42,2589,1424],{"class":621},[42,2591,2592],{"class":52},"\"id\"",[42,2594,651],{"class":621},[42,2596,1894],{"class":56},[42,2598,226],{"class":621},[42,2600,2601],{"class":52},"\"status\"",[42,2603,651],{"class":621},[42,2605,1690],{"class":56},[42,2607,226],{"class":621},[42,2609,2610],{"class":52},"\"...\"",[42,2612,651],{"class":621},[42,2614,2610],{"class":56},[42,2616,2617],{"class":621}," }], ",[42,2619,2620],{"class":52},"\"next_cursor\"",[42,2622,651],{"class":621},[42,2624,1702],{"class":52},[42,2626,226],{"class":621},[42,2628,2629],{"class":52},"\"has_more\"",[42,2631,651],{"class":621},[42,2633,1330],{"class":52},[42,2635,708],{"class":621},[14,2637,2638,2639,358,2642,2645],{},"Newest first. The response also has ",[18,2640,2641],{},"posts",[18,2643,2644],{},"count"," for the first API version.",[28,2647,2649],{"id":2648},"get-a-post","Get a post",[33,2651,2653],{"className":35,"code":2652,"language":37,"meta":38,"style":38},"curl https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t \\\n  -H \"Authorization: Bearer pk_3f9a...\"\n",[18,2654,2655,2664],{"__ignoreMap":38},[42,2656,2657,2659,2662],{"class":44,"line":45},[42,2658,49],{"class":48},[42,2660,2661],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t",[42,2663,63],{"class":52},[42,2665,2666,2668],{"class":44,"line":66},[42,2667,69],{"class":52},[42,2669,2507],{"class":56},[28,2671,2673],{"id":2672},"edit-a-post","Edit a post",[14,2675,2676],{},"Drafts and scheduled posts can be edited. Send only the fields you change:",[33,2678,2680],{"className":35,"code":2679,"language":37,"meta":38,"style":38},"curl -X PATCH https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t \\\n  -H \"Authorization: Bearer pk_3f9a...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"content\": \"Our spring collection is out on Friday.\", \"scheduled_at\": \"2026-10-24T09:00:00+02:00\" }'\n",[18,2681,2682,2695,2703,2711],{"__ignoreMap":38},[42,2683,2684,2686,2688,2691,2693],{"class":44,"line":45},[42,2685,49],{"class":48},[42,2687,53],{"class":52},[42,2689,2690],{"class":56}," PATCH",[42,2692,2661],{"class":56},[42,2694,63],{"class":52},[42,2696,2697,2699,2701],{"class":44,"line":66},[42,2698,69],{"class":52},[42,2700,72],{"class":56},[42,2702,63],{"class":52},[42,2704,2705,2707,2709],{"class":44,"line":77},[42,2706,69],{"class":52},[42,2708,82],{"class":56},[42,2710,63],{"class":52},[42,2712,2713,2715],{"class":44,"line":87},[42,2714,100],{"class":52},[42,2716,2717],{"class":56}," '{ \"content\": \"Our spring collection is out on Friday.\", \"scheduled_at\": \"2026-10-24T09:00:00+02:00\" }'\n",[337,2719,2720,2725,2731,2736],{},[340,2721,2722,2724],{},[18,2723,225],{}," with a time schedules a draft or moves a scheduled post.",[340,2726,2727,2730],{},[18,2728,2729],{},"\"scheduled_at\": null"," turns a scheduled post back into a draft.",[340,2732,2733,2735],{},[18,2734,344],{}," replaces the targets (same user).",[340,2737,2738,2741],{},[18,2739,2740],{},"\"first_comment\": null"," removes the first comment.",[14,2743,2744,2745,247],{},"The post is validated again as it will look after the edit. Editing a post that is publishing or already published returns ",[18,2746,2747],{},"409 post_not_editable",[28,2749,2751],{"id":2750},"publish-a-draft-or-scheduled-post-now","Publish a draft or scheduled post now",[33,2753,2755],{"className":35,"code":2754,"language":37,"meta":38,"style":38},"curl -X POST https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\u002Fpublish \\\n  -H \"Authorization: Bearer pk_3f9a...\"\n",[18,2756,2757,2770],{"__ignoreMap":38},[42,2758,2759,2761,2763,2765,2768],{"class":44,"line":45},[42,2760,49],{"class":48},[42,2762,53],{"class":52},[42,2764,57],{"class":56},[42,2766,2767],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\u002Fpublish",[42,2769,63],{"class":52},[42,2771,2772,2774],{"class":44,"line":66},[42,2773,69],{"class":52},[42,2775,2507],{"class":56},[14,2777,2778,2779,2781,2782,247],{},"Returns the post with its results, like publishing now with ",[18,2780,2468],{},". Other statuses return ",[18,2783,2784],{},"409 post_not_publishable",[28,2786,2787],{"id":1820},"Retry",[14,2789,2790],{},"After fixing the cause of a failure, for example after the user reconnected an account:",[33,2792,2794],{"className":35,"code":2793,"language":37,"meta":38,"style":38},"curl -X POST https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\u002Fretry \\\n  -H \"Authorization: Bearer pk_3f9a...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"account_ids\": [\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\"] }'\n",[18,2795,2796,2809,2817,2825],{"__ignoreMap":38},[42,2797,2798,2800,2802,2804,2807],{"class":44,"line":45},[42,2799,49],{"class":48},[42,2801,53],{"class":52},[42,2803,57],{"class":56},[42,2805,2806],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\u002Fretry",[42,2808,63],{"class":52},[42,2810,2811,2813,2815],{"class":44,"line":66},[42,2812,69],{"class":52},[42,2814,72],{"class":56},[42,2816,63],{"class":52},[42,2818,2819,2821,2823],{"class":44,"line":77},[42,2820,69],{"class":52},[42,2822,82],{"class":56},[42,2824,63],{"class":52},[42,2826,2827,2829],{"class":44,"line":87},[42,2828,100],{"class":52},[42,2830,2831],{"class":56}," '{ \"account_ids\": [\"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\"] }'\n",[14,2833,2834,2835,2837,2838,358,2840,2842,2843,2846],{},"Publishes the failed targets again, now, with a fresh set of attempts. Without ",[18,2836,344],{}," it retries every failed target. Published targets are left alone, so nothing is posted twice. Only ",[18,2839,246],{},[18,2841,242],{}," posts can be retried (",[18,2844,2845],{},"409 post_not_retryable",").",[28,2848,2850],{"id":2849},"cancel-or-delete","Cancel or delete",[33,2852,2854],{"className":35,"code":2853,"language":37,"meta":38,"style":38},"curl -X DELETE https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fk57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t \\\n  -H \"Authorization: Bearer pk_3f9a...\"\n",[18,2855,2856,2869],{"__ignoreMap":38},[42,2857,2858,2860,2862,2865,2867],{"class":44,"line":45},[42,2859,49],{"class":48},[42,2861,53],{"class":52},[42,2863,2864],{"class":56}," DELETE",[42,2866,2661],{"class":56},[42,2868,63],{"class":52},[42,2870,2871,2873],{"class":44,"line":66},[42,2872,69],{"class":52},[42,2874,2507],{"class":56},[337,2876,2877,2892],{},[340,2878,2879,2880,2883,2884,226,2886,2888,2889,247],{},"A ",[23,2881,2882],{},"draft or scheduled"," post is cancelled: status ",[18,2885,1567],{},[18,2887,1595],{}," is sent, and the response has ",[18,2890,2891],{},"\"action\": \"cancelled\"",[340,2893,2879,2894,2896,2897,1001,2900,2902,2903,2906,2907,2910],{},[23,2895,239],{}," post is deleted from each platform that supports deleting (",[18,2898,2899],{},"deletePost",[18,2901,1004],{},"). Add ",[18,2904,2905],{},"?account_id="," to delete it from one account only. The response has ",[18,2908,2909],{},"\"action\": \"deleted\""," and a result per account:",[33,2912,2914],{"className":612,"code":2913,"language":614,"meta":38,"style":38},"{\n  \"id\": \"k57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t\",\n  \"status\": \"deleted\",\n  \"success\": true,\n  \"action\": \"deleted\",\n  \"results\": [\n    { \"account_id\": \"j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed\", \"platform\": \"linkedin\", \"success\": true },\n    { \"account_id\": \"j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs\", \"platform\": \"twitter\", \"success\": true }\n  ],\n  \"...\": \"...\"\n}\n",[18,2915,2916,2920,2930,2941,2952,2963,2969,2998,3026,3030,3040],{"__ignoreMap":38},[42,2917,2918],{"class":44,"line":45},[42,2919,622],{"class":621},[42,2921,2922,2924,2926,2928],{"class":44,"line":66},[42,2923,1653],{"class":52},[42,2925,651],{"class":621},[42,2927,1894],{"class":56},[42,2929,638],{"class":621},[42,2931,2932,2934,2936,2939],{"class":44,"line":77},[42,2933,1685],{"class":52},[42,2935,651],{"class":621},[42,2937,2938],{"class":56},"\"deleted\"",[42,2940,638],{"class":621},[42,2942,2943,2946,2948,2950],{"class":44,"line":87},[42,2944,2945],{"class":52},"  \"success\"",[42,2947,651],{"class":621},[42,2949,1370],{"class":52},[42,2951,638],{"class":621},[42,2953,2954,2957,2959,2961],{"class":44,"line":97},[42,2955,2956],{"class":52},"  \"action\"",[42,2958,651],{"class":621},[42,2960,2938],{"class":56},[42,2962,638],{"class":621},[42,2964,2965,2967],{"class":44,"line":106},[42,2966,1337],{"class":52},[42,2968,630],{"class":621},[42,2970,2971,2973,2975,2977,2979,2981,2983,2985,2987,2989,2992,2994,2996],{"class":44,"line":112},[42,2972,687],{"class":621},[42,2974,1346],{"class":52},[42,2976,651],{"class":621},[42,2978,1392],{"class":56},[42,2980,226],{"class":621},[42,2982,1355],{"class":52},[42,2984,651],{"class":621},[42,2986,2103],{"class":56},[42,2988,226],{"class":621},[42,2990,2991],{"class":52},"\"success\"",[42,2993,651],{"class":621},[42,2995,1370],{"class":52},[42,2997,1061],{"class":621},[42,2999,3000,3002,3004,3006,3008,3010,3012,3014,3016,3018,3020,3022,3024],{"class":44,"line":118},[42,3001,687],{"class":621},[42,3003,1346],{"class":52},[42,3005,651],{"class":621},[42,3007,1025],{"class":56},[42,3009,226],{"class":621},[42,3011,1355],{"class":52},[42,3013,651],{"class":621},[42,3015,1360],{"class":56},[42,3017,226],{"class":621},[42,3019,2991],{"class":52},[42,3021,651],{"class":621},[42,3023,1370],{"class":52},[42,3025,708],{"class":621},[42,3027,3028],{"class":44,"line":124},[42,3029,1981],{"class":621},[42,3031,3032,3035,3037],{"class":44,"line":130},[42,3033,3034],{"class":52},"  \"...\"",[42,3036,651],{"class":621},[42,3038,3039],{"class":56},"\"...\"\n",[42,3041,3042],{"class":44,"line":136},[42,3043,718],{"class":621},[14,3045,3046,2449,3049,3051,3052,2462,3054,3056,3057,247],{},[18,3047,3048],{},"success",[18,3050,1330],{}," if any platform refused; that target stays ",[18,3053,239],{},[18,3055,1598],{}," is sent when at least one deletion worked. A post that is publishing right now returns ",[18,3058,3059],{},"409 post_processing",[28,3061,3063],{"id":3062},"batch","Batch",[14,3065,3066],{},"Create up to 50 posts in one request, for example one per user:",[33,3068,3070],{"className":35,"code":3069,"language":37,"meta":38,"style":38},"curl -X POST https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fbatch \\\n  -H \"Authorization: Bearer pk_3f9a...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"posts\": [\n      { \"user_id\": \"user_123\", \"platforms\": [\"linkedin\"], \"content\": \"Week 43 update\", \"queue\": true },\n      { \"user_id\": \"user_456\", \"platforms\": [\"instagram\"], \"content\": \"Week 43 update\" }\n    ]\n  }'\n",[18,3071,3072,3085,3093,3101,3107,3112,3117,3122,3127],{"__ignoreMap":38},[42,3073,3074,3076,3078,3080,3083],{"class":44,"line":45},[42,3075,49],{"class":48},[42,3077,53],{"class":52},[42,3079,57],{"class":56},[42,3081,3082],{"class":56}," https:\u002F\u002Fpogton.com\u002Fapi\u002Fv1\u002Fposts\u002Fbatch",[42,3084,63],{"class":52},[42,3086,3087,3089,3091],{"class":44,"line":66},[42,3088,69],{"class":52},[42,3090,72],{"class":56},[42,3092,63],{"class":52},[42,3094,3095,3097,3099],{"class":44,"line":77},[42,3096,69],{"class":52},[42,3098,82],{"class":56},[42,3100,63],{"class":52},[42,3102,3103,3105],{"class":44,"line":87},[42,3104,100],{"class":52},[42,3106,103],{"class":56},[42,3108,3109],{"class":44,"line":97},[42,3110,3111],{"class":56},"    \"posts\": [\n",[42,3113,3114],{"class":44,"line":106},[42,3115,3116],{"class":56},"      { \"user_id\": \"user_123\", \"platforms\": [\"linkedin\"], \"content\": \"Week 43 update\", \"queue\": true },\n",[42,3118,3119],{"class":44,"line":112},[42,3120,3121],{"class":56},"      { \"user_id\": \"user_456\", \"platforms\": [\"instagram\"], \"content\": \"Week 43 update\" }\n",[42,3123,3124],{"class":44,"line":118},[42,3125,3126],{"class":56},"    ]\n",[42,3128,3129],{"class":44,"line":124},[42,3130,169],{"class":56},[33,3132,3134],{"className":612,"code":3133,"language":614,"meta":38,"style":38},"{\n  \"results\": [\n    { \"index\": 0, \"success\": true, \"post\": { \"id\": \"k57c...\", \"status\": \"pending\", \"...\": \"...\" }, \"status\": \"pending\" },\n    {\n      \"index\": 1,\n      \"success\": false,\n      \"error\": {\n        \"code\": \"validation_failed\",\n        \"message\": \"The post does not meet the rules of one or more platforms\",\n        \"details\": [{ \"field\": \"media\", \"code\": \"media_required\", \"message\": \"Instagram requires an image\", \"severity\": \"error\", \"platform\": \"instagram\" }]\n      }\n    }\n  ],\n  \"summary\": { \"total\": 2, \"succeeded\": 1, \"failed\": 1 }\n}\n",[18,3135,3136,3140,3146,3208,3212,3223,3234,3240,3252,3264,3311,3316,3320,3324,3358],{"__ignoreMap":38},[42,3137,3138],{"class":44,"line":45},[42,3139,622],{"class":621},[42,3141,3142,3144],{"class":44,"line":66},[42,3143,1337],{"class":52},[42,3145,630],{"class":621},[42,3147,3148,3150,3153,3155,3158,3160,3162,3164,3166,3168,3171,3173,3175,3177,3180,3182,3184,3186,3189,3191,3193,3195,3197,3200,3202,3204,3206],{"class":44,"line":77},[42,3149,687],{"class":621},[42,3151,3152],{"class":52},"\"index\"",[42,3154,651],{"class":621},[42,3156,3157],{"class":52},"0",[42,3159,226],{"class":621},[42,3161,2991],{"class":52},[42,3163,651],{"class":621},[42,3165,1370],{"class":52},[42,3167,226],{"class":621},[42,3169,3170],{"class":52},"\"post\"",[42,3172,906],{"class":621},[42,3174,2592],{"class":52},[42,3176,651],{"class":621},[42,3178,3179],{"class":56},"\"k57c...\"",[42,3181,226],{"class":621},[42,3183,2601],{"class":52},[42,3185,651],{"class":621},[42,3187,3188],{"class":56},"\"pending\"",[42,3190,226],{"class":621},[42,3192,2610],{"class":52},[42,3194,651],{"class":621},[42,3196,2610],{"class":56},[42,3198,3199],{"class":621}," }, ",[42,3201,2601],{"class":52},[42,3203,651],{"class":621},[42,3205,3188],{"class":56},[42,3207,1061],{"class":621},[42,3209,3210],{"class":44,"line":87},[42,3211,643],{"class":621},[42,3213,3214,3217,3219,3221],{"class":44,"line":97},[42,3215,3216],{"class":52},"      \"index\"",[42,3218,651],{"class":621},[42,3220,1750],{"class":52},[42,3222,638],{"class":621},[42,3224,3225,3228,3230,3232],{"class":44,"line":106},[42,3226,3227],{"class":52},"      \"success\"",[42,3229,651],{"class":621},[42,3231,1330],{"class":52},[42,3233,638],{"class":621},[42,3235,3236,3238],{"class":44,"line":112},[42,3237,2148],{"class":52},[42,3239,838],{"class":621},[42,3241,3242,3245,3247,3250],{"class":44,"line":118},[42,3243,3244],{"class":52},"        \"code\"",[42,3246,651],{"class":621},[42,3248,3249],{"class":56},"\"validation_failed\"",[42,3251,638],{"class":621},[42,3253,3254,3257,3259,3262],{"class":44,"line":124},[42,3255,3256],{"class":52},"        \"message\"",[42,3258,651],{"class":621},[42,3260,3261],{"class":56},"\"The post does not meet the rules of one or more platforms\"",[42,3263,638],{"class":621},[42,3265,3266,3269,3271,3273,3275,3277,3279,3281,3283,3285,3287,3289,3291,3293,3295,3297,3299,3301,3303,3305,3307,3309],{"class":44,"line":130},[42,3267,3268],{"class":52},"        \"details\"",[42,3270,1424],{"class":621},[42,3272,1427],{"class":52},[42,3274,651],{"class":621},[42,3276,1077],{"class":56},[42,3278,226],{"class":621},[42,3280,1436],{"class":52},[42,3282,651],{"class":621},[42,3284,1173],{"class":56},[42,3286,226],{"class":621},[42,3288,1445],{"class":52},[42,3290,651],{"class":621},[42,3292,1185],{"class":56},[42,3294,226],{"class":621},[42,3296,1454],{"class":52},[42,3298,651],{"class":621},[42,3300,1197],{"class":56},[42,3302,226],{"class":621},[42,3304,1355],{"class":52},[42,3306,651],{"class":621},[42,3308,1209],{"class":56},[42,3310,1461],{"class":621},[42,3312,3313],{"class":44,"line":136},[42,3314,3315],{"class":621},"      }\n",[42,3317,3318],{"class":44,"line":142},[42,3319,1466],{"class":621},[42,3321,3322],{"class":44,"line":148},[42,3323,1981],{"class":621},[42,3325,3326,3329,3331,3334,3336,3339,3341,3344,3346,3348,3350,3352,3354,3356],{"class":44,"line":154},[42,3327,3328],{"class":52},"  \"summary\"",[42,3330,906],{"class":621},[42,3332,3333],{"class":52},"\"total\"",[42,3335,651],{"class":621},[42,3337,3338],{"class":52},"2",[42,3340,226],{"class":621},[42,3342,3343],{"class":52},"\"succeeded\"",[42,3345,651],{"class":621},[42,3347,1750],{"class":52},[42,3349,226],{"class":621},[42,3351,1690],{"class":52},[42,3353,651],{"class":621},[42,3355,1750],{"class":52},[42,3357,708],{"class":621},[42,3359,3360],{"class":44,"line":160},[42,3361,718],{"class":621},[14,3363,3364,3365,3367,3368,3371,3372,247],{},"Each item is a ",[18,3366,2468],{}," body and fails on its own; the batch returns ",[18,3369,3370],{},"200"," either way. Items are processed in order. An item counts as failed when it was rejected or when its post ended ",[18,3373,246],{},[28,3375,3377],{"id":3376},"first-version-endpoint","First-version endpoint",[14,3379,3380,3383,3384,3386,3387,226,3390,358,3393,3396,3397,3399],{},[18,3381,3382],{},"POST \u002Fapi\u002Fv1\u002Fposts\u002Fschedule"," takes the same body with a required ",[18,3385,225],{},". It is kept for existing integrations and also returns ",[18,3388,3389],{},"postId",[18,3391,3392],{},"scheduledAt",[18,3394,3395],{},"accountCount",". Use ",[18,3398,2468],{}," for new code.",[3401,3402,3403],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":38,"searchDepth":66,"depth":66,"links":3405},[3406,3411,3412,3413,3414,3415,3416,3422,3423,3424,3425,3426,3427,3428,3429,3430],{"id":30,"depth":66,"text":31,"children":3407},[3408,3409,3410],{"id":190,"depth":77,"text":191},{"id":331,"depth":77,"text":332},{"id":383,"depth":77,"text":384},{"id":468,"depth":66,"text":478},{"id":800,"depth":66,"text":801},{"id":875,"depth":66,"text":513},{"id":991,"depth":66,"text":992},{"id":1114,"depth":66,"text":1115},{"id":1480,"depth":66,"text":1481,"children":3417},[3418,3419,3420,3421],{"id":1484,"depth":77,"text":1485},{"id":1601,"depth":77,"text":1602},{"id":1791,"depth":77,"text":1792},{"id":1824,"depth":77,"text":1825},{"id":1875,"depth":66,"text":1876},{"id":2485,"depth":66,"text":2486},{"id":2648,"depth":66,"text":2649},{"id":2672,"depth":66,"text":2673},{"id":2750,"depth":66,"text":2751},{"id":1820,"depth":66,"text":2787},{"id":2849,"depth":66,"text":2850},{"id":3062,"depth":66,"text":3063},{"id":3376,"depth":66,"text":3377},"Publish now, schedule, queue or draft posts to ten social platforms with one endpoint. Media, per-platform text and options, threads, first comments, statuses and retries.","md",{},true,"\u002Fdocs\u002Fpublishing",{"title":5,"description":3431},"Publishing API: Publish, Schedule and Queue Posts","docs\u002Fpublishing","A1ITg4dgSw6yTt_A6NnRw36eLY5sc7BYgnUgTahtlps",1794240387145]