Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.1.0",
"info": {
"title": "Savanto API",
"version": "2.0.0",
"description": "The Savanto REST API gives you programmatic access to AI-powered search, chat, recommendations, and content management.\n\n## Authentication\nAll endpoints require a valid API key passed via the `Authorization` header:\n```\nAuthorization: Bearer <api_key>\n```\n\nKey types:\n- **Secret keys** (`if_sk_...`) — Full API access. Use server-side only.\n- **Publishable keys** (`if_pk_...`) — Limited to search, chat, and feedback. Safe for client-side."
},
"servers": [
{
"url": "https://api.savanto.ai",
"description": "Production"
}
],
"security": [
{
"BearerAuth": []
}
],
"components": {
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "API key (secret or publishable) passed as Bearer token"
}
},
"schemas": {
"ChatResponse": {
"type": "object",
"properties": {
"object": {
"type": "string",
"enum": ["event"]
},
"requestId": {
"type": "string"
},
"data": {}
},
"required": ["object", "requestId"]
},
"ChatStreamChunk": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"data": {}
},
"required": ["type"]
},
"ErrorResponse": {
"type": "object",
"properties": {
"object": {
"type": "string",
"enum": ["error"]
},
"requestId": {
"type": "string"
},
"error": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"invalid_request_error",
"authentication_error",
"authorization_error",
"rate_limit_error",
"api_error"
]
},
"message": {
"type": "string"
},
"code": {
"type": "string"
},
"param": {
"type": ["string", "null"]
}
},
"required": ["type", "message", "code", "param"]
}
},
"required": ["object", "requestId", "error"]
},
"ChatRequest": {
"type": "object",
"properties": {
"message": {
"type": "string",
"minLength": 1
},
"threadId": {
"type": "string",
"minLength": 1
},
"stream": {
"type": "boolean"
},
"userJwt": {
"type": "string"
},
"productFilter": {
"type": "object",
"additionalProperties": {}
},
"postFilter": {
"type": "object",
"additionalProperties": {}
},
"promptId": {
"type": "string"
},
"offerResponse": {},
"visitorId": {
"type": "string"
},
"source": {
"type": "string",
"maxLength": 64
}
},
"required": ["message", "threadId"]
},
"StartCrawlRequest": {
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"example": "https://example.com"
},
"workspaceId": {
"type": "string"
},
"maxPages": {
"type": "integer",
"exclusiveMinimum": 0
},
"isOnboarding": {
"type": "boolean"
},
"strategy": {
"type": "string",
"enum": ["full", "smart"]
},
"trigger": {
"type": "string",
"enum": ["manual", "scheduled"]
}
},
"required": ["url"]
},
"SingleScrapeRequest": {
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"example": "https://example.com/page"
},
"workspaceId": {
"type": "string"
}
},
"required": ["url"]
},
"UpdateCrawlConfigRequest": {
"type": "object",
"properties": {
"workspaceId": {
"type": "string"
},
"strategy": {
"type": "string",
"enum": ["full", "smart"]
},
"schedule": {
"type": "string",
"enum": ["none", "daily", "weekly", "monthly"]
},
"preferredHour": {
"type": "integer",
"minimum": 0,
"maximum": 23
},
"maxPages": {
"type": "integer",
"exclusiveMinimum": 0
},
"excludePatterns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxItems": 50
},
"excludeSelectors": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxItems": 50
},
"includePatterns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxItems": 50
},
"overagesEnabled": {
"type": "boolean"
}
}
},
"EnrollCrawlNotificationRequest": {
"type": "object",
"properties": {
"email": {
"type": "string",
"maxLength": 320,
"format": "email",
"example": "merchant@example.com",
"description": "Recipient for the crawl-complete email. Caller is responsible for validating the signed-in user owns this address."
}
},
"required": ["email"]
},
"ScrapeRequest": {
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"example": "https://example.com/page"
},
"action": {
"type": "string",
"enum": ["scrape", "delete"],
"example": "scrape"
},
"source": {
"type": "string"
},
"workspaceId": {
"type": "string"
}
},
"required": ["url"]
},
"ProductInput": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"content": {
"type": "string",
"maxLength": 200000
},
"searchableText": {
"type": "string",
"maxLength": 200000
},
"excerpt": {
"type": "string",
"maxLength": 1000
},
"price": {
"type": ["number", "null"],
"minimum": 0
},
"salePrice": {
"type": ["number", "null"],
"minimum": 0
},
"regularPrice": {
"type": ["number", "null"],
"minimum": 0
},
"onSale": {
"type": "boolean"
},
"priceMin": {
"type": ["number", "null"],
"minimum": 0
},
"priceMax": {
"type": ["number", "null"],
"minimum": 0
},
"stockQuantity": {
"type": ["number", "null"],
"minimum": 0
},
"stockStatus": {
"type": "string",
"enum": ["instock", "outofstock", "onbackorder"]
},
"sku": {
"type": "string",
"maxLength": 100
},
"type": {
"type": "string",
"enum": ["simple", "variable", "grouped", "external"]
},
"weight": {
"type": ["number", "null"],
"minimum": 0
},
"dimensions": {
"type": ["object", "null"],
"properties": {
"length": {
"type": ["number", "null"],
"minimum": 0
},
"width": {
"type": ["number", "null"],
"minimum": 0
},
"height": {
"type": ["number", "null"],
"minimum": 0
}
}
},
"rating": {
"type": ["number", "null"],
"minimum": 0,
"maximum": 5
},
"reviewCount": {
"type": "number",
"minimum": 0
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"brands": {
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"type": ["string", "null"]
},
"url": {
"type": "string"
},
"status": {
"type": "string",
"maxLength": 50
},
"visibility": {
"type": "string",
"maxLength": 50
},
"featured": {
"type": "boolean"
},
"virtual": {
"type": "boolean"
},
"downloadable": {
"type": "boolean"
},
"attributes": {
"type": ["object", "null"],
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"maxLength": 500
},
"maxItems": 50
}
},
"metadata": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"maxLength": 1000
},
"maxItems": 50
}
]
}
},
"source": {
"type": "string",
"maxLength": 50
},
"indexStatus": {
"type": "string",
"enum": ["active", "hidden", "disabled"]
}
},
"required": ["id", "name"]
},
"Product": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"content": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"searchableText": {
"type": "string"
},
"price": {
"type": ["number", "null"]
},
"salePrice": {
"type": ["number", "null"]
},
"regularPrice": {
"type": ["number", "null"]
},
"onSale": {
"type": "boolean"
},
"priceMin": {
"type": ["number", "null"]
},
"priceMax": {
"type": ["number", "null"]
},
"stockQuantity": {
"type": ["number", "null"]
},
"stockStatus": {
"type": "string",
"enum": ["instock", "outofstock", "onbackorder"]
},
"sku": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["simple", "variable", "grouped", "external"]
},
"weight": {
"type": ["number", "null"]
},
"dimensions": {
"type": ["object", "null"],
"properties": {
"length": {
"type": ["number", "null"]
},
"width": {
"type": ["number", "null"]
},
"height": {
"type": ["number", "null"]
}
}
},
"rating": {
"type": ["number", "null"]
},
"reviewCount": {
"type": "number"
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"brands": {
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"type": ["string", "null"]
},
"url": {
"type": "string"
},
"status": {
"type": "string"
},
"visibility": {
"type": "string"
},
"featured": {
"type": "boolean"
},
"virtual": {
"type": "boolean"
},
"downloadable": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"attributes": {
"type": ["object", "null"],
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"metadata": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"source": {
"type": "string"
},
"indexStatus": {
"type": "string",
"enum": ["active", "hidden", "disabled"]
},
"score": {
"type": "number"
},
"matchingChunks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chunkText": {
"type": "string"
},
"order": {
"type": "number"
}
},
"required": ["chunkText", "order"]
}
}
},
"required": ["id", "name"]
},
"Pagination": {
"type": "object",
"properties": {
"total": {
"type": ["number", "null"]
},
"limit": {
"type": "number"
},
"hasMore": {
"type": "boolean"
},
"offset": {
"type": "number"
},
"cursor": {
"type": ["string", "null"]
}
},
"required": ["total", "limit", "hasMore"]
},
"ProductSearchRequest": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 200000
},
"filters": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object",
"properties": {},
"additionalProperties": {}
}
]
}
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"useAgent": {
"type": "boolean"
},
"facetFields": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"enum": ["categories", "brands", "tags", "stockStatus", "onSale", "featured", "type", "priceRanges"]
},
{
"type": "string",
"pattern": "^(attributes|metadata)\\..+$",
"maxLength": 128
}
]
},
"maxItems": 20,
"description": "Fields to return aggregate counts for. Valid values: categories, brands, tags, stockStatus, onSale, featured, type, priceRanges, attributes.{key}, metadata.{key}. Facet keys in the response match the requested field names."
},
"searchContext": {
"type": "string",
"enum": ["widget", "native", "chat", "api", "internal", "unknown"]
},
"trackAnalytics": {
"type": "boolean"
}
},
"required": ["text"]
},
"BulkOperation": {
"type": "object",
"properties": {
"object": {
"type": "string",
"enum": ["bulk_operation"]
},
"requestId": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"processed": {
"type": "number"
},
"succeeded": {
"type": "array",
"items": {
"type": "string"
}
},
"failed": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"error": {
"type": "string"
}
},
"required": ["error"]
}
}
},
"required": ["processed", "succeeded", "failed"]
}
},
"required": ["object", "requestId", "data"]
},
"DeleteResponse": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"requestId": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"deleted": {
"type": "boolean",
"enum": [true]
}
},
"required": ["id", "deleted"]
}
},
"required": ["object", "requestId", "data"]
},
"PostInput": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"content": {
"type": "string",
"maxLength": 200000
},
"searchableText": {
"type": "string",
"maxLength": 200000
},
"excerpt": {
"type": "string",
"maxLength": 1000
},
"postType": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"status": {
"type": "string",
"enum": ["publish", "draft", "private", "pending"]
},
"authorId": {
"type": "string",
"maxLength": 100
},
"authorName": {
"type": "string",
"maxLength": 200
},
"publishedAt": {
"type": ["string", "null"]
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"url": {
"type": "string"
},
"featuredImage": {
"type": ["string", "null"]
},
"source": {
"type": "string",
"maxLength": 50
},
"indexStatus": {
"type": "string",
"enum": ["active", "hidden", "disabled"]
},
"metadata": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 5000
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"maxLength": 5000
},
"maxItems": 500
}
]
}
},
"attributes": {
"type": ["object", "null"],
"additionalProperties": {}
}
},
"required": ["id", "title"]
},
"Post": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"searchableText": {
"type": "string"
},
"postType": {
"type": "string"
},
"url": {
"type": "string"
},
"status": {
"type": "string"
},
"authorId": {
"type": "string"
},
"authorName": {
"type": "string"
},
"wordCount": {
"type": "number"
},
"readingTime": {
"type": "number"
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"metaTitle": {
"type": "string"
},
"metaDescription": {
"type": "string"
},
"featuredImage": {
"type": ["string", "null"]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"publishedAt": {
"type": ["string", "null"]
},
"attributes": {
"type": ["object", "null"],
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"metadata": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"source": {
"type": "string"
},
"indexStatus": {
"type": "string",
"enum": ["active", "hidden", "disabled"]
},
"score": {
"type": "number"
},
"matchingChunks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chunkText": {
"type": "string"
},
"order": {
"type": "number"
}
},
"required": ["chunkText", "order"]
}
}
},
"required": ["id", "title"]
},
"PostSearchRequest": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 200000
},
"filters": {
"type": "object",
"properties": {
"postType": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"status": {
"type": "string",
"enum": ["publish", "draft", "private", "pending"]
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": {}
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"searchContext": {
"type": "string",
"enum": ["widget", "native", "chat", "api", "internal", "unknown"]
},
"trackAnalytics": {
"type": "boolean"
}
},
"required": ["text"]
},
"ThreadSearchRequest": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"userId": {
"type": "string"
},
"dateFrom": {
"type": "string"
},
"dateTo": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 10
},
"offset": {
"type": "integer",
"minimum": 0,
"default": 0
},
"minMessages": {
"type": "integer",
"minimum": 0
},
"maxMessages": {
"type": "integer",
"minimum": 0
},
"minTokens": {
"type": "integer",
"minimum": 0
},
"maxTokens": {
"type": "integer",
"minimum": 0
},
"hasUnresolvedQueries": {
"type": "boolean"
},
"sortBy": {
"type": "string",
"enum": ["timestamp", "messageCount", "tokenCount"],
"default": "timestamp"
},
"sortOrder": {
"type": "string",
"enum": ["asc", "desc"],
"default": "desc"
}
}
},
"ThreadExportRequest": {
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": ["json", "csv"],
"default": "json"
},
"dateFrom": {
"type": "string"
},
"dateTo": {
"type": "string"
},
"userId": {
"type": "string"
},
"includeContent": {
"type": "boolean",
"default": false
}
}
},
"ThreadBulkDeleteRequest": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
},
"required": ["ids"]
},
"FeedbackSubmission": {
"type": "object",
"properties": {
"rating": {
"type": "string",
"enum": ["positive", "negative"]
},
"source": {
"type": "string",
"enum": ["chat_response", "recommendation", "search_result", "content"]
},
"threadId": {
"type": "string"
},
"contentId": {
"type": "string"
},
"contentType": {
"type": "string",
"enum": ["product", "post", "prompt", "message", "general"]
},
"comment": {
"type": "string"
},
"category": {
"type": "string"
},
"queryText": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {}
},
"userJwt": {
"type": "string"
},
"messageId": {
"type": "string"
}
},
"required": ["rating"]
},
"PromptInput": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"title": {
"type": "string",
"maxLength": 200
},
"description": {
"type": "string",
"maxLength": 500
},
"cannedResponse": {
"type": "string",
"maxLength": 5000
},
"responseFormat": {
"type": "string",
"enum": ["markdown", "text", "html"]
},
"overrideMode": {
"type": "string",
"enum": ["override", "fallback"]
},
"postIds": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100
},
"maxItems": 50
},
"productIds": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100
},
"maxItems": 50
},
"followUpIds": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100
},
"maxItems": 20
},
"tags": {
"type": "array",
"items": {
"type": "string",
"maxLength": 50
},
"maxItems": 20
},
"categories": {
"type": "array",
"items": {
"type": "string",
"maxLength": 50
},
"maxItems": 10
},
"status": {
"type": "string",
"maxLength": 50
},
"priority": {
"type": "integer",
"minimum": 0,
"maximum": 9999
},
"icon": {
"type": "string",
# --- truncated at 32 KB (690 KB total) ---
# Full source: https://artifacts.apis.io/savanto-ai/openapi/_original/savanto-ai-api-openapi.json