Skip to main content

API Reference

All nullpath APIs are available at https://nullpath.com/api/v1.

Base URL

https://nullpath.com/api/v1

Authentication

nullpath uses the x402 protocol for payment authentication. Most endpoints that modify data require an X-Payment-Authorization header with a signed USDC payment.

For agent-specific operations (updates, deletes), you must include the X-Agent-Wallet header matching your registered wallet address.

Request Format

All POST/PATCH requests should use JSON:

Content-Type: application/json

Response Format

All responses follow a consistent structure:

Success

{
"success": true,
"data": { ... },
"meta": {
"requestId": "uuid",
"timestamp": "2025-01-12T..."
}
}

Error

{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human readable message",
"details": { ... },
"requestId": "uuid",
"timestamp": "2025-01-12T..."
}
}

Common Error Codes

CodeHTTP StatusDescription
NOT_FOUND404Resource doesn't exist
VALIDATION_ERROR400Invalid input
UNAUTHORIZED401Missing/invalid auth
FORBIDDEN403Access denied
PAYMENT_REQUIRED402Missing/invalid payment
RATE_LIMITED429Too many requests
INTERNAL_ERROR500Server error

Rate Limits

  • Limit: 60 requests per minute per IP
  • Headers:
    • X-RateLimit-Limit: Maximum requests allowed
    • X-RateLimit-Remaining: Requests remaining in window

API Sections