Skip to main content
Every hashnode.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Comments

list

comments.list List comments on a post Risk: read
Input Output

Drafts

create

drafts.create Create a new draft Risk: write
Input
Output

delete

drafts.delete Delete a draft [DESTRUCTIVE - IRREVERSIBLE] Risk: destructive · Irreversible
Input Output

get

drafts.get Get a draft by ID Risk: read
Input Output

publish

drafts.publish Publish a draft as a post Risk: write
Input Output

update

drafts.update Update an existing draft Risk: write
Input
Output

Feed

list

feed.list Get the global feed of posts Risk: read
Input
Output

Images

createUploadURL

images.createUploadURL Create a presigned image upload URL Risk: write
Input Output

Me

me

me Get the current authenticated user Risk: read
Input: empty object Output

Pages

get

pages.get Get a static page by slug Risk: read
Input Output

list

pages.list List static pages in a publication Risk: read
Input Output

Posts

get

posts.get Get a single post by ID Risk: read
Input Output

getBySlug

posts.getBySlug Get a post by publication host and slug Risk: read
Input Output

list

posts.list List posts in a publication Risk: read
Input
Output

publish

posts.publish Publish a new post Risk: write
Input
Output

posts.search Search posts within a publication Risk: read
Input
Output

update

posts.update Update an existing post Risk: write
Input
Output

Publications

get

publications.get Get a publication by host Risk: read
Input Output

list

publications.list List publications for the authenticated user Risk: read
Input Output

Series

get

series.get Get a series by slug Risk: read
Input Output

list

series.list List series in a publication Risk: read
Input Output

Tags

get

tags.get Get a tag by slug Risk: read
Input Output

Users

get

users.get Get a user by username Risk: read
Input Output