You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace undocumented /v2/acts examples with OpenAPI routes #2804
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.
changed the title [-]Replace undocumented examples with OpenAPI routes[/-][+]Replace undocumented `/v2/acts` examples with OpenAPI routes[/+]on Jul 23, 2026
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.
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.
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-internalproxy-benchmarking.md (internal curl snippet).
pnpm test:api-paths guards regressions in this repo on every PR.
Activity
[-]Replace undocumented examples with OpenAPI routes[/-][+]Replace undocumented `/v2/acts` examples with OpenAPI routes[/+]webrdaniel commentedon Jul 28, 2026
This is relevant, let's check it before proceeding with this: https://apify.slack.com/archives/CQ96RHG2U/p1785161648015039
marekh19 commentedon Aug 3, 2026
agents.md,auth.md).pnpm test:api-pathsfails any/v2route insources/that's missing from the spec or marked deprecated. Runs on every PR./v2/actors/{actorId}/runs/{runId}. Fixed.agentic-actor-dev-eval(moves baselines),awesome-skills(unmaintained), stale example Actors. apify-cli is clean.marekh19 commentedon Aug 3, 2026
Suggest dropping AC 3. An
<ApiRoute>MDX component doesn't render in per-page.mdorllms-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.docs: replace legacy /v2/acts routes with canonical /v2/actors paths (#…
marekh19 commentedon Aug 4, 2026
Closing. AC 1, 2, 4, 5 done; AC 3 dropped per rationale above.
sync-platforms.ymlopened 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.src/commands/api.tsuses"acts", "v2/acts", "/v2/acts"as the path-syntax example inapify api --help, propagating todocs/reference.md+ 3versioned_docscopies. Two source strings, illustrative not prescriptive - skipping, low impact.agent-skills-internalproxy-benchmarking.md(internal curl snippet).pnpm test:api-pathsguards regressions in this repo on every PR.