Skip to content

API Access

API Access

This section documents all API integrations available on the VPS for MAP automation.

Credentials Location

All sensitive credentials are stored in /root/.credentials/ with 600 permissions (root only).

Terminal window
/root/.credentials/
├── stripe.env # Stripe API keys (3 brands)
├── github.env # GitHub PAT + org access
└── aws.env # AWS credentials

Configured APIs

ServiceStatusBrands/OrgsCLIConfig Location
Cloudflare✅ Active49 zonescf, cfw, cloudflared/usr/local/bin/cf
Stripe✅ Active3 brandsstripe, stripe-*/root/.credentials/stripe.env
GitHub✅ Active7 organizationsgh/root/.credentials/github.env
GCP✅ Activetech-empire-258307gcloudOAuth (browser)
AWS✅ ActiveSES, S3aws/root/.credentials/aws.env
WHM/cPanel✅ Active37 accountswhmapiwrapperNative (root)
MainWP✅ Active46 WP sitesmwpNative (WP-CLI)

Brand → API Mapping

BrandStripeGitHub OrgCloudflare Zones
PhiloveracityPhiloveracityphiloveracity.com, philovera.city
StartEmpire WireStartempire-Wirestartempirewire.com, startempirewire.network
ASAP DigestASAP-Digestasapdigest.com

CLI Quick Reference

Terminal window
# Cloudflare
cf zone list # List all zones
cfw pages deploy ./dist # Deploy to Pages
# GitHub (via API)
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user/orgs
# Stripe (via API)
curl https://api.stripe.com/v1/products -u $STRIPE_SK:
# WHM
whmapi1 listaccts # List cPanel accounts
whmapiwrapper domains # List all domains
# MainWP
mwp sites # List WP sites
mwp updates --available-updates # Check for updates
  • Cloudflare - DNS, CDN, Pages, Access, Tunnels
  • GitHub - Repositories, CI/CD (gh CLI)
  • Stripe - Commerce, Payments (stripe CLI)
  • GCP - Cloud Run, Storage, AI/ML (gcloud CLI)
  • AWS - SES, S3 (aws CLI)
  • WHM/cPanel - Hosting, Accounts (whmapiwrapper)

Credentials stored securely at /root/.credentials/ - never committed to repos.