Dunmore

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
FieldTypeRequiredDescription
pathstringYesURL path (e.g., /weather)
upstreamUrlstringYesYour API's actual URL
priceUsdstringYesPrice per request in USD
descriptionstringNoHuman-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