SEO backlog, refresh and focus keyword
Each post’s SEO score is computed by a versioned engine and stored. The backlog lists the posts that have a stored score, from the one that gains most from improvement to the one that gains least. Reference: seo and SEO score.
List the backlog
Section titled “List the backlog”GET /v1/seo/backlog (and /v1/sites/{site}/seo/backlog). Scope seo:read, live read permission.
| Parameter | Rule |
|---|---|
order |
easiest (default), missing or score |
below |
integer from 1 to 100 |
limit |
1 to 200 (default 50) |
cursor |
the next_cursor of the previous page |
status |
current, obsolete or pending |
An invalid value returns 422 INVALID_PARAMETER with field (for example status must be one of: current, obsolete, pending). An empty parameter counts as absent.
{ "items": [{ "post_id": "01J...", "title": "...", "slug": "...", "post_status": "published", "score": 62, "band": "...", "missing": 3, "easy_gain": 14, "has_focus": true, "top_suggestions": [{ "id": "...", "title": "...", "hint": "", "points_gain": 6, "effort": "..." }] }], "next_cursor": null, "total": 41, "coverage": { "posts_total": 120, "scored": 100, "current": 70, "obsolete": 30, "pending": 20, "minimum": 80, "engine_version": "guia-3" }}The item does not expose each score’s state (current, obsolete, pending): the state only appears aggregated in coverage and as the status= filter.
| Field | Meaning |
|---|---|
total |
items that match the filters, across all pages |
coverage.posts_total |
published posts in authoring (null if unknown) |
coverage.scored |
posts with a stored score |
coverage.current |
scores from the current engine with a ready summary |
coverage.obsolete |
scores stored by another engine |
coverage.pending |
max(0, posts_total - scored) plus the current-engine scores with no summary (null if posts_total is unknown) |
coverage.minimum |
minimum score to publish |
coverage.engine_version |
current engine version |
Coverage does not depend on the filters. Failures: 503 SEO_BACKLOG_UNAVAILABLE, or 422 SEO_BACKLOG_INVALID when seo rejects the query.
When to run the refresh
Section titled “When to run the refresh”Run the refresh when coverage.obsolete > 0 (the engine’s ruler changed) or coverage.pending > 0 (posts with no score or no summary). The engine is at VERSAO_MOTOR guia-3. The change from guia-2 to guia-3 marked every score stored by the old engine as obsolete, so after it you need to run the refresh for the backlog to reflect the new engine (the post cover now counts as media; see the section on the cover).
Refresh: POST and GET
Section titled “Refresh: POST and GET”curl -s -X POST https://api.canverly.net/v1/seo/backlog/refresh \ -H "Authorization: Bearer $TOKEN" \ -H "Idempotency-Key: refresh-2026-10-24"Scope seo:analyze (the seo:read package expands to it); live read permission; counts against the read quota. There is no body. Idempotency-Key is optional (1 to 255 visible ASCII characters; an invalid one is 400 bad_request): with the same key, on the same site, the call returns the same job_id.
Success: 202, Cache-Control: no-store, with the job:
{ "job_id": "...", "state": "rodando", "posts_total": 120, "done": 0, "failed": 0, "below_minimum": 0, "complete": false, "error": null, "created_at": "2026-10-24T12:00:00Z", "finished_at": null }Follow it with GET /v1/seo/backlog/refresh/{job_id} (scope seo:read).
| Field | Meaning |
|---|---|
state |
rodando, concluido or falhou (raw seo values); falhou includes a job abandoned after 300 s without a heartbeat |
posts_total |
informational hint (published posts counted by the API; may be null) |
done, failed |
posts processed and failures |
below_minimum |
posts that ended below the minimum score |
complete |
only meaningful in concluido: true = reached the end of the posts; false = stopped at the limit and the next run continues from the cursor. false while rodando |
error |
text of up to 500 characters |
created_at, finished_at |
RFC 3339 |
Job rules: one active run per site; at most one run every 600 seconds; a rodando job with no heartbeat for 300 seconds becomes falhou on the next call; a limit of 2,000 posts per run, in pages of 100. When it hits the limit the job ends concluido with complete: false, and the next run continues from there. The job walks drafts, scheduled and published posts and stores the score; posts_total and coverage count only published posts.
| Status | error.code |
When |
|---|---|---|
| 409 | REFRESH_IN_PROGRESS |
a run is already active on the site; job_id is included (a refresh is already running for this site; poll the job) |
| 429 | REFRESH_TOO_SOON |
the last one was less than 10 minutes ago; job_id, retry_after_seconds (600 if missing) and Retry-After are included |
| 404 | REFRESH_JOB_NOT_FOUND |
job does not exist or belongs to another site (refresh job not found for this site) |
| 422 | INVALID_PARAMETER |
a job_id that is not a UUID, or the refresh request was rejected |
| 503 | SEO_BACKLOG_UNAVAILABLE |
seo down; Retry-After is included |
state is rodando, concluido or falhou; falhou also covers a job abandoned after 300 seconds without a heartbeat. There is one active run per site, one every 600 seconds and a limit of 2,000 posts per run. complete only matters in concluido: true means the walk reached the end of the posts; false means it stopped at the limit and the next run continues from the cursor. While the job is rodando, complete is false.
Focus keyword: ?include=focus_keyword
Section titled “Focus keyword: ?include=focus_keyword”?include=focus_keyword adds the post’s focus to the responses of GET /v1/posts/{ref}, GET /v1/posts/{ref}/source and the authenticated list GET /v1/posts?status=... (the public list, with no status, does not read include).
"focus_keyword": { "primary": "automation with n8n", "secondary": ["n8n webhook"] }The value is null for a post with no focus. Any other include value returns 422 INVALID_PARAMETER, field: "include" (include accepts only: focus_keyword).
| Situation | Result |
|---|---|
the credential has seo:read |
the field is filled |
the credential does not have seo:read |
include is ignored and the response carries warnings: ["SCOPE_REQUIRED:seo:read"]; the read stays 200, never 403 |
| seo down | focus_keyword absent and warnings: ["SEO_FOCUS_UNAVAILABLE"]; never 5xx |
The warning goes on the item (post and source) or just once in the list envelope. The API makes one query to seo per page (the list has at most 50 items). With include, GET /v1/posts/{ref} goes out with Cache-Control: private, no-store. Listing drafts requires posts:drafts:read (the posts:write package covers it, with the flag on) or posts:write (flag off).
Measure a draft: POST /v1/posts/seo/analyze
Section titled “Measure a draft: POST /v1/posts/seo/analyze”POST /v1/posts/seo/analyze computes the score without writing anything. Scope seo:analyze (the seo:read package works). The body is the same as POST /v1/posts; it spends no creation quota and ignores Idempotency-Key. GET /v1/posts/{ref}/seo/score (scope seo:read) computes the score of an already saved post. Both compute live, without depending on the stored score.
The slug is derived from the title when the body does not carry one: the API asks authoring for a slug preview (nothing is reserved) and uses the result. If derivation fails (no secret, network, non-2xx status, response with no slug), the measurement goes on with an empty slug and the response carries warnings: ["SLUG_NOT_DERIVED"].
The response carries inputs_used, which says what went into the calculation:
| Field | Meaning |
|---|---|
slug |
the slug used |
slug_derived |
true if it came from the preview, not the body |
focus_keyword |
true if the body carried a focus |
cover |
true if the body’s featured_image_id was present and not empty |
media_blocks |
image and video blocks in the body (recursive); the cover is not in this counter |
images |
image blocks |
images_without_alt |
images with no attrs.alt or a blank alt |
The cover counts as media
Section titled “The cover counts as media”The post cover (featured_image_id) counts as media in the SEO score. The API passes the id to seo: in analyze, the body’s; in score, the saved post’s. An unreadable id is not sent to seo. The seo rules:
- The cover adds 1 to the
midiacheck (weight 3, text “N media counting the cover”). - A cover repeated in the body (same
media_idor samesrcwithout query) counts once. - The cover’s alt is only evaluated when given (
featured_image_alt). Authoring stores only the id, so the cover’s alt does not enterimagens_alt. - With no cover, the score does not change.
- seo accepts
featured_image_id,featured_image_srcandfeatured_image_alt, all optional.
This moved the engine version to guia-3. Scores stored earlier show up as obsolete in coverage until a refresh. The full score and writing criteria are in SEO and writing criteria.