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).
/root/.credentials/├── stripe.env # Stripe API keys (3 brands)├── github.env # GitHub PAT + org access└── aws.env # AWS credentialsConfigured APIs
| Service | Status | Brands/Orgs | CLI | Config Location |
|---|---|---|---|---|
| Cloudflare | ✅ Active | 49 zones | cf, cfw, cloudflared | /usr/local/bin/cf |
| Stripe | ✅ Active | 3 brands | stripe, stripe-* | /root/.credentials/stripe.env |
| GitHub | ✅ Active | 7 organizations | gh | /root/.credentials/github.env |
| GCP | ✅ Active | tech-empire-258307 | gcloud | OAuth (browser) |
| AWS | ✅ Active | SES, S3 | aws | /root/.credentials/aws.env |
| WHM/cPanel | ✅ Active | 37 accounts | whmapiwrapper | Native (root) |
| MainWP | ✅ Active | 46 WP sites | mwp | Native (WP-CLI) |
Brand → API Mapping
| Brand | Stripe | GitHub Org | Cloudflare Zones |
|---|---|---|---|
| Philoveracity | ✅ | Philoveracity | philoveracity.com, philovera.city |
| StartEmpire Wire | ✅ | Startempire-Wire | startempirewire.com, startempirewire.network |
| ASAP Digest | ✅ | ASAP-Digest | asapdigest.com |
CLI Quick Reference
# Cloudflarecf zone list # List all zonescfw 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:
# WHMwhmapi1 listaccts # List cPanel accountswhmapiwrapper domains # List all domains
# MainWPmwp sites # List WP sitesmwp updates --available-updates # Check for updatesQuick Links
- Cloudflare - DNS, CDN, Pages, Access, Tunnels
- GitHub - Repositories, CI/CD (
ghCLI) - Stripe - Commerce, Payments (
stripeCLI) - GCP - Cloud Run, Storage, AI/ML (
gcloudCLI) - AWS - SES, S3 (
awsCLI) - WHM/cPanel - Hosting, Accounts (
whmapiwrapper)
Credentials stored securely at /root/.credentials/ - never committed to repos.