Quick Start Guide

Get up and running with the Vector AI API in minutes! This guide will walk you through everything you need to know to make your first successful API call.

๐Ÿ“‹ Table of Contents


๐ŸŽฏ Prerequisites

Before you begin, make sure you have:

  • โœ… Basic API knowledge - Understanding of REST APIs and HTTP requests

  • โœ… Command line access - Terminal or command prompt

  • โœ… cURL or API client - For making HTTP requests

  • โœ… Valid email address - For API key generation

๐Ÿ”‘ Step 1: Get Your API Key

Request an API Key

curl -X POST "https://api.vector-ai.pro/api/v1/auth/request-key" \
  -H "Content-Type: application/json" \
  -d '{
    "client_name": "My Application",
    "email": "[email protected]",
    "intended_usage": "Token analysis for my crypto project"
  }'

Example Response

{
  "success": true,
  "data": {
    "api_key": "vect_c39cf11bbdadf9cf1376203990ba15189de643f2599cbe3062e5a2a1cecc8957",
    "client_id": "client_123456",
    "rate_limit": "60/minute",
    "tier": "free",
    "expires_at": "2025-02-16T10:30:00Z"
  }
}

๐Ÿ”’ Important: Save Your API Key!

Your API key is only shown once. Save it securely:

# Save to environment variable (recommended)
export VECTOR_API_KEY="vect_c39cf11bbdadf9cf1376203990ba15189de643f2599cbe3062e5a2a1cecc8957"

# Or save to a file
echo "vect_c39cf11bbdadf9cf1376203990ba15189de643f2599cbe3062e5a2a1cecc8957" > api_key.txt

๐Ÿงช Step 2: Test Your Connection

Health Check

First, verify the API is accessible:

curl -X GET "https://api.vector-ai.pro/health"

Expected Response

{
  "status": "healthy",
  "timestamp": "2025-01-16T10:30:00.000Z",
  "version": "1.0.0",
  "components": {
    "database": "connected",
    "redis": "available",
    "external_apis": "operational"
  }
}

Test Authentication

Verify your API key works:

curl -X POST "https://api.vector-ai.pro/api/v1/auth/validate" \
  -H "Content-Type: application/json" \
  -H "X-Vector-API-Key: your_api_key_here"

๐Ÿ” Step 3: Analyze Your First Token

Basic Token Analysis

Let's analyze USDC (a stable, well-known token):

curl -X POST "https://api.vector-ai.pro/api/v1/token/scan" \
  -H "Content-Type: application/json" \
  -H "X-Vector-API-Key: your_api_key_here" \
  -d '{
    "contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
    "chain": "eth"
  }'

Advanced Analysis with Features

curl -X POST "https://api.vector-ai.pro/api/v1/token/scan" \
  -H "Content-Type: application/json" \
  -H "X-Vector-API-Key: your_api_key_here" \
  -d '{
    "contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
    "chain": "eth",
    "features": ["security", "market", "holder_analysis"]
  }'

๐Ÿ“Š Step 4: Understand the Response

Full Response Structure

{
  "success": true,
  "data": {
    "token_info": {
      "name": "USD Coin",
      "symbol": "USDC",
      "contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
      "chain": "ethereum",
      "decimals": 6
    },
    "vector_score": 95,
    "grade": "A+",
    "recommendation": "๐ŸŸข SAFE TO TRADE",
    "analysis": {
      "security": {
        "honeypot_risk": "โœ… SAFE",
        "rug_pull_risk": "โœ… VERY_LOW",
        "contract_verified": true,
        "proxy_contract": false,
        "malicious_functions": []
      },
      "market": {
        "price": "$1.00",
        "market_cap": "$32.8B",
        "volume_24h": "$4.2B",
        "liquidity": "๐ŸŸข EXCELLENT",
        "price_change_24h": "+0.01%"
      },
      "holder_analysis": {
        "total_holders": 2500000,
        "top_10_percentage": 35.2,
        "whale_activity": "๐ŸŸก MODERATE",
        "distribution": "๐ŸŸข HEALTHY"
      }
    },
    "metadata": {
      "analysis_time": "2.3s",
      "timestamp": "2025-01-16T10:30:00.000Z",
      "api_version": "1.0.0"
    }
  }
}

Key Response Fields

Field
Description
Example

vector_score

Overall score (0-100)

95

grade

Letter grade (F to A+)

"A+"

recommendation

Trading recommendation

"๐ŸŸข SAFE TO TRADE"

analysis.security

Security analysis results

Risk assessments

analysis.market

Market data and metrics

Price, volume, liquidity

analysis.holder_analysis

Token holder distribution

Whale activity, distribution


๐Ÿš€ Step 5: Next Steps

  1. ๐Ÿ” Token Screening

    # Quick security check
    curl -X POST "https://api.vector-ai.pro/api/v1/token/scan" \
      -H "X-Vector-API-Key: $VECTOR_API_KEY" \
      -d '{"contract_address": "0x...", "features": ["security"]}'
  2. ๐Ÿง  Deep Research

    # Get AI-powered research report
    curl -X POST "https://api.vector-ai.pro/api/v1/token/research" \
      -H "X-Vector-API-Key: $VECTOR_API_KEY" \
      -d '{"contract_address": "0x...", "chain": "eth"}'
  3. ๐Ÿ” Social Analysis

    # Analyze Twitter/X sentiment
    curl -X POST "https://api.vector-ai.pro/api/v1/token/x-analysis" \
      -H "X-Vector-API-Key: $VECTOR_API_KEY" \
      -d '{"contract_address": "0x...", "chain": "eth"}'

๐Ÿ“š Continue Learning

  • ๐Ÿ” Authentication Guide - Advanced auth concepts

  • ๐ŸŽฏ Endpoint Documentation - Detailed API reference

  • ๐Ÿ’ป Code Examples - Implementation in different languages

  • ๐Ÿ› ๏ธ Troubleshooting - Common issues and solutions

๐ŸŽฏ Integration Examples

Python Integration

import requests

api_key = "your_api_key_here"
headers = {"X-Vector-API-Key": api_key}

response = requests.post(
    "https://api.vector-ai.pro/api/v1/token/scan",
    headers=headers,
    json={
        "contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
        "chain": "eth"
    }
)

data = response.json()
print(f"Token: {data['data']['token_info']['name']}")
print(f"Score: {data['data']['vector_score']}")

JavaScript Integration

const response = await fetch('https://api.vector-ai.pro/api/v1/token/scan', {
  method: 'POST',
  headers: {
    'X-Vector-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    contract_address: '0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234',
    chain: 'eth'
  })
});

const data = await response.json();
console.log(`Token: ${data.data.token_info.name}`);
console.log(`Score: ${data.data.vector_score}`);

๐ŸŽ‰ Congratulations!

You've successfully made your first Vector AI API call! You're now ready to:

  1. Build token analysis applications

  2. Integrate security screening

  3. Create trading signals

  4. Develop crypto research tools

๐Ÿ†˜ Need Help?


Happy Building with Vector AI! ๐Ÿš€