跳转到主要内容
POST
Create a blog article

请求规范

  • 方法与路径: POST /apis/v1/social/accounts/{accountId}/blogs/{blogId}/articles
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/accounts/{accountId}/blogs/{blogId}/articles
  • accountId: path; 必填
  • blogId: path; 必填
  • Idempotency-Key: header; 可选
  • Runtime 事实版本: 99acb5bddbedc8d3352e7c4fef86c3e6d8852c14772bcd18dbcf415237a642bd
完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

当前未提供请求参考价格;请使用接口支持的报价功能确认费用。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。

授权

Authorization
string
header
必填

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

请求头

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

路径参数

accountId
string
必填

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

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

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

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

请求体

application/json
title
string
必填
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

响应

Article created

article
object

An article inside a blog on the connected platform.

platform
enum<string>
可用选项:
shopify,
wordpress,
wix,
webflow