Zernio
Zernio
API Reference

Blogs

Blogs

List blogsGETCreate a blogPOSTGet a blogGETUpdate a blogPATCHDelete a blogDELETE

Articles

List blog articlesGETCreate a blog articlePOSTGet a blog articleGETUpdate a blog articlePATCHDelete a blog articleDELETE
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Blogs

Create a blog

Creates a blog on the connected store. The platform generates the URL handle from the title when omitted.

Supported on Shopify (platform shopify). A WordPress connection is its existing site, so WordPress returns 405 for blog creation.


PlatformsShopify
POST
/v1/accounts/{accountId}/blogs

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

accountId*string

Connected Shopify SocialAccount id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.blogs.createBlog({  path: {    accountId: 'account_abc123',  },  body: {    title: 'Example',  },});console.log(data);
{  "platform": "shopify",  "blog": {    "id": "string",    "platform": "shopify",    "title": "string",    "handle": "string"  }}
Was this page helpful?

List blogs

Lists blogs on the connected account. Shopify returns its store blogs with cursor pagination. A WordPress account represents one site and always returns exactly that one blog with `nextCursor: null`. `limit` is 1-50 (default 20). Treat `nextCursor` as opaque; pass it unchanged on the next request. Supported on Shopify (`shopify`) and WordPress (`wordpress`).

Get a blog

Fetches a single blog. Use the platform-native `blogId` returned by `GET /v1/accounts/{accountId}/blogs`: a Shopify numeric blog id, the WordPress.com numeric site id, or `1` for a self-hosted WordPress site. The self-hosted id is scoped to its connected account.

title*string
Length1 <= length
handle?string

URL slug. Generated from the title when omitted.

Length1 <= length