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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
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" }}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.