pay-for-http-request
This skill enables the agent to make HTTP requests to payment-gated APIs using purl, which automatically handles x402 payment protocol negotiations on EVM and…
Named by catalogs; identity not yet proven
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- eb82039pinned Oct 9, 2026
- Context cost
- about 1,600 tokenswhen the skill loads
- GitHub stars
- 181on stripe/purl
- Scripts
- None found
What it does
“Make HTTP requests with automatic x402 payment support using the purl command line interface.”
Generated summary from the skill's own text
This skill enables the agent to make HTTP requests to payment-gated APIs using purl, which automatically handles x402 payment protocol negotiations on EVM and Solana networks. The agent can inspect payment requirements, execute payments with configurable limits, and manage wallets for different blockchain networks.
When to use it
- Accessing APIs that return HTTP 402 and support x402 payment protocol
- Paying per-request fees to access premium data feeds or services
- Interacting with paywalled content or compute resources requiring blockchain payments
- Testing payment-gated endpoints with dry-run or inspection before committing funds
When not to
- Making standard HTTP requests without payment requirements; use curl instead
- APIs using traditional payment methods like credit cards or API key billing
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add stripe/purl --skill pay-for-http-requestInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install stripe/purl pay-for-http-request@eb820395c2ea009fbd4c13cd1040d1484af5e742Installs the commit we checked (eb82039).
Copy by hand
Download the folder at eb82039 and put it in .claude/skills/pay-for-http-request for Claude Code and in .agents/skills/pay-for-http-request for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install stripe@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "pay-for-http-request" by Stripe. Source, pinned to commit eb820395c2ea009fbd4c13cd1040d1484af5e742: https://github.com/stripe/purl/tree/eb820395c2ea009fbd4c13cd1040d1484af5e742/skills/pay-for-http-request 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/pay-for-http-request/ for Claude Code and .agents/skills/pay-for-http-request/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/stripe/pay-for-http-request
SKILL.md at the pin
---
name: pay-for-http-request
description: Make HTTP requests with automatic x402 payment support using the purl command line interface.
---
# pay-for-http-request
Make HTTP requests with automatic x402 payment support using `purl`.
## Description
This skill enables making HTTP requests to payment-gated APIs using `purl`, a curl-like CLI tool that automatically handles x402-based payments on EVM and Solana networks.
## When to Use This Skill
When an API returns HTTP 402 (Payment Required) and supports the x402 payment protocol, purl can automatically negotiate and execute the payment to access the resource.
### Common Scenarios
| Scenario | Example |
|----------|---------|
| Tool calls | Paying per request to an API service |
| Premium data feeds | Accessing real-time market data, weather, or analytics |
| Content monetization | Paying to access paywalled articles or media |
| Compute resources | On-demand access to compute or storage services |
### When NOT to Use
- Regular HTTP requests that don't require payment (use `curl` instead)
- APIs using traditional payment methods (credit cards, API keys with billing)
## Usage
```bash
purl <URL> [OPTIONS]
purl <COMMAND>
```
## Commands
| Command | Description |
|---------|-------------|
| `wallet` | Manage wallets (keystores) |
| `config` | Manage configuration |
| `balance` | Check wallet balance |
| `inspect` | Inspect payment requirements without executing |
| `networks` | Manage and inspect supported networks |
| `version` | Show version information |
| `completions` | Generate shell completions script |
| `topics` | Display help topics (exit-codes, formatting, examples, environment) |
## Request Options
### Payment Options
| Option | Description |
|--------|-------------|
| `--max-amount <AMOUNT>` | Maximum amount willing to pay (in atomic units) |
| `--confirm` | Require confirmation before paying |
| `--network <NETWORKS>` | Filter to specific networks (comma-separated) |
| `--dry-run` | Preview payment without executing |
### Display Options
| Option | Description |
|--------|-------------|
| `-v, --verbosity` | Verbosity level (can be used multiple times: -v, -vv, -vvv) |
| `-q, --quiet` / `-s, --silent` | Do not print log messages |
| `-i, --include` | Include HTTP headers in output |
| `-I, --head` | Show only HTTP headers |
| `-o, --output <FILE>` | Write output to file |
| `--output-format <FORMAT>` | Output format: auto, text, json, yaml (auto detects: text for terminal, json for pipes) |
| `--color <MODE>` | Control color output: auto, always, never |
### HTTP Options
| Option | Description |
|--------|-------------|
| `-X, --request <METHOD>` | Custom request method |
| `-H, --header <HEADER>` | Add custom header |
| `-A, --user-agent <AGENT>` | Set user agent |
| `-L, --location` | Follow redirects |
| `--connect-timeout <SECONDS>` | Connection timeout in seconds |
| `-m, --max-time <SECONDS>` | Maximum time for the request |
| `-d, --data <DATA>` | POST data |
| `--json <JSON>` | Send JSON data with Content-Type header |
### Wallet Options
| Option | Description |
|--------|-------------|
| `--wallet <PATH>` | Path to wallet file |
| `--password <PASSWORD>` | Password for wallet decryption |
| `--private-key <KEY>` | Raw private key (hex, for EVM; use wallet for better security) |
### Global Options
| Option | Description |
|--------|-------------|
| `-C, --config <PATH>` | Configuration file path |
## Wallet Commands
```bash
purl wallet <COMMAND>
```
| Command | Description |
|---------|-------------|
| `list` | List available wallets |
| `add` | Create a new wallet (interactive) |
| `show <NAME>` | Show wallet details |
| `verify <NAME>` | Verify wallet integrity |
| `use <NAME>` | Set a wallet as the active payment method |
| `remove <NAME>` | Remove a wallet |
### Wallet Add Options
| Option | Description |
|--------|-------------|
| `-n, --name <NAME>` | Name for the wallet |
| `-t, --type <TYPE>` | Wallet type: evm or solana |
| `-k, --private-key <KEY>` | Private key to import (hex for EVM, base58 for Solana) |
## Config Commands
```bash
purl config [COMMAND]
```
| Command | Description |
|---------|-------------|
| (none) | Show current config |
| `get <KEY>` | Get a specific configuration value (supports dot notation) |
| `validate` | Validate configuration file |
## Examples
### Basic payment request
```bash
purl https://api.example.com/premium-data
```
### Preview payment without executing
```bash
purl --dry-run https://api.example.com/data
```
### Require confirmation before payment
```bash
purl --confirm https://api.example.com/data
```
### Set maximum payment amount
```bash
purl --max-amount 10000 https://api.example.com/data
```
### Filter to specific network
```bash
purl --network base-sepolia https://api.example.com/data
```
### Verbose output with headers
```bash
purl -vi https://api.example.com/data
```
### Save output to file as JSON
```bash
purl -o output.json --output-format json https://api.example.com/data
```
### POST request with JSON data
```bash
purl --json '{"key": "value"}' https://api.example.com/data
```
### Custom headers
```bash
purl -H "Authorization: Bearer token" https://api.example.com/data
```
### Follow redirects with custom method
```bash
purl -L -X POST https://api.example.com/data
```
### Check wallet balance
```bash
purl balance
purl balance --network base
```
### Inspect payment requirements
```bash
purl inspect https://api.example.com/endpoint
```
### Wallet management
```bash
purl wallet add # Interactive wallet creation
purl wallet add --type evm # Skip type selection
purl wallet add --type solana -k KEY # Import existing key
purl wallet list # List all wallets
purl wallet use my-wallet # Switch active wallet
```
### View supported networks
```bash
purl networks
purl networks info base
```
## Supported Networks
| Type | Networks |
|------|----------|
| EVM | ethereum, ethereum-sepolia, base, base-sepolia, avalanche, avalanche-fuji, polygon, arbitrum, optimism |
| SVM | solana, solana-devnet |
## Prerequisites
1. Create a wallet: `purl wallet add`
2. Set up a payment method (wallet) with funds on the desired network
3. Ensure the target API supports x402 payment protocol
## Environment Variables
| Variable | Description |
|----------|-------------|
| `PURL_MAX_AMOUNT` | Default maximum amount willing to pay |
| `PURL_NETWORK` | Default network filter |
| `PURL_CONFIRM` | Default confirmation behavior (true/false) |
| `PURL_KEYSTORE` | Default wallet/keystore path |
| `PURL_PASSWORD` | Wallet password (for non-interactive use) |
From stripe/purl at eb82039, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at eb82039Files
- SKILL.md6.7 KB · 652e198d05ce
1 file, 6.7 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at eb82039More from Stripe
connect-recommend
Recommends Stripe Connect configuration for platforms, marketplaces, and SaaS businesses that route payments between parties.
Claude Code · about 5.7K tokens · pinned 6 days ago
connect-required-verification-information
This skill helps agents identify what verification information a Stripe Connect connected account must provide based on platform country, account country…
Claude Code, Codex, Cursor +4 · about 7K tokens · pinned 6 days ago
metronome
Guides decisions and implementation for Metronome usage-based billing integrations, covering event ingestion, contract and rate card design, invoicing…
Claude Code, Codex, Cursor +4 · about 3K tokens · pinned 6 days ago
stripe-apps
This skill enables agents to build, modify, or review Stripe Apps and extensions.
Claude Code, Codex, Cursor +4 · about 1.9K tokens · pinned 6 days ago
stripe-best-practices
This skill guides agents through Stripe integration decisions, covering environment setup, API selection, payment processing, billing, tax compliance, and…
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago
stripe-directory
This skill queries a directory of external providers, merchants, and services to identify which ones can help accomplish a task and how to engage them.
Claude Code, Codex, Cursor +4 · about 1.6K tokens · pinned 6 days ago
Related in Payments and commerce
ap-processor
Reads bills from email, uploads, and expense feeds, extracts vendor and payment details, codes each bill to the owner's chart of accounts and jobs, matches…
by AnthropicOfficial publisher
Claude Code, Codex, Cursor +4 · about 3.5K tokens · pinned 6 days ago
invoice-chase
Drafts personalized payment reminder emails for overdue invoices pulled from accounting ledgers (MYOB, NetSuite, QuickBooks, Xero, Zoho Books) and payment…
by AnthropicOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.8K tokens · pinned 6 days ago
pay-the-bills
This skill orchestrates the bill payment workflow by reading and coding invoices from the AP inbox, checking cash availability before any payment commitment…
by AnthropicOfficial publisher
Claude Code, Codex, Cursor +4 · about 2K tokens · pinned 6 days ago
order-lookup
This skill retrieves and modifies individual orders in an e-commerce system.
by NVIDIAOfficial publisher
Claude Code, Codex, Cursor +4 · about 100 tokens · pinned 6 days ago
shopify-app-pricing
This skill is deprecated and has been replaced by the shopify skill.
by ShopifyOfficial publisher
Claude Code, Codex, Cursor +4 · about 71 tokens · pinned 6 days ago
shopify-functions
This skill enables customization of Shopify backend logic through functions for discounts, checkout validation, cart transformation, delivery options, and…
by ShopifyOfficial publisher
Claude Code, Codex, Cursor +4 · about 69 tokens · pinned 6 days ago