OurBlog

API reference

Create, edit and publish posts with the OurBlog REST API, straight from your own systems and automation tools. To use your blog from Claude or ChatGPT, see the MCP guide. MCP guide

Create an API key

  1. In the dashboard, open your blog's settings. Under API keys at the bottom, name the key and click Create key.
  2. The key is shown only once. Copy it right away and keep it somewhere safe. Each key works for one blog.
  3. If a key leaks, revoke it in the same place. Anything using it is cut off immediately.

Authentication

Send the key in the Authorization header with every request.

Authorization: Bearer ob_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Base URL

https://ourblog.app/api/v1

Post body

Send the body as html (an HTML string) or content (the editor's TipTap JSON). Responses include both. In html, tags the blog does not render (script, style and so on) are dropped on save; content with node types the editor does not know is rejected with 422.

Errors

Errors always have the same shape. Branch on code, and show message to people.

{
  "error": {
    "code": "validation_error",
    "message": "이 블로그에 같은 주소의 글이 있습니다",
    "field": "slug"
  }
}
StatuscodeMeaning
400invalid_jsonThe body is not a JSON object
401unauthorizedMissing, wrong or revoked key
404not_foundNo such post, language version or endpoint
409cannot_publish · not_published · language_not_enabledNot possible in the current state (for example publishing without a title, or a language that is not turned on)
413payload_too_largeBody too large (HTML up to 500,000 characters)
422validation_errorA field is invalid. field names which one
429rate_limited120 requests per minute per key. Retry after Retry-After seconds

Rate limit

Each key can make 120 requests per minute. The X-RateLimit-Remaining response header shows what is left.

Endpoints

Get the blog

GET/api/v1/blog

Name, address, languages, time zone and plan of the blog the key belongs to.

Request

curl https://ourblog.app/api/v1/blog \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "id": "b29a07fb-0529-40a7-b102-dce455cbffb0",
  "slug": "ourblog",
  "name": "아워블로그 블로그",
  "description": "우리 언어로 쓰고, 해외 고객을 만나세요.",
  "url": "https://ourblog.ourblog.app",
  "sourceLang": "ko",
  "languages": ["ko", "en", "ja", "zh-CN"],
  "timezone": "Asia/Seoul",
  "plan": "global_pro"
}

List posts

GET/api/v1/posts

Newest first. Posts that were never published come first.

Query

statusstring
draft, scheduled or published
categoryIdstring
Only posts in this category
limitinteger
1 to 100, default 20
offsetinteger
Items to skip, default 0

Request

curl "https://ourblog.app/api/v1/posts?status=published&limit=5" \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "data": [
    {
      "id": "75658e84-1174-4efc-b0d0-3aa64d93ca0b",
      "slug": "welcome",
      "title": "아워블로그 블로그를 시작합니다",
      "description": "…",
      "status": "published",
      "categoryId": null,
      "authorName": "OurBlog",
      "publishedAt": "2026-11-28T11:05:41.953Z",
      "updatedAt": "2026-11-29T11:05:44.172Z",
      "createdAt": "2026-11-29T11:05:44.172Z",
      "hasUnpublishedChanges": false,
      "url": "https://ourblog.ourblog.app/welcome"
    }
  ],
  "total": 1,
  "limit": 5,
  "offset": 0
}

Get a post

GET/api/v1/posts/{id or slug}

Find a post by id or slug. Returns the working copy (title, content, html), the published copy (published) and its language versions (translations).

Request

curl https://ourblog.app/api/v1/posts/api-first-post \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "id": "f869bcde-3488-4022-b327-2b59488bc249",
  "slug": "api-first-post",
  "title": "API로 쓴 첫 글",
  "description": "REST API로 만든 임시 글입니다.",
  "status": "draft",
  "categoryId": null,
  "authorName": "아워블로그",
  "publishedAt": null,
  "updatedAt": "2026-11-29T11:17:22.551Z",
  "createdAt": "2026-11-29T11:17:22.548Z",
  "hasUnpublishedChanges": false,
  "url": null,
  "seoTitle": "",
  "canonicalUrl": null,
  "content": { "type": "doc", "content": [ … ] },
  "html": "<h2>소제목</h2><p>본문 <strong>굵게</strong>와 …</p>",
  "published": null,
  "translations": []
}

Create a post

POST/api/v1/posts

Creates a draft. Call publish to put it on the blog. Returns 201.

Body (JSON)

titlestring
Title, up to 300 characters. Required when creating
htmlstring
Body as HTML: h2, h3, p, ul, ol, blockquote, a, strong, em, img. Replaces the whole body
contentobject
Body in the editor's format (TipTap JSON with type doc), instead of html
descriptionstring
Summary shown in search results, up to 1000 characters
slugstring
URL slug: letters, numbers and hyphens. Empty = made from the title
seoTitlestring
Title for search results. Empty = the post title
authorNamestring
Author name
categoryIdstring | null
Category id from GET /categories

Request

curl -X POST https://ourblog.app/api/v1/posts \
  -H "Authorization: Bearer $OURBLOG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "API로 쓴 첫 글",
    "description": "REST API로 만든 임시 글입니다.",
    "slug": "api-first-post",
    "authorName": "아워블로그",
    "html": "<h2>소제목</h2><p>본문 <strong>굵게</strong>와 <a href=\"https://ourblog.app\">링크</a>.</p>"
  }'

Response

{
  "id": "f869bcde-3488-4022-b327-2b59488bc249",
  "slug": "api-first-post",
  "title": "API로 쓴 첫 글",
  "description": "REST API로 만든 임시 글입니다.",
  "status": "draft",
  "categoryId": null,
  "authorName": "아워블로그",
  "publishedAt": null,
  "updatedAt": "2026-11-29T11:17:22.551Z",
  "createdAt": "2026-11-29T11:17:22.548Z",
  "hasUnpublishedChanges": false,
  "url": null,
  "seoTitle": "",
  "canonicalUrl": null,
  "content": { "type": "doc", "content": [ … ] },
  "html": "<h2>소제목</h2><p>본문 <strong>굵게</strong>와 …</p>",
  "published": null,
  "translations": []
}

Update a post

PATCH/api/v1/posts/{id or slug}

Only the fields you send change. For a published post, changes wait (hasUnpublishedChanges becomes true) until you publish again.

Body (JSON)

htmlstring
Body as HTML: h2, h3, p, ul, ol, blockquote, a, strong, em, img. Replaces the whole body
contentobject
Body in the editor's format (TipTap JSON with type doc), instead of html
descriptionstring
Summary shown in search results, up to 1000 characters
slugstring
URL slug: letters, numbers and hyphens. Empty = made from the title
seoTitlestring
Title for search results. Empty = the post title
authorNamestring
Author name
categoryIdstring | null
Category id from GET /categories
titlestring
Title

Request

curl -X PATCH https://ourblog.app/api/v1/posts/f869bcde-3488-4022-b327-2b59488bc249 \
  -H "Authorization: Bearer $OURBLOG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "description": "설명을 고쳤습니다." }'

Response

{
  "id": "f869bcde-3488-4022-b327-2b59488bc249",
  "title": "API로 쓴 첫 글",
  "description": "설명을 고쳤습니다.",
  "status": "draft",
  …
}

Publish or schedule

POST/api/v1/posts/{id or slug}/publish

Puts the working copy on the blog. If the slug changed, the old URL redirects to the new one (308). Send at to schedule it (from one minute to one year ahead, for posts not yet live).

Body (JSON)

atstring
Time in the blog's time zone, YYYY-MM-DDTHH:mm

Request

curl -X POST https://ourblog.app/api/v1/posts/f869bcde-3488-4022-b327-2b59488bc249/publish \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "id": "f869bcde-3488-4022-b327-2b59488bc249",
  "slug": "api-first-post",
  "status": "published",
  "publishedAt": "2026-11-29T11:17:22.743Z",
  "url": "https://ourblog.ourblog.app/api-first-post",
  …
}

Unpublish

POST/api/v1/posts/{id or slug}/unpublish

Takes a published or scheduled post off the blog. The content stays as a draft.

Request

curl -X POST https://ourblog.app/api/v1/posts/f869bcde-3488-4022-b327-2b59488bc249/unpublish \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{ "id": "f869bcde-…", "status": "draft", "url": null, … }

Delete a post

DELETE/api/v1/posts/{id or slug}

Deletes the post with its language versions and history. This cannot be undone.

Request

curl -X DELETE https://ourblog.app/api/v1/posts/f869bcde-3488-4022-b327-2b59488bc249 \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{ "id": "f869bcde-3488-4022-b327-2b59488bc249", "deleted": true }

Get a language version

GET/api/v1/posts/{id or slug}/translations/{lang}

The post's version in a language the blog has turned on (en, ja, zh-CN, zh-TW, ko).

Request

curl https://ourblog.app/api/v1/posts/api-first-post/translations/en \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "postId": "f869bcde-3488-4022-b327-2b59488bc249",
  "lang": "en",
  "status": "manual",
  "slug": "my-first-post-via-the-api",
  "title": "My first post via the API",
  "description": "",
  "content": { "type": "doc", "content": [ … ] },
  "html": "<p>Hello from the API.</p>",
  "updatedAt": "2026-11-29T11:17:22.845Z",
  "url": "https://ourblog.ourblog.app/en/my-first-post-via-the-api"
}

Write a language version

PUT/api/v1/posts/{id or slug}/translations/{lang}

Creates or changes a language version. Fields you leave out keep their value. Send publish: true to put it on the blog (it shows while the original is published). Languages are added on paid plans.

Body (JSON)

titlestring
Title in that language
descriptionstring
Summary in that language
slugstring
Slug for that language. Empty = made from the title
html / contentstring / object
Body
publishboolean
true puts it on the blog. Default false (draft)

Request

curl -X PUT https://ourblog.app/api/v1/posts/api-first-post/translations/en \
  -H "Authorization: Bearer $OURBLOG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "title": "My first post via the API", "html": "<p>Hello from the API.</p>", "publish": true }'

Response

{ "lang": "en", "status": "manual", "slug": "my-first-post-via-the-api", "url": "https://ourblog.ourblog.app/en/my-first-post-via-the-api", … }

List categories

GET/api/v1/categories

In the order set in the dashboard. Use these ids for a post's categoryId.

Request

curl https://ourblog.app/api/v1/categories \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "data": [
    { "id": "4c1e…", "slug": "guide", "name": "이용 안내", "description": "", "postCount": 12 }
  ]
}

List inquiries

GET/api/v1/leads

Inquiries from the blog's forms, newest first. They contain names and contact details: keep them inside the system that holds the key.

Query

statusstring
new, contacted or spam
formIdstring
Only from this form
from / tostring
Dates in the blog's time zone, YYYY-MM-DD
qstring
Search name, email, phone, company and message
limitinteger
1 to 500, default 50

Request

curl "https://ourblog.app/api/v1/leads?status=new&from=2026-11-01" \
  -H "Authorization: Bearer $OURBLOG_API_KEY"

Response

{
  "data": [
    {
      "id": "0b7d…",
      "createdAt": "2026-11-28T02:14:09.000Z",
      "status": "new",
      "form": { "id": "9a31…", "name": "상담 신청" },
      "email": "kim@example.com",
      "phone": "+821012345678",
      "name": "김민지",
      "company": "예시병원",
      "message": "상담 가능한 시간을 알려 주세요.",
      "answers": {},
      "lang": "ko",
      "country": "KR",
      "post": { "id": "75658e84-…", "title": "…" },
      "pageUrl": "https://…",
      "referrer": null,
      "consent": true
    }
  ]
}