← Back to Integrations
REST API

Build anything with our API

Full REST API access with official SDKs for JavaScript/TypeScript and PHP. Build custom integrations for any platform.

RESTful API

Clean, predictable endpoints following REST conventions.

Secure Auth

API key authentication with scoped permissions.

Streaming

NDJSON streaming for real-time chat responses.

Webhooks

Real-time callbacks for content and conversation events.

API Endpoints

Everything you need to power AI search and chat

POST/chat
POST/products/search
POST/recommendations/products
POST/products
POST/posts
GET/threads/{id}

View full API reference

Official SDKs

Get started quickly with our type-safe SDKs

JavaScript / TypeScript
npm install @savantoai/ai-sdk
import { createClient, searchProducts } from '@savantoai/ai-sdk';

const client = createClient({
  baseUrl: 'https://api.savanto.ai',
  auth: process.env.SAVANTO_API_KEY,
});

// Semantic search
const { data } = await searchProducts({
  client,
  body: { query: 'warm jacket for hiking', limit: 10 },
});

// Chat
const { response } = await chat({
  client,
  body: {
    message: 'What jackets do you recommend?',
    threadId: 'thread_123',
    stream: true,
  },
});
PHP
composer require savanto/ai-sdk
// PHP SDK — coming soon

Authentication

All API requests require an API key passed in the Authorization header. You can create and manage API keys from your dashboard.

Authorization: Bearer your_api_key_here

Ready to start building?

Get your API key and start integrating in minutes.