Repository navigation
docs(openapi): remove agentic payments from the API spec - #3250
Open
RobertCrupa wants to merge 4 commits into
Open
RobertCrupa wants to merge 4 commits into
RobertCrupa wants to merge 4 commits into
Conversation
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
Contributor
|
❌ Preview build for this PR (commit |
Contributor
|
API behavior and specification alignment:
Reviewed commit: 571275b |
RobertCrupa
commented
Nov 20, 2026
| 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." |
Author
There was a problem hiding this comment.
This doesn't sound right to me
RobertCrupa
marked this pull request as ready for review
November 20, 2026 01:02
RobertCrupa
requested review from
fnesveda,
janbuchar and
szaganek
as code owners
November 20, 2026 01:02
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
Contributor
|
API behavior and specification alignment:
Reviewed commit: c019c6b |
jirispilka
approved these changes
Nov 20, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EntuVfiAwsSkSU8twE1LM
Contributor
|
API behavior and specification alignment: Aligned. Reviewed commit: 0cc9d3c |
Pijukatel
approved these changes
Nov 25, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Apify API no longer accepts x402 or Skyfire payment headers, and the Store no longer has the
allowsAgenticUsersfilter or theisWhiteListedForAgenticPaymentsfield (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
allowsAgenticUsersuntil its release.Details:
openapi.yamlno longer describes the payment-header flow. It keeps the AGI flow.actor-memory-limit-exceeded).apify-client-pythondrops the removed error types at its next regeneration from the spec.Checks:
openapi:lintandopenapi:buildare valid with the same warnings as on master, andtest:api-pathspasses. 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