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
| Code | HTTP Status | Description |
|---|---|---|
NOT_FOUND | 404 | Resource doesn't exist |
VALIDATION_ERROR | 400 | Invalid input |
UNAUTHORIZED | 401 | Missing/invalid auth |
FORBIDDEN | 403 | Access denied |
PAYMENT_REQUIRED | 402 | Missing/invalid payment |
RATE_LIMITED | 429 | Too many requests |
INTERNAL_ERROR | 500 | Server error |
Rate Limits
- Limit: 60 requests per minute per IP
- Headers:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Requests remaining in window