Skip to content

docs(openapi): remove agentic payments from the API spec - #3250

Open
RobertCrupa wants to merge 4 commits into
masterfrom
docs/remove-agentic-payments-from-api-and-mcp
Open

RobertCrupa wants to merge 4 commits into
masterfrom
docs/remove-agentic-payments-from-api-and-mcp

Conversation

@RobertCrupa

Copy link
Copy Markdown

The Apify API no longer accepts x402 or Skyfire payment headers, and the Store no longer has the allowsAgenticUsers filter or the isWhiteListedForAgenticPayments field (apify/apify-core#33354 to #33357, apify/apify-mcp-server#1940). This PR removes them from the OpenAPI spec, together with the 16 agentic error types and the x402 use of the 402 response. The AGI prepaid token docs stay.

Merge only after those PRs are live in production. The API checks requests against the published spec in soft-fail mode, and the MCP server sends allowsAgenticUsers until its release.

Details:

  • The "Agentic payments" intro in openapi.yaml no longer describes the payment-header flow. It keeps the AGI flow.
  • The 402 response stays on runs, run-sync, builds, resurrect, task runs and dataset items, where the API returns it for plan limits and locked datasets. It is removed from the other storage read operations, where docs(openapi): Autofix OpenAPI spec validation errors #2754 added it only for x402 payment reuse.
  • The 402 description and example now match what the API returns (actor-memory-limit-exceeded).
  • No prose page changes. docs: Point API payments to AGI #3179 and docs: add card payments to the agentic payments pages #3223 already point all pages to AGI. A reviewer read the agent, MCP and integration pages and found no sentence that the removal makes false.
  • apify-client-python drops the removed error types at its next regeneration from the spec.

Checks: openapi:lint and openapi:build are valid with the same warnings as on master, and test:api-paths passes. An independent adversarial review compared each change with the apify-core source after the removal.

AI disclosure: prepared and reviewed by Claude Code agents, supervised by @RobertCrupa.

https://claude.ai/code/session_01MZ3i8rUZiZMRBjMAEsLGjP

The Apify API no longer accepts x402 or Skyfire payment headers, and the
Store no longer marks Actors for agentic payments.

- Remove the `allowsAgenticUsers` query parameter of `GET /v2/store` and the
  `isWhiteListedForAgenticPayments` field of Store items.
- Remove the 16 agentic payment error types from `ErrorType`.
- Restore the usage-limit description and example of the 402 response.
  The 402 stays for usage limits and missing credits.
- Keep the AGI prepaid token flow in the introduction, drop the
  payment-header flow.

Claude-Session: https://claude.ai/code/session_01MZ3i8rUZiZMRBjMAEsLGjP
#2754 added the 402 response to the shared GET blocks of datasets,
key-value stores and request queues because a reused x402 payment could
answer 402 on any route. Without agentic payments, storage reads no longer
return 402. Dataset items keep it for `dataset-locked`.

Also make the 402 description list the real causes, and use the API's
message for `actor-memory-limit-exceeded` in the example.

Claude-Session: https://claude.ai/code/session_01MZ3i8rUZiZMRBjMAEsLGjP
@RobertCrupa RobertCrupa self-assigned this Nov 20, 2026
@apify-service-account

apify-service-account commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

❌ Preview build for this PR (commit c019c6b) failed. See action run for details.

@apify-service-account

Copy link
Copy Markdown
Contributor

API behavior and specification alignment:

Reviewed commit: 571275b

type: x402-payment-required
message: Please provide X402-PAYMENT-SIGNATURE header with the payment. See https://x402.org.
type: actor-memory-limit-exceeded
message: "By launching this job you will exceed the memory limit of 8192MB for all your Actor runs and builds (currently used: 8192MB, requested: 1024MB). Please consider an upgrade to a paid plan at https://console.apify.com/billing/subscription to increase your Actor memory limit."

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't sound right to me

@RobertCrupa
RobertCrupa marked this pull request as ready for review November 20, 2026 01:02
@janbuchar
janbuchar removed their request for review November 20, 2026 05:47
The x402 and Skyfire links in the "Agentic payments" intro used
/platform/integrations/..., which only resolves through a 301 redirect.
Their pages have the slugs /integrations/x402 and /integrations/skyfire,
the same form the MPP link already uses.

The 402 description listed "remaining monthly usage" as a plan limit.
apify-core returns not-enough-usage-to-run-paid-actor only for runs of
paid Actors, so the description now says that. It also says that the
dataset is locked, which is what the dataset-locked error means.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018EntuXPTRhs2S7qpHooZwK
@apify-service-account

Copy link
Copy Markdown
Contributor

API behavior and specification alignment:

Reviewed commit: c019c6b

@apify-service-account

Copy link
Copy Markdown
Contributor

API behavior and specification alignment: Aligned.

Reviewed commit: 0cc9d3c

This branch has not been deployed

No deployments
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.

5 participants