Endpoints
Manage paid API endpoints via the Dunmore API.
Endpoints represent individual API routes behind the Dunmore payment gateway.
List Endpoints
GET /api/projects/:projectId/endpoints
Create Endpoint
POST /api/projects/:projectId/endpoints
| Field | Type | Required | Description |
|---|---|---|---|
path | string | Yes | URL path (e.g., /weather) |
upstreamUrl | string | Yes | Your API's actual URL |
priceUsd | string | Yes | Price per request in USD |
description | string | No | Human-readable description |
Example
curl -X POST https://api.dunmore.xyz/api/projects/proj_abc/endpoints \
-H "Authorization: Bearer gf_live_..." \
-d '{ "path": "/weather", "upstreamUrl": "https://api.example.com/weather", "priceUsd": "0.01" }'
Update Endpoint
PATCH /api/projects/:projectId/endpoints/:endpointId
Delete Endpoint
DELETE /api/projects/:projectId/endpoints/:endpointId