Skip to content

client-manager

Fresh

Source: BIBLE.md (Phase 12 Phase 2, client-manager 8 routes)

Multi-client support. Each client has their own accounts, keywords, campaigns.

Routes (8)

MethodRouteWhat
GET/clientsList clients
POST/clientsCreate client
GET/clients/:idOne client
PUT/clients/:idUpdate
DELETE/clients/:idRemove
GET/clients/:id/accountsAccounts for this client
GET/clients/:id/keywordsTracked keywords
GET/clients/:id/campaignsCampaigns for this client

Example payload

bash
curl -X POST http://localhost:4700/clients \
  -H "Content-Type: application/json" \
  -d '{
    "id": "journey-junk",
    "name": "Journey Junk Removal",
    "domain": "journeyjunkremoval.com",
    "primaryCity": "Dallas, TX",
    "keywords": [
      "junk removal dallas",
      "junk hauling dallas",
      "furniture removal dallas"
    ]
  }'