Unified API for controlling all BlackRoad services.
GET /github/orgs- List all organizationsGET /github/repos/:org- List repos in orgPOST /github/repo- Create new repoPOST /github/file- Create/update file
GET /stripe/products- List productsPOST /stripe/product- Create product + price + payment linkGET /stripe/customers- List customers
GET /hf/models?q=- Search modelsGET /hf/spaces?q=- Search spaces
GET /cf/workers- List workersGET /cf/kv- List KV namespacesGET /cf/d1- List D1 databases
GET /agents- List agentsPOST /agents- Create agentGET /agents/:id- Get agent details
GET /stats- System statisticsPOST /notify- Multi-channel notifications
npm install
wrangler secret put GITHUB_TOKEN
wrangler secret put STRIPE_SECRET_KEY
wrangler secret put HF_TOKEN
wrangler secret put CLOUDFLARE_API_TOKEN
wrangler deploy# Create a repo
curl -X POST https://cmd.blackroad.io/github/repo \
-H "Content-Type: application/json" \
-d '{"name": "my-new-repo", "org": "BlackRoad-AI"}'
# Create a product with payment link
curl -X POST https://cmd.blackroad.io/stripe/product \
-H "Content-Type: application/json" \
-d '{"name": "Pro Plan", "price": 29.99, "recurring": "month"}'
# Create an agent
curl -X POST https://cmd.blackroad.io/agents \
-H "Content-Type: application/json" \
-d '{"name": "Atlas", "type": "researcher", "capabilities": ["search", "analyze"]}'