Introduction

Welcome to the Fig1 AI SDK documentation. This SDK provides a simple REST API to integrate AI-powered conversational experiences, content management, and semantic search into your applications.

What is Fig1?

Fig1 is a platform for building AI-powered customer experiences. With Fig1, you can:

  • Create AI Assistants: Deploy conversational AI powered by Claude that understands your content and business
  • Manage Content: Organize and deliver content through natural conversation
  • Build Knowledge Bases: Enable semantic search across your documentation, products, and FAQs
  • Customize Personas: Define how your AI communicates with different voice and behavior settings

SDK Overview

The Fig1 SDK is a REST API—no packages to install. Just make HTTP requests and you're up and running.

Base URL

https://app.fig1.ai/api/sdk

Core Endpoints

| Endpoint | Description | |----------|-------------| | POST /agent/chat | Send messages and receive AI responses | | POST /knowledge/documents | Upload and manage knowledge base documents | | GET /webhook-tools | List available custom tools | | GET /content | Retrieve content items | | POST /content | Create new content | | GET /personas | List available AI personas | | POST /rag/search | Semantic search your knowledge base | | POST /assets/upload | Upload files and media |

Quick Example

const response = await fetch('https://app.fig1.ai/api/sdk/agent/chat', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-Fig1-API-Key': 'fig1_sdk_your_api_key'
  },
  body: JSON.stringify({
    message: 'What are your best products for beginners?'
  })
});

const { data } = await response.json();
console.log(data.message);
// "For beginners, I'd recommend starting with..."

Getting Started

  1. Authentication — Get your API key and learn about security
  2. Quick Start — Build your first integration in 5 minutes
  3. API Reference — Explore all available endpoints

Framework Guides

We have detailed integration guides for popular frameworks:

Need Help?

Use the chat widget in the bottom-right corner to ask questions about the SDK. It's powered by Fig1 itself!