Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 0 additions & 2 deletions apify-api/openapi/components/objects/datasets/dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ sharedTaskLastRun: &sharedTaskLastRun
sharedGet: &sharedGet
responses:
<<: [*common200, *commonErrors]
"402":
$ref: ../../responses/PaymentRequired.yaml
deprecated: false

getById:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ sharedTagTaskLastRun: &sharedTagTaskLastRun
sharedGet: &sharedGet
responses:
<<: *commonErrors
"402":
$ref: ../../responses/PaymentRequired.yaml
"200":
description: ""
headers: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ sharedTagTaskLastRun: &sharedTagTaskLastRun
sharedGet: &sharedGet
responses:
<<: *commonErrors
"402":
$ref: ../../responses/PaymentRequired.yaml
"200":
description: ""
headers: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ sharedTaskLastRun: &sharedTaskLastRun
sharedGet: &sharedGet
responses:
<<: [*common200, *commonErrors]
"402":
$ref: ../../responses/PaymentRequired.yaml
deprecated: false

getById:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ sharedGet: &sharedGet
application/json:
schema:
$ref: ../../schemas/request-queues/RequestQueueHeadResponse.yaml
"402":
$ref: ../../responses/PaymentRequired.yaml
<<: *commonErrors
deprecated: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ sharedGet: &sharedGet
application/json:
schema:
$ref: ../../schemas/request-queues/RequestResponse.yaml
"402":
$ref: ../../responses/PaymentRequired.yaml
<<: *commonErrors
deprecated: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ sharedGet: &sharedGet
application/json:
schema:
$ref: ../../schemas/request-queues/ListOfRequestsResponse.yaml
"402":
$ref: ../../responses/PaymentRequired.yaml
<<: *commonErrors
deprecated: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ sharedTaskLastRun: &sharedTaskLastRun
sharedGet: &sharedGet
responses:
<<: [*common200, *commonErrors]
"402":
$ref: ../../responses/PaymentRequired.yaml
deprecated: false

getById:
Expand Down
6 changes: 3 additions & 3 deletions apify-api/openapi/components/responses/PaymentRequired.yaml
Original file line number Diff line number Diff line change
@@ -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 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:
$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: "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

16 changes: 0 additions & 16 deletions apify-api/openapi/components/schemas/common/ErrorType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ example:
currentPricingInfo:
pricingModel: FREE
isVerified: true
isWhiteListedForAgenticPayments: true
- id: zdc3Pyhyz3m8vjDeM
title: My Public Actor
name: my-public-actor
Expand All @@ -59,4 +58,3 @@ example:
currentPricingInfo:
pricingModel: FREE
isVerified: false
isWhiteListedForAgenticPayments: false
3 changes: 0 additions & 3 deletions apify-api/openapi/components/schemas/store/StoreActor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ properties:
description: The number of reviews the Actor has received in Apify Store.
currentPricingInfo:
$ref: ./CurrentPricingInfo.yaml
isWhiteListedForAgenticPayments:
type: [boolean, "null"]
description: Whether the Actor is whitelisted for agentic payment processing.
isVerified:
type: boolean
description: Whether the Actor's developer has a verified identity.
Expand Down
16 changes: 5 additions & 11 deletions apify-api/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/integrations/x402),
the [Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp),
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
`Bearer` token.
Expand Down
10 changes: 0 additions & 10 deletions apify-api/openapi/paths/store/store.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,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: |
Expand Down
Loading