|
6 | 6 | MCP protocol support, and EU AI Act 2026 compliance. |
7 | 7 |
|
8 | 8 | ## Payment Flow (x402) |
| 9 | + Uses HTTP status 402 Payment Required per RFC 9110 (HTTP Semantics). |
9 | 10 | 1. Request content without `X-PAYMENT` header → receive `402 Payment Required` |
10 | | - 2. Response body contains `accepts` object with price, asset, network, and wallet (price may vary by content URL path when publisher uses route-based pricing) |
| 11 | + 2. Response body contains `accepts` object with price, asset, network, and wallet (price may vary by content URL path when publisher uses route-based pricing). Responses include `Cache-Control: no-store` and must not be cached. |
11 | 12 | 3. Obtain payment proof via the facilitator |
12 | 13 | 4. Retry with `X-PAYMENT: <proof>` header → receive content |
13 | 14 |
|
|
17 | 18 | - `application/ld+json` — JSON-LD article representation |
18 | 19 | - `text/markdown` — Clean markdown extraction |
19 | 20 | - `application/json` — Standard JSON response |
20 | | - version: 0.1.0 |
| 21 | + version: 0.2.0 |
21 | 22 | license: |
22 | 23 | name: Apache 2.0 |
23 | 24 | url: https://www.apache.org/licenses/LICENSE-2.0 |
@@ -52,8 +53,13 @@ paths: |
52 | 53 | - $ref: '#/components/parameters/PaymentHeader' |
53 | 54 | responses: |
54 | 55 | '200': |
55 | | - description: Content successfully retrieved and processed |
| 56 | + description: Content successfully retrieved and processed. Response varies by Accept (Vary: Accept). |
56 | 57 | headers: |
| 58 | + Vary: |
| 59 | + description: Indicates content negotiation by Accept header (RFC 9110) |
| 60 | + schema: |
| 61 | + type: string |
| 62 | + example: Accept |
57 | 63 | X-Data-Origin-Verified: |
58 | 64 | $ref: '#/components/headers/X-Data-Origin-Verified' |
59 | 65 | X-AI-License-Type: |
|
84 | 90 | schema: |
85 | 91 | $ref: '#/components/schemas/UrlBlocked' |
86 | 92 | '402': |
87 | | - description: Payment required — include X-PAYMENT or X-WALLET-TOKEN header |
| 93 | + description: Payment required (RFC 9110). Include X-PAYMENT or X-WALLET-TOKEN. Response includes Cache-Control no-store. |
88 | 94 | content: |
89 | 95 | application/json: |
90 | 96 | schema: |
@@ -187,7 +193,7 @@ paths: |
187 | 193 | example: fairfetch |
188 | 194 | version: |
189 | 195 | type: string |
190 | | - example: 0.1.0 |
| 196 | + example: 0.2.0 |
191 | 197 |
|
192 | 198 | /compliance/optout: |
193 | 199 | get: |
|
0 commit comments