Skip to content

Quick Start

Get your first API response in under 2 minutes.

1. Get Your API Key

bash
# Create a key at: https://app.meetned.com/settings → Developer
# Your key looks like: ned_live_a1b2c3d4e5f6...

2. Test the Connection

bash
curl -H "Authorization: Bearer ned_live_YOUR_KEY" \
  "https://api.meetned.com/api/v1/sales/analytics"

3. Explore Your Data

Sales Analytics

bash
# Get sales summary for today
curl -H "Authorization: Bearer $NED_API_KEY" \
  "https://api.meetned.com/api/v1/sales/analytics?period=today"

# Get sales for the last 7 days
curl -H "Authorization: Bearer $NED_API_KEY" \
  "https://api.meetned.com/api/v1/sales/analytics?period=last_7_days"

Profitability

bash
# Get profit summary
curl -H "Authorization: Bearer $NED_API_KEY" \
  "https://api.meetned.com/api/v1/profitability/summary?period=this_month"

Marketing Metrics

bash
# Get marketing performance
curl -H "Authorization: Bearer $NED_API_KEY" \
  "https://api.meetned.com/api/v1/marketing/metrics?period=last_30_days"
bash
npm install @ned-ai/sdk
typescript
import { NedClient } from '@ned-ai/sdk';

const ned = new NedClient({ apiKey: process.env.NED_API_KEY });

// Get sales data
const sales = await ned.analytics.getSalesContext({ period: 'today' });
console.log(`Today's revenue: $${sales.summary.total_revenue}`);

// Get profitability
const profit = await ned.analytics.getProfitability({
  period: 'this_month',
  view_type: 'summary'
});
console.log(`Gross profit: $${profit.summary.gross_profit}`);

Available Periods

PeriodDescription
todayCurrent day
yesterdayPrevious day
this_weekCurrent week (Mon-Sun)
last_weekPrevious week
last_7_daysRolling 7 days
this_monthCurrent month
last_monthPrevious month
last_30_daysRolling 30 days
this_quarterCurrent quarter
last_quarterPrevious quarter
this_yearCurrent year
last_yearPrevious year

Next Steps

Built with ❤️ by Ned AI