Skip to main content

1. Get your API Key

To start building, you’ll need an API key.
  1. Log in to your Client Commander Dashboard
  2. Go to Admin > API Keys
  3. Click “Create New Key”
  4. Copy the key (it starts with ccmd_live_) behavior

2. Install the SDK

The easiest way to interact with the API is using our official TypeScript SDK.
npm install @clientcommander/sdk

3. Make your first request

Create a file named index.ts and add the following code:
index.ts
import { ClientCommander } from '@clientcommander/sdk';

const cc = new ClientCommander({
  apiKey: 'ccmd_live_...' // Replace with your key
});

async function main() {
  // 1. Create a contact
  const contact = await cc.people.createOrUpdatePerson({
    firstName: 'John',
    lastName: 'Doe',
    email: 'john@example.com',
    phone: '+15550109988'
  });
  
  console.log('Created contact:', contact.data.id);

  // 2. Add a task for them
  await cc.tasks.createTask({
    personId: contact.data.id,
    name: 'Follow up call',
    type: 'Call',
    dueDate: new Date(Date.now() + 86400000).toISOString() // Tomorrow
  });
  
  console.log('Task created!');
}

main();

Next Steps