Skip to content

Replace undocumented /v2/acts examples with OpenAPI routes #2804

Closed

Description

@webrdaniel

Note

This issue was AI-generated based on an AI analysis of Apify’s agent-facing contracts.

Current problem

Official agent onboarding, Actor-page examples, agents.md, and official Skills still teach /v2/acts routes. Those aliases currently respond, but they are absent from the public OpenAPI contract, which defines /v2/actors and /v2/actor-runs. Agents that validate or generate integrations from OpenAPI therefore receive a different contract from agents that copy official examples.

Why this reduces adoption and usage

  • Agents that copy official examples generate integrations different from clients generated from OpenAPI.
  • Validation, SDK generation, and troubleshooting become less reliable because the documented and machine-readable contracts disagree.
  • Even when the legacy alias works, teams may reject it as unsupported or incur migration work later, reducing confidence in production adoption.
  • The mismatch is repeated across many surfaces, increasing the chance that an agent selects the wrong route.

Desired state

Every newly generated agent instruction uses routes and operation IDs from the public OpenAPI contract.

Acceptance criteria

  • Update onboarding Actor operations to /v2/actors/{actorId} and run status to /v2/actor-runs/{runId}.
  • Inventory and update affected docs, web snippets, Skills, plugins, and CLI help through linked follow-ups or coordinated PRs.
  • Generate shared snippets from OpenAPI operation IDs instead of copied route strings.
  • Add CI that fails when a documented api.apify.com/v2 path is absent from current OpenAPI.
  • Treat /v2/acts only as an explicitly documented compatibility alias, if it must remain.

Priority: P0. Estimated effort: M.

Activity

  1. changed the title [-]Replace undocumented examples with OpenAPI routes[/-] [+]Replace undocumented `/v2/acts` examples with OpenAPI routes[/+] on Jul 23, 2026
  2. added
    t-acquisition
    on Jul 23, 2026
  3. webrdaniel commented on Jul 28, 2026

    @webrdaniel
    ContributorAuthor

    This is relevant, let's check it before proceeding with this: https://apify.slack.com/archives/CQ96RHG2U/p1785161648015039

  4. marekh19 commented on Aug 3, 2026

    @marekh19
    Member
    • ACs 1, 2, 4, 5 done. docs: replace legacy /v2/acts routes with canonical /v2/actors paths #2832 (docs + CI check), apify-web#6390 (Actor page, agents.md, auth.md).
    • pnpm test:api-paths fails any /v2 route in sources/ that's missing from the spec or marked deprecated. Runs on every PR.
    • It caught a second bug: the API tutorial taught the deprecated /v2/actors/{actorId}/runs/{runId}. Fixed.
    • 123 files across 40 repos still match org-wide. Skipping: 57 eval prompts in agentic-actor-dev-eval (moves baselines), awesome-skills (unmaintained), stale example Actors. apify-cli is clean.
  5. marekh19 commented on Aug 3, 2026

    @marekh19
    Member

    Suggest dropping AC 3. An <ApiRoute> MDX component doesn't render in per-page .md or llms-full.txt, so agents would read <ApiRoute id="actors_runs_post" /> instead of the route - worse for the audience this issue is about. AC 4's check already prevents the drift at commit time.

  6. marekh19 commented on Aug 4, 2026

    @marekh19
    Member

    Closing. AC 1, 2, 4, 5 done; AC 3 dropped per rationale above.

    • Plugins fanned out from apify/apify-plugins-internal#23 (merged) - sync-platforms.yml opened sync PRs in all 7 plugin repos, awaiting maintainer merge. Mirror: fix: use canonical /v2/actors and /v2/actor-runs routes in SDK integration skill agent-skills#77.
    • Correcting my earlier claim: apify-cli is not clean. src/commands/api.ts uses "acts", "v2/acts", "/v2/acts" as the path-syntax example in apify api --help, propagating to docs/reference.md + 3 versioned_docs copies. Two source strings, illustrative not prescriptive - skipping, low impact.
    • Also skipping agent-skills-internal proxy-benchmarking.md (internal curl snippet).
    • pnpm test:api-paths guards regressions in this repo on every PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

t-acquisition

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions