Sales Track Live API Docs

Get Managers

Retrieve all managers for the authenticated admin.

GET/api/integrations/crm/managers

How to Integrate at Your Website

Step-by-step guide to integrate manager data into your CRM or website

1. Get Your API Keys

Contact us to get your API key and secret key for accessing manager data

2. Use Our Pre-built Components

Download our ready-to-use UI components from the UI Components page - just copy and paste!

3. Connect to Your System

Add the API integration code to your website or CRM system using the examples in the right sidebar

4. Display Data

Your website will now show live manager data from our system automatically

What You Get

  • Real-time manager data with contact information
  • Manager performance metrics and status
  • Merchandiser count for each manager
  • Geographic area assignments and regions
  • Subscription and payment status information
  • Ready-to-use UI components and code examples

Code Examples

GET /api/integrations/crm/managers
const apiKey = 'your_api_key_here';
const secretKey = 'your_secret_key_here';

async function getManagers() {
  const response = await fetch('/api/integrations/crm/managers?limit=20&status=active', {
    method: 'GET',
    headers: {
      'X-API-Key': apiKey,
      'X-Secret-Key': secretKey,
      'Content-Type': 'application/json'
    }
  });

  if (!response.ok) {
    throw new Error(`HTTP error! status: ${response.status}`);
  }

  const data = await response.json();
  console.log(data.data.managers);
}

getManagers().catch(console.error);

Response Examples

{
  "success": true,
  "data": {
    "managers": [
      {
        "id": "123",
        "fullname": "John Manager",
        "email": "john@example.com",
        "phone": "+91 9876543210",
        "region": "North India",
        "subscription_plan": "premium",
        "payment_status": "active",
        "merchandiser_count": 8,
        "createdat": "2024-01-15T10:30:00Z",
        "updatedat": "2024-01-20T14:45:00Z"
      }
    ],
    "pagination": {
      "total": 15,
      "limit": 20,
      "offset": 0,
      "has_more": false
    }
  }
}

Need Help?