Quickstart

From nothing to a scheduled campaign.

1. Check the key works

curl https://marketmind.skotechlabs.com/api/v1/usage -H "Authorization: Bearer sk_live_..."

2. Push a customer with a purchase

curl https://marketmind.skotechlabs.com/api/v1/customers \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Rahim Ahmed",
    "email": "rahim@example.com",
    "phone": "01712345678",
    "consent": { "email": true, "sms": false },
    "purchase": { "amount": 5900, "product": "Winter Bomber Jacket", "category": "Jackets" }
  }'

Segments rebuild from this, so "VIP customers" and "quiet for 90 days" stay correct without anyone exporting a spreadsheet.

3. Start a campaign

curl https://marketmind.skotechlabs.com/api/v1/campaigns \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "brand": "rahim-fashion",
    "name": "Winter collection launch",
    "objective": "product_launch",
    "goal": "Sell the winter jackets to people who already bought once",
    "generate": true
  }'

The response contains the full strategy and how many posts were written. They land in the calendar, and in the approval queue if the brand reviews content first.

4. Read the numbers

curl "https://marketmind.skotechlabs.com/api/v1/analytics?days=30&brand=rahim-fashion" \
  -H "Authorization: Bearer sk_live_..."