API Reference

Complete REST API documentation for building AI agents, avatars, and intelligent automation. Includes authentication, endpoints, and code examples.

REST API v1
API Key Auth
HTTPS Only
Base URL
https://api.swfte.com/v1

Agents

Create and manage AI agents

12 endpoints

Avatars

Generate AI avatars and videos

8 endpoints

Chat

Real-time agent conversations

6 endpoints

Knowledge

Manage knowledge bases

10 endpoints

Authentication

API Key Authentication

All API requests require authentication using your API key in the Authorization header.

Authorization Header
Authorization: Bearer your_api_key_here

API Endpoints

Request

{
  "name": "Customer Support Bot",
  "type": "conversational",
  "description": "Handles customer inquiries",
  "config": {
    "model": "gpt-4-turbo",
    "temperature": 0.7,
    "maxTokens": 1000,
    "systemPrompt": "You are a helpful assistant..."
  },
  "knowledgeBaseIds": ["kb_123", "kb_456"]
}

Response

{
  "id": "agent_abc123",
  "name": "Customer Support Bot",
  "type": "conversational",
  "status": "active",
  "createdAt": "2024-01-15T10:30:00Z",
  "config": {
    "model": "gpt-4-turbo",
    "temperature": 0.7,
    "maxTokens": 1000
  }
}

Need More Help?

Explore our comprehensive guides, SDK documentation, and code examples to get the most out of the Swfte API.