Skip to content

Example task for x402 paid API calls via Pyrimid #3535

@rizzdbx

Description

@rizzdbx

Proposal: example task for x402 paid API calls via Pyrimid

Trigger.dev is a good fit for long-running/background agent jobs that need to buy data or tools mid-run.

I’m working on Pyrimid, an x402/Base USDC payment router for agent-to-agent commerce. The pattern is:

  1. task calls a paid endpoint
  2. endpoint returns HTTP 402 with payment requirement
  3. task routes USDC through Pyrimid
  4. task retries with proof and continues

Live surfaces for a small example:

Would an example under docs/examples be welcome? I can contribute a minimal Trigger task that performs the 402 → pay → retry loop and returns the purchased result.

This is intentionally an example, not a core dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions