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

# Hashnode API Integration on Truto



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

## MCP-ready AI tools

Truto exposes 14 tools for Hashnode that AI agents can call directly.

- **list_all_hashnode_me** — Get the Hashnode user who owns the token, with their publications (blogs). Works without a Pro plan.
- **list_all_hashnode_publications** — List the publications (blogs) the user owns. Use an ID from here as publication_id or publicationId elsewhere.
- **get_single_hashnode_publication_by_id** — Get one publication (blog) by ID. Needs the publication to be on Hashnode's Pro plan.
- **list_all_hashnode_posts** — List the published posts of a publication, newest first. Give publication_id or host. Needs Pro.
- **get_single_hashnode_post_by_id** — Get one post by ID, including its Markdown and HTML content. Needs Pro.
- **create_a_hashnode_post** — Publish a new post straight to a publication (no draft step). Needs Pro.
- **update_a_hashnode_post_by_id** — Update a published post by ID. Send only the fields to change. Needs Pro.
- **delete_a_hashnode_post_by_id** — Remove a post by ID (Hashnode soft-deletes it: it leaves feeds and its slug is freed). Needs Pro.
- **list_all_hashnode_drafts** — List the user's drafts in a publication. Give publication_id or host. Needs Pro.
- **get_single_hashnode_draft_by_id** — Get one draft by ID, including its Markdown. Needs Pro.
- **create_a_hashnode_draft** — Create a draft in a publication. Publish it later with drafts publish. Needs Pro.
- **update_a_hashnode_draft_by_id** — Update a draft by ID. Send only the fields to change. Needs Pro.
- **hashnode_drafts_publish** — Publish a draft as a post. Hashnode removes the draft once the post exists. Needs Pro.
- **delete_a_hashnode_draft_by_id** — Delete a draft by ID. Needs Pro.

## How it works

1. **Link your customer's Hashnode 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 Hashnode.** The Proxy API is a 1-to-1 mapping of the Hashnode 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

- **Embed Hashnode in AI Content Generators** — Let your users push AI-generated technical articles straight into their Hashnode blog as drafts, so DevRel teams can review and publish without copy-pasting Markdown between tools.
- **Automate Technical Newsletters** — Give marketing automation customers a way to auto-populate email campaigns with the latest posts from their Hashnode engineering blog, pulling clean Markdown, titles, and excerpts on a schedule.
- **Power Localization Workflows** — Enable translation management platforms to pull English posts from one Hashnode publication, translate the Markdown, and publish localized versions to a regional publication — fully programmatically.
- **Feed Developer Support RAG Pipelines** — Let AI chatbot and knowledge-base products ingest a customer's entire Hashnode publication as structured Markdown to answer technical questions with accurate code examples and citations.
- **Centralize Content Management** — Offer your CMS or content-ops users a single place to create, update, and delete Hashnode posts, so edits made in your product sync instantly to their live developer blog.

## What you can build

- **Publication Picker During Onboarding** — Let end users authenticate once and select which Hashnode publication to sync, using the authenticated user and publications endpoints to populate a dropdown.
- **Draft-to-Publish Pipeline** — Programmatically create Markdown drafts in Hashnode, let humans review in-platform, and trigger publish from your UI via the drafts publish action.
- **Bi-Directional Post Sync** — Keep posts in your product and Hashnode in lockstep by creating, updating, and deleting posts via API whenever content changes on either side.
- **Markdown Content Ingestion** — Pull the full Markdown and HTML of every published post into your indexing pipeline for search, RAG, or omnichannel syndication.
- **Scheduled Content Polling** — Run periodic jobs that list posts and fetch new ones by ID to trigger downstream workflows like newsletters, social posts, or translation jobs.
- **Draft Management Dashboard** — Expose a native view of Hashnode drafts inside your product with create, update, and delete controls so content teams never have to switch tools.

## FAQs

### How does authentication work for Hashnode via Truto?

Truto handles the Hashnode Personal Access Token flow for you. Your end users connect their Hashnode account through Truto's hosted link or your embedded flow, and Truto manages token storage and injection on every API call.

### Which Hashnode operations are supported?

Truto exposes the authenticated user, publications (list and get by ID), posts (list, get, create, update, delete), and drafts (list, get, create, update, delete, publish). This covers both read and write workflows for posts and drafts.

### Are there Hashnode plan limitations I should know about?

Yes. Fetching user profiles and publication metadata is generally available, but many write actions and granular read actions require the end user's Hashnode Pro plan. Your integration should surface clear errors when a user's plan doesn't permit a given action.

### Can I publish directly, or do I have to use drafts?

Both are supported. You can call create a post to publish immediately, or create a draft and later trigger the drafts publish action — useful for human-in-the-loop review workflows common in technical content.

### How do I keep content in sync with Hashnode?

Truto supports scheduled polling against the list posts and get post by ID endpoints to detect new or updated content. You can store the publication ID per connected tenant and run incremental syncs on your own cadence.

### Does the API return Markdown or HTML?

Hashnode exposes both Markdown and compiled HTML for posts, so you can preserve code blocks, syntax highlighting, and other developer-friendly formatting when syndicating content elsewhere.

### Can one end user connect multiple Hashnode publications?

Yes. After auth, you can call the publications endpoint to list every publication the user has access to and let them choose which one (or multiple) to sync with your product.

## Related reading

- [Connect Hashnode to Claude: Orchestrate Blog Content and Publishing](https://truto.one/blog/connect-hashnode-to-claude-orchestrate-blog-content-and-publishing/) — Learn how to connect Hashnode to Claude using a managed MCP server. Automate technical blogging, manage drafts, and orchestrate publications with AI agents.
- [Connect Hashnode to ChatGPT: Manage Posts, Drafts, and Publications](https://truto.one/blog/connect-hashnode-to-chatgpt-manage-posts-drafts-and-publications/) — Learn how to connect Hashnode to ChatGPT using a managed MCP server. Automate technical blogging, manage drafts, and publish content directly from ChatGPT.
- [Connect Hashnode to AI Agents: Automate End-to-End Blog Management](https://truto.one/blog/connect-hashnode-to-ai-agents-automate-end-to-end-blog-management/) — Learn how to connect Hashnode to AI agents using Truto's /tools endpoint. Bypass complex API quirks and build autonomous content publishing workflows.
