> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dripstack.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Search, hit a 402, and unlock your first paid summary.

This guide takes you from a free search to your first paid summary in three
steps. The paid step requires an [x402- or MPP-aware client](/concepts/payment-flow).

<Steps>
  <Step title="Search for content (free)">
    Search across every indexed premium newsletter and podcast.

    ```bash theme={null}
    curl "https://dripstack.xyz/api/v1/search?q=AI%20capex%20bubble&limit=10"
    ```

    Each result includes a `publicationSlug` and `slug`. Use them to build the
    paid post URL in the next step.
  </Step>

  <Step title="Request a paid summary (returns 402)">
    ```bash theme={null}
    curl -i "https://dripstack.xyz/api/v1/publications/fabricatedknowledge.com/ais-600b-question"
    ```

    The route returns `402` with a dual challenge — `WWW-Authenticate: Payment ...`
    (MPP) and `PAYMENT-REQUIRED` (x402). Do not treat this as a final failure;
    retry the same request through a payment-aware client.
  </Step>

  <Step title="Pay and unlock">
    Retry the request through an x402 or MPP client. On `200`, the response
    includes `synthesizedSummary` and `paymentInfo`. See the snippets below.
  </Step>
</Steps>

## Pay with a wallet client

<Tabs>
  <Tab title="x402">
    Uses the Coinbase x402 protocol with an EVM wallet on Base.

    ```bash theme={null}
    npm install viem @x402/core @x402/evm @x402/fetch
    ```

    ```typescript theme={null}
    import { privateKeyToAccount } from "viem/accounts";
    import { createWalletClient, http, publicActions } from "viem";
    import { base } from "viem/chains";
    import { x402Client } from "@x402/core/client";
    import { ExactEvmScheme } from "@x402/evm/exact/client";
    import { wrapFetchWithPayment } from "@x402/fetch";

    const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
    const walletClient = createWalletClient({
      account,
      chain: base, // Use baseSepolia for testnet
      transport: http(),
    }).extend(publicActions);

    const client = new x402Client();
    const evmScheme = new ExactEvmScheme(walletClient);
    client.register("eip155:8453", evmScheme); // 84532 for testnet

    const payFetch = wrapFetchWithPayment(fetch, client);

    // Automatically handles the 402 and pays
    const response = await payFetch(
      "https://dripstack.xyz/api/v1/publications/fabricatedknowledge.com/ais-600b-question",
    );

    const data = await response.json();
    console.log(data.synthesizedSummary);
    ```
  </Tab>

  <Tab title="MPP / Tempo">
    Uses the Tempo micropayment protocol via MPP.

    ```bash theme={null}
    npm install viem mppx
    ```

    ```typescript theme={null}
    import { privateKeyToAccount } from "viem/accounts";
    import { Mppx, tempo } from "mppx/client";

    const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");

    const mppx = Mppx.create({
      methods: [tempo({ account })],
      polyfill: false,
    });

    // Automatically handles the 402 and pays
    const response = await mppx.fetch(
      "https://dripstack.xyz/api/v1/publications/fabricatedknowledge.com/ais-600b-question",
    );

    const data = await response.json();
    console.log(data.synthesizedSummary);
    ```
  </Tab>
</Tabs>

## Use an agent

Drip publishes an agent skill at `https://dripstack.xyz/skill.md`. Paste this
into Claude Code or any agent with a Link wallet skill installed:

```text theme={null}
Fetch https://dripstack.xyz/skill.md as raw context (do not summarize) and
follow it to buy a paid article. Use the `create-payment-credential`
(Link wallet) skill to settle the 402 payment challenge.
```

<Note>
  Enterprise clients with sponsored access can authenticate with an API key
  (`Authorization: Bearer pk_drip_...`) instead of a wallet. API keys draw on
  purchased balance only.
</Note>
