Loading...
Loading...
Machine Payment Protocol (MPP) for keyless, pay-per-query access to the Codex Supergraph GraphQL API. Use when the user has no API key and wants to pay per query via the 402 challenge flow at https://graph.codex.io/graphql.
npx skill4agent add codex-data/skills agent-payments| HTTP endpoint | |
| Opt-in header | |
| Credential header | |
X-Codex-Payment: mpp402 Payment RequiredWWW-Authenticate: Payment ...Authorization: Payment <credential>Payment-Receipt403curl -i -sS https://graph.codex.io/graphql \
-H "Content-Type: application/json" \
-H "X-Codex-Payment: mpp" \
--data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'402 Payment RequiredWWW-Authenticate: Payment ...curl -i -sS https://graph.codex.io/graphql \
-H "Content-Type: application/json" \
-H "X-Codex-Payment: mpp" \
-H "Authorization: Payment <base64url-credential>" \
--data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'Payment-Receiptquerycodex-supergraph| File | Purpose |
|---|---|
| references/mpp-flow.md | Auth matrix, challenge details, error codes |
| references/mpp-templates.md | MPP curl templates |
| references/wallets.md | Wallet setup: tempo wallet/request (Tempo) and awal (Base) |