wakato-io Blog API
The Blog API from wakato-io — 5 operation(s) for blog.
The Blog API from wakato-io — 5 operation(s) for blog.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wakato-io:wakato-io-blog-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wakato Space Blog API
version: 1.0.0
description: 'The **Wakato Space API** lets an external agent or tool (Claude Code, Cursor,
Zapier, a partner integration, your own scripts) operate a single Wakato
**Space** using a scoped Bearer token (a *Space API key*, `wks_live_…`).
The **same token** works two ways:
- **REST** — the endpoints documented here (`/functions/v1/space-api/…`).
- **MCP** — a Model Context Protocol server at `/functions/v1/space-mcp`
that exposes the same operations as tools to MCP clients. MCP clients
self-discover the tools via `tools/list`; see the Quickstart to connect.
### Authentication
Send the key as a Bearer token: `Authorization: Bearer wks_live_…`.
A key is locked to exactly one Space and cannot read or write any other
Space, the wallet (beyond read), member permissions, or other users.
### Scopes
Every key grants per-domain scopes with up to three actions:
- `read` — list / inspect
- `write` — create / edit
- `run` — the *consequential* action (publish a page, send an SMS, post
socially, run an automation). Public/billable actions are deliberately
split into `run` so you grant them explicitly.
Each operation below notes its required scope via `x-required-scope`.
A call without the scope returns `403`.
### Safety model
- Wallet, Finance, Integrations are **read-only**. Money is never moved.
- Secrets returns **names only** — values are never exposed.
- Social posts and ad campaigns default to **drafts**; going live requires
the `run` scope. Connecting new OAuth accounts is never done by a key.'
servers:
- url: https://api.wakato.io/functions/v1/space-api
description: Production
- url: https://pnwxrleocjbcvrrwrycq.supabase.co/functions/v1/space-api
description: Development
security:
- bearerAuth: []
tags:
- name: Blog
paths:
/blog/collections:
get:
tags:
- Blog
summary: List blogs (collections)
x-required-scope: pages:read
responses:
'200':
$ref: '#/components/responses/Ok'
description: '**Required scope:** `pages:read`'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET \"https://api.wakato.io/functions/v1/space-api/blog/collections\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\""
operationId: getBlogCollections
x-operation-id-source: derived
post:
tags:
- Blog
summary: Create a blog (collection)
description: '**Required scope:** `pages:write`
Create a blog — the real blog system, not a static page. Pass `site_id`
(from `POST /sites`) to make it part of one website. The collection holds
the post layout (`template_html` with `{{title}}` `{{cover_image}}`
`{{excerpt}}` `{{body}}` `{{author}}` `{{date}}` tokens; a neutral default
is used if omitted) — reused for every post. Idempotent by `base_slug` per
space. Then add posts with `POST /blog/posts`.'
x-required-scope: pages:write
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
site_id:
type: string
description: Attach to a site so the blog is part of one website
base_slug:
type: string
description: URL segment (default "blog")
unique per space: null
template_html:
type: string
description: Custom post layout with the six tokens (neutral default if omitted)
index_page_id:
type: string
responses:
'201':
$ref: '#/components/responses/Created'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X POST \"https://api.wakato.io/functions/v1/space-api/blog/collections\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{}'"
operationId: postBlogCollections
x-operation-id-source: derived
/blog/collections/{id}:
parameters:
- in: path
name: id
required: true
schema:
type: string
patch:
tags:
- Blog
summary: Update a blog (rename, re-theme template, attach/detach a site)
description: '**Required scope:** `pages:write`
The `base_slug` is fixed at creation. Pass `null` for `site_id`/`index_page_id` to detach.'
x-required-scope: pages:write
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
template_html:
type: string
site_id:
type:
- string
- 'null'
index_page_id:
type:
- string
- 'null'
responses:
'200':
$ref: '#/components/responses/Ok'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X PATCH \"https://api.wakato.io/functions/v1/space-api/blog/collections/b7e4a1c2-9d3f-4e8a-b2c1-5f6d7e8a9b0c\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{}'"
operationId: patchBlogCollectionsById
x-operation-id-source: derived
/blog/posts:
get:
tags:
- Blog
summary: List blog posts
x-required-scope: pages:read
parameters:
- in: query
name: collection_id
schema:
type: string
- in: query
name: status
schema:
type: string
enum:
- draft
- published
- in: query
name: limit
schema:
type: integer
responses:
'200':
$ref: '#/components/responses/Ok'
description: '**Required scope:** `pages:read`'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X GET \"https://api.wakato.io/functions/v1/space-api/blog/posts\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\""
operationId: getBlogPosts
x-operation-id-source: derived
post:
tags:
- Blog
summary: Write a blog post
description: '**Required scope:** `pages:write`
Add a post to a collection. Provide `body_html` (rendered into the blog
template), plus optional `excerpt`, `cover_image_url`, `author`. Defaults
to a draft; pass `status: published` to publish immediately (live at
`/post/`).'
x-required-scope: pages:write
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- collection_id
- title
properties:
collection_id:
type: string
title:
type: string
body_html:
type: string
description: Post body as HTML
excerpt:
type: string
cover_image_url:
type: string
author:
type: string
slug:
type: string
status:
type: string
enum:
- draft
- published
responses:
'201':
$ref: '#/components/responses/Created'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X POST \"https://api.wakato.io/functions/v1/space-api/blog/posts\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"collection_id\": \"b7e4a1c2-9d3f-4e8a-b2c1-5f6d7e8a9b0c\",\n \"title\": \"Launch plan\"\n}'"
operationId: postBlogPosts
x-operation-id-source: derived
/blog/posts/{id}:
parameters:
- in: path
name: id
required: true
schema:
type: string
patch:
tags:
- Blog
summary: Edit a blog post
x-required-scope: pages:write
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
title:
type: string
excerpt:
type: string
cover_image_url:
type: string
body_html:
type: string
author:
type: string
responses:
'200':
$ref: '#/components/responses/Ok'
description: '**Required scope:** `pages:write`'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X PATCH \"https://api.wakato.io/functions/v1/space-api/blog/posts/b7e4a1c2-9d3f-4e8a-b2c1-5f6d7e8a9b0c\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{}'"
operationId: patchBlogPostsById
x-operation-id-source: derived
/blog/posts/{id}/publish:
parameters:
- in: path
name: id
required: true
schema:
type: string
post:
tags:
- Blog
summary: Publish or unpublish a blog post
description: '**Required scope:** `pages:run`
Publishes the post live at /post/. Pass publish=false to move it back to draft.'
x-required-scope: pages:run
requestBody:
content:
application/json:
schema:
type: object
properties:
publish:
type: boolean
description: false to unpublish (default true)
responses:
'200':
$ref: '#/components/responses/Ok'
x-codeSamples:
- lang: bash
label: cURL
source: "curl -X POST \"https://api.wakato.io/functions/v1/space-api/blog/posts/b7e4a1c2-9d3f-4e8a-b2c1-5f6d7e8a9b0c/publish\" \\\n -H \"Authorization: Bearer wks_live_YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{}'"
operationId: postBlogPostsByIdPublish
x-operation-id-source: derived
components:
responses:
Ok:
description: Success
content:
application/json:
schema:
type: object
Created:
description: Created
content:
application/json:
schema:
type: object
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A Space API key, e.g. `wks_live_…`.