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

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.


PlatformsShopifyWordPress
GET
/v1/accounts/{accountId}/blogs/{blogId}

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 or WordPress account id.

blogId*string

Platform-native numeric blog/site id returned by the list operation.

Match^\d+$

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.getBlog({  path: {    accountId: 'account_abc123',    blogId: 'blog_abc123',  },});console.log(data);
{  "platform": "shopify",  "blog": {    "id": "string",    "platform": "shopify",    "title": "string",    "handle": "string"  }}
Was this page helpful?

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.

Update a blog

Partial-updates a blog. Send any subset of `title` and `handle`; at least one field is required (an empty body returns 400). Supported on Shopify (platform `shopify`). WordPress site settings are not writable through this API, so WordPress returns 405.