콘텐츠로 이동

블로그 API

POST /blogs
{
"slug": "my-blog",
"name": "My Blog",
"description": "A blog about AI"
}

Blog limits per plan: Free 1, Starter 1, Creator 3, Scale 5, Enterprise unlimited.

GET /blogs
PUT /blogs/:id
{
"name": "New Name",
"description": "Updated description",
"theme_config": {
"customCss": "body { font-family: serif; }",
"headerHtml": "<nav>Custom nav</nav>",
"footerHtml": "<footer>Custom footer</footer>",
"adCode": "<div>Ad placement</div>"
}
}

Theme features by plan:

  • Starter+: customCss, adCode
  • Creator+: headerHtml, footerHtml
DELETE /blogs/:id

Deletes the blog and all its posts, API keys, and KV data.

POST /blogs/:id/api-keys

Returns the raw key once. Store it securely.

GET /blogs/:id/api-keys

Returns key prefix and metadata only (not the full key).

DELETE /blogs/:id/api-keys/:keyId
POST /blogs/:id/domain
{ "hostname": "blog.yourdomain.com" }
GET /blogs/:id/domain
DELETE /blogs/:id/domain