Publishing · Blogs

Create a blog article

Creates a blog article. Works with Shopify, WordPress, Wix and Webflow accounts.

POSThttps://api.pozy.ai/v1/accounts/{accountId}/blogs/{blogId}/articles
Shopify, WordPress, Wix and WebflowcreateBlogArticle

Guides: WordPress, Wix, Webflow

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the publishing resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
accountIdrequiredstring
blogIdrequiredstringMatches ^[A-Za-z0-9_-]{1,64}$

Headers

NameTypeNotes
Idempotency-KeystringUp to 255 charactersRetries with the same key return the original result. See Idempotency

Request body

application/json, required

  • titlestringrequired
  • bodyHtmlstring
  • handlestring
  • tagsarray of string

    Up to 100 items.

  • authorstring
  • excerptstring
  • imageobject
    • urlstring (URL)required
    • altTextstring
  • seoobject
    • titlestring
    • descriptionstring
  • isPublishedboolean
  • publishDatestring (date-time)
  • fieldDataobject

Example

curl -X POST "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/blogs/652782a6c235ab5a16404097/articles" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Launch day"
}'

Response

201 on success

  • platformstring

    One of shopify, wordpress, wix, webflow.

  • articleobject
    17 child fields
    • idstring
    • blogIdstring
    • platformstring

      One of shopify, wordpress, wix, webflow.

    • titlestring
    • bodyHtmlstring

      Can be null.

    • handlestring
    • urlstring

      Can be null.

    • tagsarray of string
    • authorstring

      Can be null.

    • excerptstring

      Can be null.

    • imageobject

      Can be null.

      2 child fields
      • urlstring
      • altTextstring

        Can be null.

    • isPublishedboolean
    • publishedAtstring (date-time)

      Can be null.

    • statusstring

      One of publish, future, draft, pending, private.

    • publishDatestring (date-time)

      Can be null.

    • createdAtstring (date-time)

      Can be null.

    • updatedAtstring (date-time)

      Can be null.

201 response
{
  "platform": "shopify",
  "article": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "blogId": "652782a6c235ab5a16404097",
    "platform": "shopify",
    "title": "Launch day",
    "bodyHtml": "string",
    "handle": "acme",
    "url": "https://pozy.ai/media/example-1.jpg",
    "tags": [
      "string"
    ],
    "author": "string",
    "excerpt": "string",
    "image": {
      "url": "https://pozy.ai/media/example-1.jpg",
      "altText": "Hello from Pozy"
    },
    "isPublished": true,
    "publishedAt": "2026-10-02T09:00:00.000Z",
    "status": "publish",
    "publishDate": "2026-10-02T09:00:00.000Z",
    "createdAt": "2026-10-02T09:00:00.000Z",
    "updatedAt": "2026-10-02T09:00:00.000Z"
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Blogs