docs: update x402 documentation for delegation flow#145
Open
docs: update x402 documentation for delegation flow#145
Conversation
Update all documentation to reflect the delegation-based token generation flow that replaces the old session-key permissions model. Key changes across all files: - getX402AccessToken / get_x402_access_token now requires delegationConfig - CardDelegationConfig renamed to DelegationConfig - sessionKeyConfig, redemptionLimit, orderLimit, expiration removed - New createDelegation API documented for both stripe and erc4337 - Both crypto and card schemes now use the unified delegation model Docs updated (5 files): - specs/x402-card-delegation.mdx → renamed to "Delegation Extension" - integrate/patterns/stablecoin-payments.mdx → delegation replaces session keys - integrate/patterns/fiat-payments.mdx → DelegationConfig shared model - development-guide/nevermined-x402.mdx → updated token gen examples - products/x402-facilitator/how-it-works.mdx → updated step 2 flow Skills updated (5 files): - SKILL.md → all getX402AccessToken calls include delegationConfig - references/client-integration.md → 6 calls updated - references/a2a-integration.md → 1 call updated - references/mcp-paywall.md → 1 call updated - references/strands-integration.md → 1 call updated Related PRs: - nevermined-io/nvm-monorepo#1102 (backend) - nevermined-io/payments#274 (TypeScript SDK) - nevermined-io/payments-py#167 (Python SDK) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
aaitor
approved these changes
Mar 20, 2026
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.
Summary
Updates all documentation to reflect the delegation-based token generation flow from PRs:
Breaking changes documented:
getX402AccessToken()/get_x402_access_token()now requiresdelegationConfigCardDelegationConfigrenamed toDelegationConfigsessionKeyConfig,redemptionLimit,orderLimit,expirationparams removedcreateDelegation()API for bothstripeanderc4337providersFiles updated:
Docs (5 files):
specs/x402-card-delegation.mdx— renamed to "Delegation Extension", covers both crypto and cardintegrate/patterns/stablecoin-payments.mdx— delegation replaces session keysintegrate/patterns/fiat-payments.mdx— DelegationConfig shared modeldevelopment-guide/nevermined-x402.mdx— updated token generation examplesproducts/x402-facilitator/how-it-works.mdx— updated step 2 flow with both patternsSkills (5 files):
SKILL.md— all getX402AccessToken calls updated with delegationConfigreferences/client-integration.md— 6 calls updatedreferences/a2a-integration.md— 1 call updatedreferences/mcp-paywall.md— 1 call updatedreferences/strands-integration.md— 1 call updatedTest plan
mintlify broken-links— no broken links🤖 Generated with Claude Code