Content plan and SEO backlog
Two different things live on this page:
- The content plan (
/v1/plan, scopesplan:readandplan:write): the site’s keyword map (pillar and cluster), the post of each one and the expected internal links. - The SEO backlog (
/v1/seo/backlog, scopeseo:read): the site’s posts with the stored score, ordered by the easiest gain.
Rate limit: 60 req/min per key. Responses carry Cache-Control: private, no-store.
GET /v1/plan
Section titled “GET /v1/plan”Scope plan:read. Returns { nodes, edges, truncated }: up to 500 nodes; truncated: true asks you to narrow with pillar_id or language.
curl "https://api.canverly.com/v1/plan?language=pt-BR" \ -H "Authorization: Bearer ck_live_xxx"| Parameter | Notes |
|---|---|
language |
Only this language, for example pt-BR. |
pillar_id |
Only this pillar keyword and its clusters. |
Each node carries a keyword and where it stands:
| Field | Notes |
|---|---|
keyword |
id (ULID), term, language, intent (informational, commercial, transactional, navigational, unknown), priority (1 high, 2 medium, 3 low), role (pillar, cluster, unknown), pillar_id, post_id. |
status |
no_post, draft, scheduled, published, awaiting_analysis, post_missing or unknown (the content service did not answer). |
post |
The allocated post or null. |
planned_in / planned_out |
Internal links the plan expects into / out of this article. |
present_in |
Expected inbound links already present in the linking articles’ bodies. |
Each edge (edges) is an expected internal link: id, from_id (keyword that must link), to_id (the one to be linked), suggested_anchor and status (pending, present, missing, broken, awaiting_analysis, unknown).
GET /v1/plan/keywords/{id}/brief
Section titled “GET /v1/plan/keywords/{id}/brief”Scope plan:read. A deterministic Markdown brief (text/markdown; charset=utf-8): the site’s niche, the keyword, intent, role and the internal links to write and to expect. {id} is the keyword id from GET /v1/plan.
curl https://api.canverly.com/v1/plan/keywords/01KAAAAAAAAAAAAAAAAAAAAAA1/brief \ -H "Authorization: Bearer ck_live_xxx"The brief does not replace the editorial briefing or the site’s writing guide: it only says what to write and whom to link.
PATCH /v1/plan/keywords/{id}
Section titled “PATCH /v1/plan/keywords/{id}”Scope plan:write. Links a post to the keyword or releases the link; nothing else about the keyword changes here.
curl -X PATCH https://api.canverly.com/v1/plan/keywords/01KAAAAAAAAAAAAAAAAAAAAAA1 \ -H "Authorization: Bearer ck_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "post_id": "01J8ZQ7X4K2N5M9P0R3T6V8W1Y" }'{ "post_id": "<ULID>" }links;{ "post_id": null }releases.- The post must belong to the same site (
422 PLAN_INVALID,error.reason: "post_de_outro_site"). - The API reads the SEO service’s optimistic version for you and, on a conflict, re-reads and retries once. A second collision returns
409 PLAN_CONFLICT: try again. - The write is attributed to the key’s author and organization. It returns the updated keyword.
GET /v1/seo/backlog
Section titled “GET /v1/seo/backlog”Scope seo:read. The site’s posts with the stored score (from the last calculation; for the score right now use GET …/seo/score), how many points are missing, the easy gain and the top three suggestions.
curl "https://api.canverly.com/v1/seo/backlog?order=easiest&limit=20" \ -H "Authorization: Bearer ck_live_xxx"| Parameter | Notes |
|---|---|
order |
easiest (default; most easy points first), missing (lowest score first) or score (highest first). |
below |
Only scores under N (1 to 100). |
limit |
1 to 200 (default 50). |
cursor |
The next_cursor of the previous page. |
Response: { "items": [...], "next_cursor": string | null }. Each item: post_id, title, slug, post_status, score, band (green, yellow, red, empty, unknown), missing, easy_gain (null while the score awaits recalculation), has_focus and top_suggestions[] (id, title, points_gain, effort; hint is empty here, fetch it from …/seo/score). title and slug may be null if the content service did not answer.
Errors
Section titled “Errors”| Status | error.code |
When |
|---|---|---|
400 |
bad_request |
Invalid PATCH body (unknown field, wrong type). |
401 / 403 |
unauthorized / forbidden |
Invalid key; missing plan:read, plan:write or seo:read. |
404 |
PLAN_NOT_AVAILABLE |
The planner is not on for the site. |
404 |
PLAN_KEYWORD_NOT_FOUND |
The id is not in the plan. |
409 |
PLAN_CONFLICT |
The keyword changed twice during the call. Retry. |
422 |
INVALID_PARAMETER |
Invalid parameter; error.field names it. |
422 |
PLAN_INVALID |
Invalid link (for example a post from another site). |
429 |
rate_limited |
Over the limit — honour Retry-After. |
503 |
PLAN_UNAVAILABLE / SEO_BACKLOG_UNAVAILABLE |
The SEO service did not answer. Retry; the rest of the API is unaffected. |
Data sources, briefing and keyword selector
Section titled “Data sources, briefing and keyword selector”Four read-only routes (scope plan:read) for content generators. Sources and the briefing are edited in the planner screen. Same limits and Cache-Control: private, no-store as the rest of this page.
The four source classes
Section titled “The four source classes”| Class | Meaning | What the writer does |
|---|---|---|
oficial |
Group sites and regulatory sources (agencies, standards, primary bodies). | Must cite at least one when the site has an official source. |
preferencial |
Commercial partners and references. | Prioritizes them. |
padrao |
Any domain without a rule that is not banned. | Suggestion; may be used. |
vetada |
Direct competitors. | Never cites or links, even if the page was read for research. If a point rests only on a banned source, find another source for the same point and cite that. |
Precedence: vetada always wins (global, niche and site). Without a ban, the most specific scope wins (site, niche, global). Suggested order: oficial, preferencial, padrao.
GET /v1/plan/sources
Section titled “GET /v1/plan/sources”Returns { official_required, niches, sources: [{ domain, class, scope, note }] }, one resolved row per domain. scope is global, niche or site.
POST /v1/plan/sources/check
Section titled “POST /v1/plan/sources/check”Writes nothing. Body { "urls": ["https://…", "example.com"] } (1 to 200). Each item returns class, reason and, for vetada, action: "substituir_por_outra_fonte". problems flags fonte_vetada and sem_fonte_oficial (the site has an official source and no URL in the article is official); approved is true with no problems.
GET /v1/plan/keywords/{id}/briefing
Section titled “GET /v1/plan/keywords/{id}/briefing”The structured briefing of the item, deterministic (no language model): objective, audience, primary and secondary keywords, intent, angle, nao_canibaliza, suggested H2s, questions, sources (required official, preferred, banned with the instruction to find another source), tone, writing rules, a 1,600-word goal and SEO score 85. Manual edits in the screen override the generated fields. ?format=md returns text/markdown.
POST /v1/plan/keyword-candidates and POST /v1/plan/keywords/{id}/candidates
Section titled “POST /v1/plan/keyword-candidates and POST /v1/plan/keywords/{id}/candidates”The selector: the site’s plan keywords plus the informed terms ([{ "term": "…", "volume": 900 }], volume optional and manual; no paid service is queried), each with inferred intent, duplicate_in_site and used_in (briefings that already chose it). Collisions across the organization’s sites appear only in the screen.
MCP tools
Section titled “MCP tools”The API ships no MCP server. To plug an MCP client, expose the same operations with a ck_ key kept on the server (never in the client): planner_sources → GET /v1/plan/sources; planner_check_links → POST /v1/plan/sources/check; planner_briefing → GET /v1/plan/keywords/{id}/briefing; planner_keywords → POST /v1/plan/keyword-candidates.