Skip to main content
POST
Create a blog article

Request contract

  • Method and path: POST /apis/v1/social/accounts/{accountId}/blogs/{blogId}/articles
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/accounts/{accountId}/blogs/{blogId}/articles
  • accountId: path; required
  • blogId: path; required
  • Idempotency-Key: header; optional
  • Runtime facts: 99acb5bddbedc8d3352e7c4fef86c3e6d8852c14772bcd18dbcf415237a642bd
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Passed to the channel: a retry with the same key within 24 hours returns the first result instead of acting twice. AIsa never retries a write for you.

Required string length: 1 - 191

Path Parameters

accountId
string
required

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
blogId
string
required

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

Pattern: ^[A-Za-z0-9_-]{1,64}$

Body

application/json
title
string
required
Minimum string length: 1
author
string

Shopify author display name, numeric WordPress user id serialized as a string, or Wix site member id. Assigning another WordPress user may require elevated capability. Wix posts without one go to the site's default author.

bodyHtml
string

Article body as HTML.

excerpt
string

Short summary shown in blog listings.

fieldData
object

Webflow only (other platforms answer 400). The collection's own fields that the Blogs API does not map, keyed by field slug, in Webflow's value format (a Reference is an item id, an Image is { url, alt }).

Required by collections with required fields of their own: a create that leaves one empty answers 400 listing them. A slug the API already fills (name, slug, body, summary, image, tags, author, date) or one the collection lacks answers 400.

handle
string

URL slug. Generated from the title when omitted.

image
object

Featured image from a public URL. WordPress downloads it into the media library and Wix imports it into the Media Manager; JPEG, PNG, GIF and WebP are accepted up to 10 MB.

isPublished
boolean

Set false for a draft or true to publish. On WordPress and Wix false takes priority over a future publishDate; omission with no date defaults to draft.

publishDate
string<date-time>

ISO 8601 datetime with offset (or Z). A future date schedules publication natively on the platform.

seo
object

Shopify and Wix. Search-engine overrides: Shopify global title_tag and description_tag metafields, Wix post SEO title and meta description. WordPress rejects this field.

tags
string[]

Tag names. WordPress and Wix resolve existing names case-insensitively and create missing tags (Wix allows up to 30).

Maximum array length: 100
Minimum string length: 1

Response

Article created

article
object

An article inside a blog on the connected platform.

platform
enum<string>
Available options:
shopify,
wordpress,
wix,
webflow