Skip to content

Refresh the OpenAPI specs from the public API docs (DAT-1175) - #5

Merged
mikhail-liubushkin merged 1 commit into
mainfrom
ft/DAT-1175-openapi-refresh
Nov 18, 2026
Merged

mikhail-liubushkin merged 1 commit into
mainfrom
ft/DAT-1175-openapi-refresh

Conversation

@mikhail-liubushkin

@mikhail-liubushkin mikhail-liubushkin commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Brings the specs in line with the public API documentation and adds the three APIs that were missing.

Spec Operations Status
openapi/data-api.{yaml,json} 86 regenerated, version 2.0.0
openapi/project-api.{yaml,json} 121 new
openapi/local-marketing-api.{yaml,json} 15 new
openapi/se-visible-api.{yaml,json} 36 new

Every operation now has:

  • a summary and description from its docs section, plus an externalDocs link to that section;
  • typed path and query parameters with required, defaults and descriptions;
  • a request body schema with the documented example;
  • a 2xx response schema built from the documented response examples, with field descriptions from the Response parameters tables;
  • the documented error responses, plus shared 401/402/403/429 responses with the gateway's {"error_description": "..."} body;
  • the documented curl requests as x-codeSamples.

Authentication is described with two security schemes: the Authorization: Token <key> header (recommended) and the apikey query parameter. They replace the old apikey parameter and its Postman placeholder {{secret_key_data}}.

CI lints all four specs and checks JSON/YAML sync for each. The README lists the four specs and explains authentication.

Compatibility notes for data-api

  • operationIds are unchanged.
  • Tags follow the docs sections. For example, SERP Results > classic is now SERP, backlinks is Backlinks and Account & system is Account System. Generated clients that group by tag will rename classes or modules; this is why the version is bumped to 2.0.0.
  • Parameters the docs do not list were removed:
    • order_by on backlinks/raw;
    • stats and url on domain/competitors;
    • the filters, sort and sort_order on keywords/longtail;
    • limit and offset on site-audit/audits/issues.
  • The single filter[...] parameters on ai-search/prompts-by-* and site-audit/audits/links are replaced by the documented filter parameter.
  • These three operations have no docs section of their own and are kept as they were: GET /v1/backlinks/export/status, GET /v1/ai-search/overview/aggregated/time-series and GET /v1/account/credit-balance.
  • The POST /v1/serp/classic/tasks request schema (expected_serp and its constraints) is kept from Document the SERP task request body and expected_serp (DAT-1175) #3.

Other notes

  • The specs include documented endpoints only.
  • POST /v1/project-management/sites takes a JSON object. The docs example shows an array.
  • Redocly reports one warning, no-ambiguous-paths, on SE Visible. It comes from the API itself: .../projects/{project_id}/prompts/move/{topic_id} and .../projects/{project_id}/prompts/{prompt_id}/results cannot be told apart. The previous data-api had 86 warnings.

Test plan

  • redocly lint on all four specs: valid, 1 warning (above).
  • JSON and YAML in sync for all four specs.
  • Every endpoint documented on the docs pages is in a spec.
  • CI green on this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hqw2DQwrLyJXtdtoxsUQVB

Regenerate data-api from the current documentation and add specs for the
Project API, Local Marketing API and SE Visible API, so the repo covers all
four APIs served from api.seranking.com.

- data-api 2.0.0: 86 operations with typed parameters, request body and
  response schemas, documented errors, curl samples and a link to each docs
  section. operationIds are unchanged; tags follow the docs sections.
- project-api (121 operations), local-marketing-api (15) and
  se-visible-api (36): new.
- Authentication is described as security schemes (Authorization: Token
  header, or the apikey query parameter) instead of a Postman apikey
  parameter.
- Shared 401/402/403/429 responses with the gateway's error body.
- CI lints all four specs and checks JSON/YAML sync for each.
- README lists the four specs and explains authentication.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hqw2DQwrLyJXtdtoxsUQVB
@linear-code

linear-code Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

DAT-1175

DAT-1199

@mikhail-liubushkin
mikhail-liubushkin merged commit c1ea03c into main Nov 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant