From 9b1afedfde20499f9293fabd6d063ce17489337f Mon Sep 17 00:00:00 2001 From: Robert-George Crupa Date: Fri, 20 Nov 2026 01:40:52 +0100 Subject: [PATCH 1/3] docs(openapi): remove agentic payments from the API spec 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 --- .../components/responses/PaymentRequired.yaml | 6 +++--- .../components/schemas/common/ErrorType.yaml | 16 ---------------- .../schemas/store/ListOfStoreActorsResponse.yaml | 2 -- .../components/schemas/store/StoreActor.yaml | 3 --- apify-api/openapi/openapi.yaml | 16 +++++----------- apify-api/openapi/paths/store/store.yaml | 10 ---------- 6 files changed, 8 insertions(+), 45 deletions(-) diff --git a/apify-api/openapi/components/responses/PaymentRequired.yaml b/apify-api/openapi/components/responses/PaymentRequired.yaml index 32bd44ebdd..845dd7f4d2 100644 --- a/apify-api/openapi/components/responses/PaymentRequired.yaml +++ b/apify-api/openapi/components/responses/PaymentRequired.yaml @@ -1,9 +1,9 @@ -description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials. +description: Payment required - the user has exceeded their usage limit or does not have enough credits. content: application/json: schema: $ref: ../schemas/common/ErrorResponse.yaml example: error: - type: x402-payment-required - message: Please provide X402-PAYMENT-SIGNATURE header with the payment. See https://x402.org. + type: actor-memory-limit-exceeded + message: You have exceeded your usage limit. Please consider upgrading your plan. diff --git a/apify-api/openapi/components/schemas/common/ErrorType.yaml b/apify-api/openapi/components/schemas/common/ErrorType.yaml index 17ce3010f4..8c3e7f5248 100644 --- a/apify-api/openapi/components/schemas/common/ErrorType.yaml +++ b/apify-api/openapi/components/schemas/common/ErrorType.yaml @@ -15,16 +15,9 @@ enum: - actor-not-found - actor-not-github-actor - actor-not-public - - actor-permission-level-not-supported-for-agentic-payments - actor-review-already-exists - actor-run-failed - - actor-standby-not-supported-for-agentic-payments - actor-task-name-not-unique - - agentic-payment-info-retrieval-error - - agentic-payment-information-missing - - agentic-payment-insufficient-amount - - agentic-payment-provider-internal-error - - agentic-payment-provider-unauthorized - airtable-webhook-deprecated - already-subscribed-to-paid-actor - apify-plan-required-to-use-paid-actor @@ -357,7 +350,6 @@ enum: - unknown-build-tag - unknown-payment-provider - unsubscribe-token-invalid - - unsupported-actor-pricing-model-for-agentic-payments - unsupported-content-encoding - unsupported-file-type-for-issue - unsupported-file-type-image-expected @@ -397,12 +389,4 @@ enum: - version-already-exists - versions-size-exceeded - weak-password - - x402-agentic-payment-already-finalized - - x402-agentic-payment-insufficient-amount - - x402-agentic-payment-malformed-token - - x402-agentic-payment-settlement-failed - - x402-agentic-payment-settlement-in-progress - - x402-agentic-payment-settlement-stuck - - x402-agentic-payment-unauthorized - - x402-payment-required - zero-invoice diff --git a/apify-api/openapi/components/schemas/store/ListOfStoreActorsResponse.yaml b/apify-api/openapi/components/schemas/store/ListOfStoreActorsResponse.yaml index 11c2600e0a..4253ac2c2b 100644 --- a/apify-api/openapi/components/schemas/store/ListOfStoreActorsResponse.yaml +++ b/apify-api/openapi/components/schemas/store/ListOfStoreActorsResponse.yaml @@ -33,7 +33,6 @@ example: lastRunStartedAt: "2019-07-08T14:01:05.546Z" currentPricingInfo: pricingModel: FREE - isWhiteListedForAgenticPayments: true - id: zdc3Pyhyz3m8vjDeM title: My Public Actor name: my-public-actor @@ -57,4 +56,3 @@ example: lastRunStartedAt: "2019-07-08T14:01:05.546Z" currentPricingInfo: pricingModel: FREE - isWhiteListedForAgenticPayments: false diff --git a/apify-api/openapi/components/schemas/store/StoreActor.yaml b/apify-api/openapi/components/schemas/store/StoreActor.yaml index 16acdde952..47eb8f2467 100644 --- a/apify-api/openapi/components/schemas/store/StoreActor.yaml +++ b/apify-api/openapi/components/schemas/store/StoreActor.yaml @@ -49,9 +49,6 @@ properties: $ref: ../actors/ActorStats.yaml currentPricingInfo: $ref: ./CurrentPricingInfo.yaml - isWhiteListedForAgenticPayments: - type: [boolean, "null"] - description: Whether the Actor is whitelisted for agentic payment processing. actorReviewCount: type: integer examples: [69] diff --git a/apify-api/openapi/openapi.yaml b/apify-api/openapi/openapi.yaml index 649b0d9640..e59df1bf6b 100644 --- a/apify-api/openapi/openapi.yaml +++ b/apify-api/openapi/openapi.yaml @@ -72,17 +72,11 @@ info: ### Agentic payments - AI agents can authenticate and pay for Actor runs without an Apify account - using agentic payments. Instead of an API token, the request carries a - payment credential that both authorizes and pays for the call. Apify supports - the [x402 protocol](https://docs.apify.com/platform/integrations/x402) - (`PAYMENT-SIGNATURE` header) and - [Skyfire](https://docs.apify.com/platform/integrations/skyfire) - (`skyfire-pay-id` header). - - Agents can also pay once with x402 or the - [Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp) - and receive a temporary API token with a fixed spend cap from the Apify + AI agents can pay for Actor runs without an Apify account. An agent pays + once with the [x402 protocol](https://docs.apify.com/platform/integrations/x402), + the [Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp), + a card, or [Skyfire](https://docs.apify.com/platform/integrations/skyfire), + and receives a temporary API token with a fixed spend cap from the Apify Agent General Interface (AGI) at [https://agi.apify.com](https://agi.apify.com). Use that token as a regular `Bearer` token. diff --git a/apify-api/openapi/paths/store/store.yaml b/apify-api/openapi/paths/store/store.yaml index 2c0a6ef6af..169d738e2e 100644 --- a/apify-api/openapi/paths/store/store.yaml +++ b/apify-api/openapi/paths/store/store.yaml @@ -63,16 +63,6 @@ get: - PRICE_PER_DATASET_ITEM - PAY_PER_EVENT example: FREE - - name: allowsAgenticUsers - in: query - description: | - If true, only return Actors that allow agentic users. If false, only - return Actors that do not allow agentic users. - style: form - explode: true - schema: - type: boolean - example: true - name: responseFormat in: query description: | From 571275b6ebe23118525348558d066e845682e411 Mon Sep 17 00:00:00 2001 From: Robert-George Crupa Date: Fri, 20 Nov 2026 01:48:28 +0100 Subject: [PATCH 2/3] docs(openapi): remove x402 402 responses from storage reads #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 --- .../components/objects/datasets/dataset-statistics.yaml | 2 -- apify-api/openapi/components/objects/datasets/dataset.yaml | 2 -- .../objects/key-value-stores/key-value-store-keys.yaml | 2 -- .../objects/key-value-stores/key-value-store-record.yaml | 2 -- .../components/objects/key-value-stores/key-value-store.yaml | 2 -- .../components/objects/request-queues/request-queue-head.yaml | 2 -- .../objects/request-queues/request-queue-request.yaml | 2 -- .../objects/request-queues/request-queue-requests.yaml | 2 -- .../components/objects/request-queues/request-queue.yaml | 2 -- apify-api/openapi/components/responses/PaymentRequired.yaml | 4 ++-- 10 files changed, 2 insertions(+), 20 deletions(-) diff --git a/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml b/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml index aa0145c665..95a22688a6 100644 --- a/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml +++ b/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml @@ -10,8 +10,6 @@ sharedGet: &sharedGet $ref: ../../responses/BadRequest.yaml "401": $ref: ../../responses/Unauthorized.yaml - "402": - $ref: ../../responses/PaymentRequired.yaml "403": $ref: ../../responses/Forbidden.yaml "404": diff --git a/apify-api/openapi/components/objects/datasets/dataset.yaml b/apify-api/openapi/components/objects/datasets/dataset.yaml index 56e74faf00..64f8019cce 100644 --- a/apify-api/openapi/components/objects/datasets/dataset.yaml +++ b/apify-api/openapi/components/objects/datasets/dataset.yaml @@ -53,8 +53,6 @@ sharedTaskLastRun: &sharedTaskLastRun sharedGet: &sharedGet responses: <<: [*common200, *commonErrors] - "402": - $ref: ../../responses/PaymentRequired.yaml deprecated: false getById: diff --git a/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml b/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml index 922fd640de..c65f90a710 100644 --- a/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml +++ b/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml @@ -35,8 +35,6 @@ sharedTagTaskLastRun: &sharedTagTaskLastRun sharedGet: &sharedGet responses: <<: *commonErrors - "402": - $ref: ../../responses/PaymentRequired.yaml "200": description: "" headers: {} diff --git a/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml b/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml index 6d72b2639a..29efdc5b6a 100644 --- a/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml +++ b/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml @@ -35,8 +35,6 @@ sharedTagTaskLastRun: &sharedTagTaskLastRun sharedGet: &sharedGet responses: <<: *commonErrors - "402": - $ref: ../../responses/PaymentRequired.yaml "200": description: "" headers: {} diff --git a/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml b/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml index 1e8f8c6ab8..cb523b9545 100644 --- a/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml +++ b/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml @@ -53,8 +53,6 @@ sharedTaskLastRun: &sharedTaskLastRun sharedGet: &sharedGet responses: <<: [*common200, *commonErrors] - "402": - $ref: ../../responses/PaymentRequired.yaml deprecated: false getById: diff --git a/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml b/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml index 74e9a24dea..c6790d129a 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml @@ -41,8 +41,6 @@ sharedGet: &sharedGet application/json: schema: $ref: ../../schemas/request-queues/RequestQueueHeadResponse.yaml - "402": - $ref: ../../responses/PaymentRequired.yaml <<: *commonErrors deprecated: false diff --git a/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml b/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml index ddf79b88a2..4608462235 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml @@ -37,8 +37,6 @@ sharedGet: &sharedGet application/json: schema: $ref: ../../schemas/request-queues/RequestResponse.yaml - "402": - $ref: ../../responses/PaymentRequired.yaml <<: *commonErrors deprecated: false diff --git a/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml b/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml index 6fe9a4c61b..9952eb1c55 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml @@ -41,8 +41,6 @@ sharedGet: &sharedGet application/json: schema: $ref: ../../schemas/request-queues/ListOfRequestsResponse.yaml - "402": - $ref: ../../responses/PaymentRequired.yaml <<: *commonErrors deprecated: false diff --git a/apify-api/openapi/components/objects/request-queues/request-queue.yaml b/apify-api/openapi/components/objects/request-queues/request-queue.yaml index 287a7be006..b80a3c1edf 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue.yaml @@ -53,8 +53,6 @@ sharedTaskLastRun: &sharedTaskLastRun sharedGet: &sharedGet responses: <<: [*common200, *commonErrors] - "402": - $ref: ../../responses/PaymentRequired.yaml deprecated: false getById: diff --git a/apify-api/openapi/components/responses/PaymentRequired.yaml b/apify-api/openapi/components/responses/PaymentRequired.yaml index 845dd7f4d2..4eea93ea92 100644 --- a/apify-api/openapi/components/responses/PaymentRequired.yaml +++ b/apify-api/openapi/components/responses/PaymentRequired.yaml @@ -1,4 +1,4 @@ -description: Payment required - the user has exceeded their usage limit or does not have enough credits. +description: Payment required - the request exceeds a plan limit (Actor memory, concurrent runs, or remaining monthly usage), or the dataset owner has unpaid invoices or has exceeded their usage limit. content: application/json: schema: @@ -6,4 +6,4 @@ content: example: error: type: actor-memory-limit-exceeded - message: You have exceeded your usage limit. Please consider upgrading your plan. + 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." From c019c6b6d20e45b1265e3eb3fbe7ae9b0602f1e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 12:17:29 +0000 Subject: [PATCH 3/3] docs(openapi): fix integration links and 402 description 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 Claude-Session: https://claude.ai/code/session_018EntuXPTRhs2S7qpHooZwK --- apify-api/openapi/components/responses/PaymentRequired.yaml | 2 +- apify-api/openapi/openapi.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apify-api/openapi/components/responses/PaymentRequired.yaml b/apify-api/openapi/components/responses/PaymentRequired.yaml index 4eea93ea92..c0fb545534 100644 --- a/apify-api/openapi/components/responses/PaymentRequired.yaml +++ b/apify-api/openapi/components/responses/PaymentRequired.yaml @@ -1,4 +1,4 @@ -description: Payment required - the request exceeds a plan limit (Actor memory, concurrent runs, or remaining monthly usage), or the dataset owner has unpaid invoices or has exceeded their usage limit. +description: Payment required - the request exceeds a plan limit (Actor memory or concurrent runs), the user does not have enough remaining usage to run a paid Actor, or the dataset is locked because its owner has overdue invoices or has reached their monthly usage limit. content: application/json: schema: diff --git a/apify-api/openapi/openapi.yaml b/apify-api/openapi/openapi.yaml index e59df1bf6b..ee3cf88b22 100644 --- a/apify-api/openapi/openapi.yaml +++ b/apify-api/openapi/openapi.yaml @@ -73,9 +73,9 @@ info: ### Agentic payments AI agents can pay for Actor runs without an Apify account. An agent pays - once with the [x402 protocol](https://docs.apify.com/platform/integrations/x402), + once with the [x402 protocol](https://docs.apify.com/integrations/x402), the [Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp), - a card, or [Skyfire](https://docs.apify.com/platform/integrations/skyfire), + a card, or [Skyfire](https://docs.apify.com/integrations/skyfire), and receives a temporary API token with a fixed spend cap from the Apify Agent General Interface (AGI) at [https://agi.apify.com](https://agi.apify.com). Use that token as a regular