Quick Start

Generate your first AI-powered lead magnet in 5 minutes

Prerequisites

Before you begin, make sure you have:

  • A Magnetite account (sign up at magnetite.ai)
  • An API key from your project settings
  • A project ID from your dashboard

Step 1: Get Your API Credentials

  1. Log in to your Magnetite dashboard
  2. Navigate to your project or create a new one
  3. Go to Settings → API & Integrations
  4. Copy your API key and project ID

Step 2: Make Your First API Call

Here's how to generate a lead magnet using different languages:

curl -X POST https://magnetite.ai/api/projects/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": "YOUR_PROJECT_ID",
    "email": "john.smith@example.com",
    "fullName": "John Smith",
    "company": "Acme Corp",
    "domain": "acmecorp.com"
  }'

Step 3: Handle the Response

A successful response will look like this:

{
  "success": true,
  "leadId": "lead_abc123def456",
  "leadMagnetUrl": "https://your-subdomain.go.magnetite.ai/lead_abc123def456",
  "jobId": "job_xyz789",
  "status": "queued",
  "message": "Lead magnet generation started successfully"
}

leadId: Unique identifier for this lead

leadMagnetUrl: The URL where the lead magnet will be available

jobId: Use this to check the generation status

status: Current status (queued → processing → completed)

Step 4: Check Generation Status

Lead magnet generation typically takes 30-60 seconds. You can check the status:

curl -X GET https://magnetite.ai/api/generation/job_xyz789/status \
  -H "Authorization: Bearer YOUR_API_KEY"

The response will include:

{
  "success": true,
  "status": "completed",
  "progress": 100,
  "result": {
    "leadMagnetUrl": "https://your-subdomain.go.magnetite.ai/lead_abc123def456",
    "generatedAt": "2024-01-15T10:30:00Z"
  }
}

What's Next?

Explore the API

Learn about all available endpoints and options

View API Reference →

Set Up Integrations

Connect with Zapier and n8n

Browse Integrations →