{"id":109,"date":"2026-10-13T17:15:00","date_gmt":"2026-10-13T17:15:00","guid":{"rendered":"https:\/\/top.fadah.store\/?p=109"},"modified":"2026-10-13T17:15:00","modified_gmt":"2026-10-13T17:15:00","slug":"publish-articles-wordpress-rest-api-n8n","status":"publish","type":"post","link":"https:\/\/top.fadah.store\/?p=109","title":{"rendered":"Publishing Articles to WordPress via REST API with n8n and Application Passwords"},"content":{"rendered":"<p>Connecting automation pipelines directly to WordPress allows you to draft articles programmatically without ever opening the admin dashboard. Here is how I set up n8n to publish draft posts with custom tags and categories.<\/p>\n<h2>Authentication: WordPress Application Passwords<\/h2>\n<p>Instead of sharing master admin credentials, go to <strong>Users &gt; Profile<\/strong> in WordPress, scroll down to <strong>Application Passwords<\/strong>, and generate a dedicated token for n8n.<\/p>\n<h2>n8n HTTP Request Configuration<\/h2>\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  &quot;parameters&quot;: {\n    &quot;method&quot;: &quot;POST&quot;,\n    &quot;url&quot;: &quot;https:\/\/top.fadah.store\/wp-json\/wp\/v2\/posts&quot;,\n    &quot;authentication&quot;: &quot;genericCredentialType&quot;,\n    &quot;genericAuthType&quot;: &quot;httpBasicAuth&quot;,\n    &quot;sendBody&quot;: true,\n    &quot;bodyParameters&quot;: {\n      &quot;parameters&quot;: [\n        { &quot;name&quot;: &quot;title&quot;, &quot;value&quot;: &quot;Automated Post Title&quot; },\n        { &quot;name&quot;: &quot;content&quot;, &quot;value&quot;: &quot;<p>Post content generated by pipeline.<\/p>\" },\n        { \"name\": \"status\", \"value\": \"draft\" }\n      ]\n    }\n  },\n  \"name\": \"Create WP Post\",\n  \"type\": \"n8n-nodes-base.httpRequest\",\n  \"typeVersion\": 4.2\n}<\/code><\/pre>\n<p>Always set <code>status = draft<\/code> so you can perform a quick visual review before hitting publish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connecting automation pipelines directly to WordPress allows you to draft articles programmatically without ever opening the admin dashboard. Here is how I set up n8n to publish draft posts with custom tags and categories. Authentication: WordPress Application Passwords Instead of sharing master admin credentials, go to Users &gt; Profile in WordPress, scroll down to Application &#8230; <a title=\"Publishing Articles to WordPress via REST API with n8n and Application Passwords\" class=\"read-more\" href=\"https:\/\/top.fadah.store\/?p=109\" aria-label=\"Read more about Publishing Articles to WordPress via REST API with n8n and Application Passwords\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[31,5,30,29],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-n8n-automations","tag-blogging","tag-n8n","tag-rest-api","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/top.fadah.store\/index.php?rest_route=\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/top.fadah.store\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/top.fadah.store\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/top.fadah.store\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/top.fadah.store\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":0,"href":"https:\/\/top.fadah.store\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/top.fadah.store\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/top.fadah.store\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/top.fadah.store\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}