Writavo Organisation API
The organisation's name and your role. AI agent controls are readable here; only a person changes them, in the dashboard.
The organisation's name and your role. AI agent controls are readable here; only a person changes them, in the dashboard.
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/writavo-com:writavo-com-organisation-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: Writavo Content Organisation API
version: 1.8.0
summary: The CMS control plane for a Writavo Site.
description: 'Create, edit, organise, publish and schedule content without the dashboard, which is built on
this same API. ## Your key decides the Site
Every key belongs to one Site, so no endpoint takes a Site parameter. Another Site''s object
returns 404, never 403, so its existence is never disclosed. ## Drafts stay private until you publish
`POST /articles` always creates a `draft`: not on your blog, sitemap or feeds, and never
touched by the AI pipeline. Publishing is always a separate `POST /articles/{id}/publish`. You set three statuses, `draft`, `scheduled` and `published`, through the lifecycle endpoints
(`/publish`, `/unpublish`, `/schedule`, `/cancel-schedule`), not by PATCHing `status`. The
other ten belong to the AI pipeline: readable, never settable (`422 VALIDATION_FAILED`). ## What costs money
Content, taxonomy, media, publishing, settings, the team and every read are free. The rest is
marked:
- **Spends credits** (`x-spends-credits: true`): `POST /pipeline/runs`, turning the pipeline
on or up with `PATCH /pipeline/config`, an AI rewrite or new images with
`POST /pipeline/articles/{id}/requeue`, and six paid SEO scans
(`POST /seo/site-metrics/refresh`, `/seo/content-gaps/scan`, `/seo/llm-mentions/check`,
`/seo/backlinks/scan`, `/seo/backlinks/detail-pull`, `/seo/link-opportunities/intersect-scan`). - **Spends money without credits** (`x-spends-money: true`): a custom domain (5 US dollars a
month once it verifies), a keyword rank check, turning on auto-refill (charges the saved
card) and keeping the current plan instead of a scheduled downgrade. A paid operation is checked in this order:
1. Scope: `403 INSUFFICIENT_SCOPE`. 2. Entitlement: `402 NOT_ENTITLED`. AI pipeline only; the CMS is on every plan, billed by usage. 3. Availability: `409 FEATURE_UNAVAILABLE` (switched off platform wide) or
`409 PREREQUISITE_MISSING` (names the operation that sets it up). 4. Credits: `402 INSUFFICIENT_CREDITS`. 5. The Site''s monthly spend cap: `402 SPEND_CAP_REACHED`. If credits run out mid run, the engine stops at the next stage boundary: finished work is kept
and charged, nothing is half written, and the run ends `status: partial` (reason in
`GET /pipeline/runs/{id}`). Top up and request another run to resume. ## Versioning
`/v1` is additive only, so tolerate unknown response fields. Removing a field or enum value,
renaming anything, making an optional field required or changing a status code ships as
`/v2`, with `/v1` kept alongside. Read-only enums (such as `article.status`) may gain values. ## Moving a blog in
Send each article''s old id as `external_id` (look it up with `GET /articles?external_id=`
first, so a re-run updates), keep its `slug`, and send old URLs to `POST /redirects/bulk` (or
`old_urls` in the import format) so they answer 301. Record `original_published_at` (and
optionally `original_content_updated_at`) and the article goes live with that date whenever it
is first published; `published_at` in the body of `POST /articles/{id}/publish` overrides it. See the migration guide. ## Signing in from a terminal
`POST /auth/device` starts a sign-in a person approves in the dashboard, turning the client''s
key into a secret key for the Site they choose. These two device endpoints are the only ones
without an API key. Such a key can extend (`POST /auth/key/extend`) and revoke
(`POST /auth/key/revoke`) itself. The hosted MCP server (`https://mcp.writavo.com/mcp`) does
the same through OAuth 2.1; this API accepts API keys only. Beyond content, keys reach settings, the pipeline, plan, formats and prompts, delivery, SEO,
outreach (read only), the team, billing and reports, each under its own scope. ## AI agents
A key from a device or OAuth sign-in is an AI agent''s key:
- **Switch.** An owner or admin can turn AI agent access off; agent keys then get
`403 AGENT_ACCESS_DISABLED` until it is back on, with no new sign-in needed. Dashboard keys
are unaffected.'
contact:
name: Writavo Support
url: https://writavo.com/support
license:
name: Proprietary
url: https://writavo.com/terms
servers:
- url: https://api.writavo.com/v1
description: Production
security:
- apiKey: []
tags:
- name: Organisation
x-mcp-surface: action
description: 'The organisation''s name and your role.
AI agent controls are readable here; only a person changes them, in the dashboard.'
paths:
/organisation:
get:
operationId: getOrganisation
tags:
- Organisation
summary: Read the organisation
description: 'The organisation that owns this Site: its name, the role of the person the key acts for
(`your_role`), and whether AI agent access and approvals are on. Use `your_role` to tell the
person what they can expect to change before trying.'
x-scope: meta:read
x-permission: none
x-entitlement: none
x-spends-credits: false
x-rate-limit-class: read
x-publishable: false
x-mcp-surface: action
responses:
'200':
description: The organisation.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/Organisation'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/InsufficientScope'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/Maintenance'
patch:
operationId: renameOrganisation
tags:
- Organisation
summary: Rename the organisation
description: 'Change the organisation''s name, and nothing else. Needs `org:write` and the `organisation.manage`
permission, which only owners hold by default; for anyone else it is `403 INSUFFICIENT_SCOPE`.
The AI agent switch, the approvals switch, the default agent permissions and the outreach
policy are never changeable through the API: naming any of them is `422 VALIDATION_FAILED` with
"This setting can only be changed by a person in the dashboard." A person changes them at
https://app.writavo.com/settings/agents and https://app.writavo.com/outreach.'
x-scope: org:write
x-permission: organisation.manage
x-entitlement: none
x-spends-credits: false
x-rate-limit-class: write
x-publishable: false
x-mcp-surface: action
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OrganisationUpdate'
responses:
'200':
description: The renamed organisation.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/Organisation'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/InsufficientScope'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/Maintenance'
components:
schemas:
SuccessEnvelope:
type: object
required:
- ok
- data
properties:
ok:
type: boolean
const: true
data: {}
description: 'Every successful response has this shape. Check `ok` before reading `data`.
'
ErrorEnvelope:
type: object
required:
- ok
- error
additionalProperties: false
properties:
ok:
type: boolean
const: false
error:
type: object
required:
- code
- message
properties:
code:
$ref: '#/components/schemas/ErrorCode'
message:
type: string
description: 'A short, safe for display sentence. It never contains a stack trace, SQL, an
internal identifier, or anything belonging to another customer. Branch on `code`,
not on this string: wording may change within v1.
'
fields:
type: object
additionalProperties:
type: string
description: 'Present on `VALIDATION_FAILED`. Maps each offending field to a message you can
show next to the input.
'
approval:
$ref: '#/components/schemas/ApprovalRef'
limit:
type: string
enum:
- reader
- site
- queue
description: 'Present on a `RATE_LIMIT_EXCEEDED` from `POST /comments`: which comment limit was hit.
`reader` (5 comments per reader in 10 minutes), `site` (300 per Site per hour) or
`queue` (2,000 comments already waiting for review).
'
request_id:
type: string
description: Quote this when contacting support. It identifies the exact request in our logs.
description: Every failed response has this shape.
OrganisationUpdate:
type: object
description: 'The name only. Any other field is `422`: the AI agent and outreach settings change only in the dashboard.'
required:
- name
additionalProperties: false
properties:
name:
type: string
minLength: 1
maxLength: 120
ApprovalRef:
type: object
required:
- id
- url
- expires_at
- status
description: 'Present on `428 APPROVAL_REQUIRED` and `428 APPROVAL_PENDING`. Show `url` to the person
who can approve the action; once they have, repeat the identical request with
`Writavo-Approval: <id>`.
'
properties:
id:
type: string
format: uuid
url:
type: string
format: uri
description: The dashboard page where a person approves or denies this request.
expires_at:
type:
- string
- 'null'
format: date-time
description: After this the approval can no longer be used. Null only if it could not be read.
status:
type: string
enum:
- pending
Organisation:
type: object
required:
- id
- name
- your_role
- agent_access_enabled
- agent_approvals_required
- created_at
properties:
id:
type: string
format: uuid
readOnly: true
name:
type: string
maxLength: 120
your_role:
type:
- string
- 'null'
enum:
- owner
- admin
- editor
- viewer
- null
description: The role of the person this key acts for. Null only for a key whose creator is not a member (never an AI agent's key).
readOnly: true
agent_access_enabled:
type: boolean
description: Read only. A person changes it at https://app.writavo.com/settings/agents.
readOnly: true
agent_approvals_required:
type: boolean
description: Read only. Money and team actions are asked whatever it says.
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
ErrorCode:
type: string
description: 'Stable machine readable codes. New codes may be added within v1, so treat an unknown
code as a generic failure of its HTTP status class rather than crashing.
| Code | HTTP | What it means |
|---|---|---|
| `INVALID_REQUEST` | 400 | Malformed JSON, a bad parameter, or a missing required header. |
| `INVALID_API_KEY` | 401 | No key, an unparseable key, or one that does not exist. |
| `API_KEY_REVOKED` | 401 | The key was revoked or rotated past its grace window. |
| `API_KEY_EXPIRED` | 401 | The key passed its `expires_at`. |
| `INSUFFICIENT_SCOPE` | 403 | The key is valid but lacks the scope this operation needs. For an AI agent, the message names the permission row the person must set to Read or Read and write when they reconnect. |
| `FORBIDDEN` | 403 | Refused for a reason no scope would change: a key that may not extend itself, an OAuth sign-in not started by Writavo''s MCP server, an AI agent changing the access of the person it acts for, anything to do with ownership, or a setting only a person may change. The message says which and what to do instead. |
| `AGENT_ACCESS_DISABLED` | 403 | The key belongs to an AI agent and the organisation has turned AI agent access off. |
| `APPROVAL_REQUIRED` | 428 | An AI agent asked for an action a person must approve. `error.approval` has the link and the id to retry with. |
| `APPROVAL_PENDING` | 428 | The approval you sent has not been decided yet. Retry once it has. |
| `APPROVAL_DENIED` | 403 | A person denied the action. |
| `APPROVAL_INVALID` | 409 | The approval you sent cannot be used for this request: expired, already used, for a different request, unknown, or what the request would do has changed since it was approved. |
| `NOT_ENTITLED` | 402 | Your plan does not include this AI pipeline capability. Upgrade. CMS capabilities are on every plan and never return this. |
| `INSUFFICIENT_CREDITS` | 402 | The organisation cannot afford the next unit of work. Top up. |
| `SPEND_CAP_REACHED` | 402 | This Site hit its own monthly ceiling. Raise it or wait. |
| `PAYMENT_METHOD_REQUIRED` | 402 | This would go past your included CMS allowance and there is no payment method on file. Not a plan limit and not an upgrade: CMS resources are pay-as-you-go on every plan. Add a card and retry. Nothing already published stops serving. |
| `NOT_FOUND` | 404 | No such object, or it belongs to another Site. Deliberately indistinguishable. |
| `COMMENTS_DISABLED` | 404 | The Site has reader comments turned off. Turn them on with `PATCH /comments/settings` (`{"enabled": true}`) or in the dashboard, Settings > Site > Reader comments. |
| `PARENT_NOT_FOUND` | 404 | The comment in `parent_id` does not exist, is not approved, or is on another article. Reply to an approved comment on the same article. |
| `SLUG_CONFLICT` | 409 | Another object on this Site already uses that slug. |
| `IDEMPOTENCY_KEY_CONFLICT` | 409 | The key was reused with a different request body. |
| `IDEMPOTENCY_KEY_IN_FLIGHT` | 409 | The first request with this key is still running. Retry shortly. |
| `CONFLICT` | 409 | The request clashes with the object''s current state, or the object changed under you mid request. The message names the step to take. |
| `PREREQUISITE_MISSING` | 409 | Something this operation needs is not set up yet. The message names it and the operation that sets it up. Nothing was done and nothing was charged. |
| `FEATURE_UNAVAILABLE` | 409 | Writavo has this capability switched off right now: paid backlink data platform wide, or spending while the plan has no daily spend cap configured. Nothing the caller sends changes it. |
| `PRECONDITION_FAILED` | 412 | Your `If-Match` did not match. Someone else edited it. Re-read and retry. |
| `VALIDATION_FAILED` | 422 | The request parsed but the values are not acceptable. See `fields`. |
| `COMMENTS_CLOSED` | 422 | Comments have closed on this article: it was published longer ago than the Site''s `close_after_days`. Raise or clear that setting to reopen them. |
| `RATE_LIMIT_EXCEEDED` | 429 | Too many requests. Back off and honour `Retry-After`. |
| `MAINTENANCE` | 503 | Writes are paused for maintenance. Retry later. |
| `INTERNAL_ERROR` | 500 | Our fault. Safe to retry an idempotent request. |
'
enum:
- INVALID_REQUEST
- INVALID_API_KEY
- API_KEY_REVOKED
- API_KEY_EXPIRED
- INSUFFICIENT_SCOPE
- NOT_ENTITLED
- INSUFFICIENT_CREDITS
- SPEND_CAP_REACHED
- PAYMENT_METHOD_REQUIRED
- NOT_FOUND
- SLUG_CONFLICT
- IDEMPOTENCY_KEY_CONFLICT
- IDEMPOTENCY_KEY_IN_FLIGHT
- CONFLICT
- PRECONDITION_FAILED
- VALIDATION_FAILED
- RATE_LIMIT_EXCEEDED
- MAINTENANCE
- INTERNAL_ERROR
- FORBIDDEN
- AGENT_ACCESS_DISABLED
- APPROVAL_REQUIRED
- APPROVAL_PENDING
- APPROVAL_DENIED
- APPROVAL_INVALID
- PREREQUISITE_MISSING
- FEATURE_UNAVAILABLE
- COMMENTS_DISABLED
- COMMENTS_CLOSED
- PARENT_NOT_FOUND
headers:
RetryAfter:
description: Seconds to wait before retrying.
schema:
type: integer
RateLimitLimit:
description: Requests permitted in the current window for this endpoint class.
schema:
type: integer
RateLimitRemaining:
description: Requests left in the current window.
schema:
type: integer
RateLimitReset:
description: Unix seconds at which the window resets.
schema:
type: integer
responses:
ValidationFailed:
description: '`VALIDATION_FAILED`. The values are not acceptable; `error.fields` maps each field to a message.
Common causes: publishing without a title, slug or content; scheduling in the past; sending
`status` on a create or update.
'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
RateLimited:
description: '`RATE_LIMIT_EXCEEDED`. Back off and honour `Retry-After`.
Limits are per key, per minute, by endpoint class. The two device sign-in endpoints take no key,
so they are limited per IP address.
| Class | Endpoints | Limit |
|---|---|---|
| read | every GET | 600 per minute |
| write | POST, PATCH and DELETE on content, taxonomy, keys, webhooks, the content plan, formats and prompts, settings, delivery, SEO curation, the team and billing | 120 per minute |
| upload | `POST /media/upload-url` and `POST /seo/backlinks/import` | 60 per minute |
| pipeline | `POST /pipeline/runs`, `POST /pipeline/articles/{id}/requeue`, `POST /delivery/cms/push` and the seven paid SEO scans | 10 per minute |
| auth | `POST /auth/device` and `POST /auth/device/token`, per IP address | 60 per minute |
`POST /comments` adds three limits, named in `error.limit` on its 429: `reader` (5 per reader in
10 minutes, by `reader_ip`), `site` (300 per Site per hour) and `queue` (2,000 awaiting review).
Every response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`.
'
headers:
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Maintenance:
description: '`MAINTENANCE`. Writes are paused, platform wide or for your Site. Reads usually work and your
published blog stays up. Retry after `Retry-After`.
'
headers:
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
InsufficientScope:
description: "`INSUFFICIENT_SCOPE`. The key lacks this operation's scope, or its creator's permissions no\nlonger cover it. Another Site's object is always 404, never this. A 403 may also be:\n\n- `AGENT_ACCESS_DISABLED` - AI agent access is turned off.\n- `APPROVAL_DENIED` - a person denied this action.\n- `FORBIDDEN` (organisation, team, settings) - a change no scope allows, such as an AI agent\n changing the access of the person it acts for, anything about ownership, or a setting\n only a person may change. The message says what to do instead.\n"
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Unauthorized:
description: '`INVALID_API_KEY`, `API_KEY_REVOKED` or `API_KEY_EXPIRED`: no key, or an unusable one. It never
distinguishes "no such key" from "wrong key".
'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
InternalError:
description: '`INTERNAL_ERROR`. Our fault. Quote the `request_id` from the body if you contact support. Safe to
retry; send the same `Idempotency-Key` so a request that did succeed is not repeated.
'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
BadRequest:
description: '`INVALID_REQUEST`. Bad JSON, an unusable query parameter value, or a missing required header.
'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
securitySchemes:
apiKey:
type: http
scheme: bearer
description: "`Authorization: Bearer <key>`. Two kinds:\n\n- **`wv_pub_`, publishable.** Browser safe, read only, published content only, and only on\n operations marked `x-publishable: true` (anything else is `403 INSUFFICIENT_SCOPE`).\n- **`wv_sk_`, secret.** Server side only; never ship or commit one. Any scope.\n\nA secret key is limited to its scopes and its creator's current permissions, so narrowing the\nperson narrows their keys. Only a hash is stored: a lost key can only be rotated.\n"
externalDocs:
description: Guides, quickstarts and the rendered reference
url: https://writavo.com/docs