Skip to main content
This guide explains how to publish static resources (files, datasets) using the Nevermined Payments Python SDK.

Overview

Static resources are files or datasets that users can access through payment plans. Unlike AI agents that process requests, static resources are downloadable content such as:
  • Documents (PDFs, reports)
  • Datasets (CSV, JSON files)
  • Media files (images, videos)
  • Software packages

Register Static Resource Agents

Static resources are registered as a special type of agent with file endpoints:

Using Wildcards for Multiple Files

When you have multiple files that follow a pattern, you can use wildcard URLs:

Wildcard Patterns

Complete Example: Dataset Publishing

Example: Document Repository

Example: Software Distribution

Accessing Static Resources

For details on how subscribers access static resources using x402 access tokens, see Request Validation.

Best Practices

  1. Use descriptive metadata: Include clear names, descriptions, and tags for discoverability
  2. Organize files logically: Use consistent URL patterns that work well with wildcards
  3. Version your resources: Include version numbers in URLs for easy updates
  4. Provide a manifest: Create a JSON manifest at the agent_definition_url listing all available files
  5. Set appropriate credits: Consider the value and size of files when setting credit costs

Next Steps

Payments and Balance

Order plans and check balances

Querying an Agent

Access resources with tokens