Dunmore

API Patterns

Common patterns for AI agents working with the Dunmore API.

Recommended patterns for agents using the Dunmore API.

Full Setup Pattern

An agent that creates a complete monetized API:

  1. Create project with wallet address
  2. Register endpoints with pricing
  3. Create API key for the project
  4. Set up webhook for payment notifications
  5. Configure Slack for alerts

Idempotent Operations

Use consistent naming to avoid duplicate resources. Check if a resource exists before creating it.

Error Handling

The API returns standard HTTP status codes:

StatusMeaning
200Success
201Created
400Validation error
401Unauthorized
404Not found
409Conflict (duplicate)
429Rate limited

Rate Limit Headers

Every response includes rate limit headers:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 1708300800