API Keys

Manage API keys for programmatic access to DataNexus

Loading...
Using Your API Key
Include your API key in the Authorization header as a Bearer token

Example Request

curl http://localhost:3000/api/agent/datasets \
  -H "Authorization: Bearer your_api_key_here"

Available Agent Endpoints

  • GET /api/agent/datasets - Search datasets
  • GET /api/agent/datasets/:id - Get dataset details
  • POST /api/agent/datasets/:id/purchase - Purchase a dataset (x402)
  • POST /api/agent/datasets/:id/analyze - Analyze dataset with EigenAI

Python SDK Example

from x402_example import DataNexusClient

client = DataNexusClient(
    api_key="your_api_key_here",
    base_url="http://localhost:3000"
)

# Search datasets
datasets = client.search_datasets(query="crypto", limit=10)

# Analyze dataset with EigenAI
result = client.analyze_dataset(
    dataset_id="...",
    prompt="Analyze market sentiment",
    analysis_type="sentiment"
)