Savanto API API

The Savanto REST API gives you programmatic access to AI-powered search, chat, recommendations, and content management.

GitHub OpenAPI

Operations 147

POST /chat Send a chat message #
POST /crawl Start a website crawl #
POST /crawl/scrape Scrape a single page #
GET /crawl/config Get crawl configuration #
PUT /crawl/config Update crawl configuration #
GET /crawl/history Get crawl history #
GET /crawl/{id}/status Get crawl status #
POST /crawl/{id}/cancel Cancel a running crawl #
POST /crawl/{id}/notifications Enroll for a crawl-complete email #
POST /webhooks/scrape Scrape or delete a single page #
POST /products Upsert a product #
GET /products List products #
POST /products/bulk Bulk upsert products #
DELETE /products/bulk Bulk delete products #
POST /products/search Search products #
POST /products/delete-by-query Delete products by query #
GET /products/ids List product IDs #
GET /products/{id} Get a product #
PATCH /products/{id} Patch a product #
DELETE /products/{id} Delete a product #
POST /posts Upsert a post #
POST /posts/bulk Bulk upsert posts #
DELETE /posts/bulk Bulk delete posts #
POST /posts/search Search posts #
POST /posts/delete-by-query Delete posts by query #
GET /posts/ids List post IDs #
GET /posts/{id} Get a post #
PATCH /posts/{id} Patch a post #
DELETE /posts/{id} Delete a post #
POST /threads/search Search threads #
POST /threads/export Export threads #
GET /threads/analytics Get thread analytics #
GET /threads/{id}/messages Get thread messages #
POST /threads/{id}/handoff/end End live agent handoff #
GET /threads/{id} Get thread by ID #
DELETE /threads/{id} Delete a thread #
DELETE /threads Bulk delete threads #
POST /feedback Submit feedback #
GET /feedback Search feedback #
GET /feedback/analytics Get feedback analytics #
GET /feedback/thread/{threadId} Get feedback for a thread #
DELETE /feedback/{id} Delete feedback #
POST /prompts Upsert a prompt #
GET /prompts List prompts #
POST /prompts/search Search prompts #
POST /prompts/bulk Bulk upsert prompts #
DELETE /prompts/bulk Bulk delete prompts #
GET /prompts/{id} Get a prompt #
DELETE /prompts/{id} Delete a prompt #
POST /webhooks/bulk-status Bulk update webhook status #
POST /webhooks Create a webhook #
GET /webhooks List webhooks #
POST /webhooks/{id}/test Test a webhook #
GET /webhooks/{id}/stats Get webhook stats #
GET /webhooks/{id} Get a webhook #
PUT /webhooks/{id} Update a webhook #
DELETE /webhooks/{id} Delete a webhook #
POST /taxonomies Upsert a taxonomy term #
GET /taxonomies List taxonomy terms #
POST /taxonomies/bulk Bulk upsert taxonomy terms #
DELETE /taxonomies/bulk Bulk delete taxonomy terms #
POST /taxonomies/delete-by-query Delete taxonomy terms by query #
GET /taxonomies/ids List taxonomy term IDs #
GET /taxonomies/{id} Get a taxonomy term #
DELETE /taxonomies/{id} Delete a taxonomy term #
GET /analytics/search Get search analytics #
POST /analytics/searches/search Search through search logs #
POST /analytics/searches/commit Commit a search event #
GET /analytics/chat Get chat analytics #
GET /analytics/feedback Get feedback analytics #
POST /recommendations/products Get product recommendations #
DELETE /tenant/{tenantId} Self-delete tenant #
GET /tenant/status Get tenant status #
GET /tenant/whoami Identity probe (tenant, scopes, key type) #
PATCH /tenant/features Update tenant feature flags #
GET /tenant/usage Get usage summary #
GET /tenant/usage/history Get daily usage history #
GET /tenant/workspaces List workspaces #
POST /tenant/workspaces Create a workspace #
PUT /tenant/workspaces/{workspaceId} Update a workspace #
DELETE /tenant/workspaces/{workspaceId} Delete a workspace #
GET /tenant/knowledge Get document statistics #
GET /tenant/knowledge/search Search knowledge base documents #
POST /tenant/upload-url Get presigned upload URL #
GET /tenant/mcp Get MCP configuration #
PUT /tenant/mcp Update MCP configuration #
DELETE /tenant/mcp Delete MCP configuration #
GET /tenant/live-agent/credentials/status Check live agent credential status #
POST /tenant/live-agent/credentials Store live agent credentials #
DELETE /tenant/live-agent/credentials Delete live agent credentials #
GET /tenant/live-agent/schedule Get live agent schedule #
PUT /tenant/live-agent/schedule Update live agent schedule #
DELETE /tenant/live-agent/schedule Delete live agent schedule #
GET /workspace/{workspaceId}/settings Get workspace settings #
PATCH /workspace/{workspaceId}/settings Update workspace settings #
GET /workspace/{workspaceId}/live-agent/status Get live agent connection status #
GET /workspace/{workspaceId}/live-agent/slack/channels List Slack channels for live agent #
GET /workspace/{workspaceId}/chat Get chat widget configuration #
POST /workspace/{workspaceId}/chat Update chat widget configuration #
GET /workspace/{workspaceId}/search Get search widget configuration #
POST /workspace/{workspaceId}/search Update search widget configuration #
GET /workspace/{workspaceId}/custom-domain List custom domains #
POST /workspace/{workspaceId}/custom-domain Create a custom domain #
PUT /workspace/{workspaceId}/custom-domain/{domainId} Update a custom domain #
DELETE /workspace/{workspaceId}/custom-domain/{domainId} Delete a custom domain #
GET /workspace/{workspaceId}/custom-domain/error-summary Get error counts across all domains #
GET /workspace/{workspaceId}/custom-domain/{domainId}/errors Get error logs for a domain #
DELETE /workspace/{workspaceId}/custom-domain/{domainId}/errors Clear error logs for a domain #
POST /workspace/{workspaceId}/custom-domain/validate Validate a custom domain configuration #
POST /workspace/{workspaceId}/test-connection Test domain classification with sample queries #
GET /workspace/{workspaceId}/details Get workspace details #
POST /workspace/{workspaceId}/discover-tools Discover available tools from MCP servers #
POST /workspace/{workspaceId}/custom-domain/generate AI-generate a custom domain configuration #
GET /workspace/{workspaceId}/templates Get available domain templates #
POST /provision/deprovision Deprovision a tenant or workspace #
POST /provision/keys Create an API key #
GET /provision/keys List API keys #
POST /provision/keys/{keyId}/revoke Revoke an API key #
POST /provision/keys/{keyId}/rotate Rotate an API key #
POST /provision/shopify Provision a Shopify tenant #
GET /admin/tenant/{tenantId} Get tenant details #
DELETE /admin/tenant/{tenantId} Delete a tenant and all associated data #
GET /admin/tenant/by-email/{email} Find unclaimed tenants by email #
GET /admin/tenant/by-owner/{ownerId} Find tenants by owner ID #
POST /admin/tenant/{tenantId}/claim Claim an unclaimed tenant #
PATCH /admin/tenant/{tenantId}/owner-email Update a tenant's owner email #
PATCH /admin/tenant/{tenantId}/subscription Update a tenant's subscription #
POST /admin/tenant/{tenantId}/reactivate Reactivate a soft-deleted tenant #
GET /admin/tenant/{tenantId}/usage Get detailed usage for a tenant #
PATCH /admin/tenant/{tenantId}/usage Set usage metric values #
PATCH /admin/tenant/{tenantId}/tier Update a tenant's tier #
POST /admin/tenant/{tenantId}/crawls/reset Reset a tenant's crawl records for the current month #
GET /admin/prospects List all prospects #
POST /admin/prospects Record newly discovered prospects #
PATCH /admin/prospects/{domain} Update a prospect status #
POST /admin/prospects/{domain}/demo Link a built demo workspace to a prospect #
DELETE /admin/prospects/demos/{workspaceId} Unlink a deleted demo workspace from whichever prospect points at it #
POST /admin/prospects/{domain}/contact Set a prospect contact email by hand #
POST /admin/prospects/{domain}/qualify Read a prospect site and record what it finds #
POST /admin/prospects/{domain}/draft Draft an introduction email for a prospect (never sends) #
GET /admin/prospects/{domain}/draft The most recent draft for a prospect, if one has been composed #
GET /admin/demo-qa List recorded demo QA verdicts for a tenant #
POST /admin/demo-qa/{workspaceId} Ask a demo its starter questions and record the verdict #
GET /admin/demo-views Summarise demo page opens for a tenant #
POST /admin/demo-views/{workspaceId} Record one open of a demo page #
POST /compliance/customer-redact Redact a customer across all stored PII #
POST /compliance/customer-data-request Record a customer data-export request #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/savanto-ai:savanto-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

savanto-ai-api-openapi.json Raw ↑
{
  "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