Skip to content

Site editorial briefing

The briefing is what the site owner wants the content to follow: who it is written for, in what tone, what the site never covers, which sources to cite. Anyone who writes or rewrites articles through the API (person, robot or agent) should read the briefing before writing and treat it as a constraint, not a suggestion.

  • URL: https://api.canverly.com/v1/sites/me/briefing
  • Auth: Bearer API key — GET with sites:read; PUT with site:write
  • Max PUT body: 32 KiB
  • Rate limit: 60 req/min per key
  • Cache: responses carry Cache-Control: private, no-store
Janela do terminal
curl https://api.canverly.com/v1/sites/me/briefing \
-H "Authorization: Bearer ck_live_xxx"

A site with no briefing answers 200 with version: 0, empty texts and empty lists. Treat version: 0 as “no guidance from the owner”: do not invent an audience or tone; ask the site owner for the briefing.

Field Type Limit Notes
audience string 1000 Who the content is for.
tone string 600 Voice and tone.
goal string 600 What the site wants from its content (leads, ad revenue, authority…).
skill_module string 40, ^[a-z0-9-]+$ Writing-guide module slug, for example financas, saude-beleza, negocios.
pillars string[] 10 × 120 Content pillars.
banned_topics string[] 30 × 120 Topics the site never covers.
editorial_rules string[] 30 × 300 Rules: required disclaimers, terms to avoid.
glossary object[] 50 { "term" (up to 80), "usage" (up to 300, may be empty) }.
trusted_sources object[] 20 { "name" (up to 120), "url" (https, up to 300) }: sources to cite.
competitors object[] 20 { "name", "url" }.
default_cta string 300 Default call to action.
key_pages object[] 20 { "title" (up to 120), "url" (relative path or http(s), up to 300) }.
region string 60 Region of interest.
notes string 2000 Free notes.
version integer — 0 = the site has no briefing yet.
updated_at string | null — Last save.

Replaces the whole briefing: a missing or empty field is cleared. Send the version you read; if someone saved in between, the answer is 409 BRIEFING_CONFLICT with error.current_version. Plain text only, never HTML; an unknown field is a 422.

Janela do terminal
curl -X PUT https://api.canverly.com/v1/sites/me/briefing \
-H "Authorization: Bearer ck_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"version": 3,
"audience": "People comparing payroll loans",
"tone": "Clear, no jargon, no promise of results",
"skill_module": "financas",
"pillars": ["payroll-loans", "portability"],
"banned_topics": ["cryptocurrency"],
"trusted_sources": [{ "name": "Central Bank", "url": "https://www.bcb.gov.br" }]
}'

It returns the saved briefing. The change is attributed to the key’s author: a key with no author gets 403 BRIEFING_NO_AUTHOR.

Status error.code When
400 bad_request The PUT body is not valid JSON.
401 unauthorized Missing/invalid/revoked key.
403 forbidden The key lacks the scope (sites:read for GET, site:write for PUT).
403 BRIEFING_NO_AUTHOR PUT with a key that has no author.
409 BRIEFING_CONFLICT Stale version; error.current_version has the current one. Re-read, reapply, retry.
413 BRIEFING_TOO_LARGE Body over 32 KiB.
422 BRIEFING_INVALID Unknown field or value over its limit; error.field names it.
429 rate_limited Over the limit — honour Retry-After.
503 BRIEFING_UNAVAILABLE The sites service did not answer. Retry; the rest of the API is unaffected.