Skip to content

docs(x402): API key before the code example; name the 401 in the check - #2426

Open
pennyops wants to merge 1 commit into
celo-org:mainfrom
pennyops:x402-key-first
Open

pennyops wants to merge 1 commit into
celo-org:mainfrom
pennyops:x402-key-first

Conversation

@pennyops

@pennyops pennyops commented Nov 4, 2026

Copy link
Copy Markdown

Closes #2413.

  • Moves "Getting an API Key" above "Pointing a Resource Server at It" and states X402_API_KEY as a prerequisite there.
  • Ends "Check that it works" with a paragraph saying the paid Sepolia request is the only step that reaches /settle, and names the 401 Missing X-API-Key a keyless seller sees.
  • Replaces "the key from the previous section" (no longer true after the move) with a link to #getting-an-api-key.

The line about /verify succeeding without a key is already in the Endpoints section, so I left it there. Anchors are unchanged. I couldn't run mint validate / mint broken-links locally, so CI is the check.

@pennyops
pennyops requested a review from a team as a code owner November 4, 2026 07:04
@mintlify

mintlify Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 59d981e.

Approve preview

@viral-sangani viral-sangani left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(x402): put the API key before the code example and end "check that it works" with a paid Sepolia settlement

2 participants