Appearance
client-manager
FreshSource: BIBLE.md (Phase 12 Phase 2, client-manager 8 routes)
Multi-client support. Each client has their own accounts, keywords, campaigns.
Routes (8)
| Method | Route | What |
|---|---|---|
| GET | /clients | List clients |
| POST | /clients | Create client |
| GET | /clients/:id | One client |
| PUT | /clients/:id | Update |
| DELETE | /clients/:id | Remove |
| GET | /clients/:id/accounts | Accounts for this client |
| GET | /clients/:id/keywords | Tracked keywords |
| GET | /clients/:id/campaigns | Campaigns 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"
]
}'