Getting Started with TeamDay

Welcome to TeamDay! This quickstart guide will get you up and running in about 15 minutes. By the end, you'll have:

  • ✅ A TeamDay account with authentication
  • ✅ Your first Personal Access Token (PAT)
  • ✅ Made your first API call
  • ✅ Created your first AI agent

Table of Contents

Step 1: Sign Up

Register for TeamDay

Option A: Sign up with Google

  1. Visit https://cc.teamday.ai
  2. Click "Sign up with Google"
  3. Select your Google account
  4. Authorize TeamDay to access your profile

Option B: Sign up with GitHub

  1. Visit https://cc.teamday.ai
  2. Click "Sign up with GitHub"
  3. Authorize TeamDay application
  4. Grant the requested permissions

Option C: Sign up with Email

  1. Visit https://cc.teamday.ai
  2. Click "Sign up with Email"
  3. Enter your email address
  4. Create a secure password (min. 8 characters)
  5. Verify your email address

Screenshot

Complete Your Profile

After signing up, you'll be prompted to complete your profile:

  1. Name - Your full name
  2. Company (optional) - Your organization name
  3. Role (optional) - Your job title or role

Click "Continue" to proceed.

Screenshot

Step 2: Create Your Organization

Organizations help you manage team access and billing.

Set Up Your Organization

  1. Organization Name - Choose a descriptive name
    • Example: "Acme Corp", "My Startup", "Personal Projects"
  2. Organization ID - Auto-generated slug for API access
    • Example: acme-corp, my-startup
    • Can be customized (lowercase, hyphens only)
  3. Billing Plan - Starts on free tier
    • Free: 100 agent executions/month
    • Pro: Unlimited executions ($29/month)
    • Enterprise: Custom pricing

Click "Create Organization" to continue.

Screenshot

Note: You can create multiple organizations or join existing ones later from your settings.

Step 3: Create a Personal Access Token

Personal Access Tokens (PATs) allow you to authenticate API requests and CLI commands.

  1. Click your profile icon in the top-right corner
  2. Select "Settings"
  3. Click "API Keys" in the left sidebar

Screenshot

Create Your First Token

  1. Click "+ New Personal Access Token"
  2. Configure the token:
    • Name: "Getting Started Token" (or any descriptive name)
    • Expiration: Select "90 days" (recommended for testing)
    • Scopes: Full access (scopes coming soon)
  3. Click "Create Token"

Screenshot

Save Your Token Securely

⚠️ IMPORTANT: Your token is shown only once!

td_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6

Do this immediately:

  1. Copy the token to your clipboard
  2. Store it securely in a password manager or environment variable
  3. Never commit it to git or share it publicly

Save to environment variable (recommended):

# macOS/Linux - Add to ~/.bashrc or ~/.zshrc
export TEAMDAY_API_TOKEN="td_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"

# Windows PowerShell
$env:TEAMDAY_API_TOKEN="td_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"

Reload your shell:

source ~/.bashrc  # or source ~/.zshrc

Screenshot

If you lose your token: You must revoke it and create a new one. There's no way to retrieve a lost token.

Step 4: Make Your First API Call

Let's verify your token works by calling the TeamDay API.

Test Your Authentication

Using cURL:

curl -X GET "https://cc.teamday.ai/api/v1/agents" \
  -H "Authorization: Bearer $TEAMDAY_API_TOKEN" \
  -H "Content-Type: application/json"

Expected response:

{
  "data": [],
  "count": 0
}

You should see an empty list (since you haven't created any agents yet).

Screenshot

Using JavaScript:

const TEAMDAY_TOKEN = process.env.TEAMDAY_API_TOKEN;

async function listAgents() {
  const response = await fetch('https://cc.teamday.ai/api/v1/agents', {
    headers: {
      'Authorization': `Bearer ${TEAMDAY_TOKEN}`,
      'Content-Type': 'application/json'
    }
  });

  const data = await response.json();
  console.log('Agents:', data);
}

listAgents();

Using Python:

import os
import requests

TEAMDAY_TOKEN = os.environ['TEAMDAY_API_TOKEN']

def list_agents():
    response = requests.get(
        'https://cc.teamday.ai/api/v1/agents',
        headers={
            'Authorization': f'Bearer {TEAMDAY_TOKEN}',
            'Content-Type': 'application/json'
        }
    )
    print('Agents:', response.json())

list_agents()

Troubleshooting API Calls

401 Unauthorized:

  • Token is invalid or expired
  • Check that you copied the token correctly
  • Verify the token exists in Settings → API Keys

403 Forbidden:

  • Token doesn't have required permissions
  • Verify you're in the correct organization

Network Errors:

  • Check your internet connection
  • Verify the API URL is correct: https://cc.teamday.ai

Step 5: Create Your First Agent

Now let's create an AI agent using the API.

Create Agent via API

Request:

curl -X POST "https://cc.teamday.ai/api/v1/agents" \
  -H "Authorization: Bearer $TEAMDAY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My First Agent",
    "systemPrompt": "You are a helpful assistant that can answer questions and help with tasks. Be concise and friendly.",
    "model": "claude-3-5-sonnet-20241022",
    "visibility": "private"
  }'

Response:

{
  "id": "char_abc123xyz",
  "name": "My First Agent",
  "systemPrompt": "You are a helpful assistant...",
  "model": "claude-3-5-sonnet-20241022",
  "visibility": "private",
  "organizationId": "org_xyz789",
  "createdAt": "2025-01-15T10:00:00Z",
  "updatedAt": "2025-01-15T10:00:00Z"
}

Save the agent ID (char_abc123xyz) - you'll need it to execute the agent.

Screenshot

Create Agent via UI

Prefer a visual interface?

  1. Navigate to "Agents" in the sidebar
  2. Click "+ New Agent"
  3. Fill in the details:
    • Name: "My First Agent"
    • Model: Select "Claude 3.5 Sonnet"
    • System Prompt: Enter the instructions above
    • Visibility: Select "Private"
  4. Click "Create Agent"

Screenshot

Test Your Agent

Execute via API:

curl -X POST "https://cc.teamday.ai/api/v1/agents/char_abc123xyz/execute" \
  -H "Authorization: Bearer $TEAMDAY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Hello! What can you help me with?"
  }'

Response:

{
  "executionId": "exec_456def",
  "message": "Hello! I'm your helpful assistant. I can help you with a variety of tasks including answering questions, providing information, helping with analysis, and more. What would you like assistance with today?",
  "usage": {
    "inputTokens": 245,
    "outputTokens": 89
  },
  "status": "completed"
}

Screenshot

Execute via UI:

  1. Navigate to "Agents""My First Agent"
  2. Click "Chat"
  3. Type your message: "Hello! What can you help me with?"
  4. Press Enter or click Send
  5. View the agent's response

Screenshot

Next Steps

Congratulations! You've successfully:

  • ✅ Created your TeamDay account
  • ✅ Set up your organization
  • ✅ Generated a Personal Access Token
  • ✅ Made your first API call
  • ✅ Created and tested your first AI agent

1. Create a More Specialized Agent

2. Set Up a Workspace

  • Create a space for your agent to work with files and code
  • Guide: Space Setup

3. Connect to GitHub

4. Install MCP Plugins

  • Extend your agent's capabilities with tools and integrations
  • Guide: MCP Plugins

5. Explore the API

Learning Resources

Get Help

Community:

Support:

Share Your Experience

We'd love to hear about your first experience with TeamDay!

Happy building! 🚀