Visperity Developer REST API v4
In addition to the complete data management available through the control panel, the Visperity REST API allows you to automate URL indexing of new content directly from your CMS or eCommerce platform and remotely manage and query AI tools on-demand.
curl -X GET "https://api.visperity.com/v4/assistant?uid=YOUR_ACCOUNT_ID&apikey=YOUR_DATASET_KEY&search=shipping+rates&lang=en" \
-H "Referer: https://yourdomain.com" \
-H "Accept: application/json"
uid (Account ID) and apikey (Dataset Key) with domain whitelist verification.API Host & Authentication Protocol
All API requests must be made over secure HTTPS to https://api.visperity.com/v4.
Authenticate via your Account ID (uid) and Dataset Key (apikey) query parameters, along with a validated HTTP Referer or Origin header matching your domain whitelist.
Supply your master Account ID in the custom accountid header with every dataset or record management request.
Core API Endpoints
Click on any endpoint below to inspect required parameters, example request syntax, and JSON response models.
1. Public AI Assistant & Search APIs
GET /v4/assistant — AI Virtual Assistant query & answer generation ▾
Generates an intelligent contextual AI answer summary and relevant top resource links using vector similarity search.
| Parameter | Type | Description |
|---|---|---|
| uid Required | string |
Your Visperity Account ID. |
| apikey Required | string |
Your dataset API key. |
| search Required | string |
Customer question or search keywords (e.g. pricing plans). Also accepts search_query. |
| lang Optional | string |
Two-letter language code (e.g. en, es, fr). Defaults to en. |
| cid Optional | string |
Client conversation tracking session ID. |
| more_help Optional | integer |
Set to 1 to trigger in-depth secondary follow-up AI reasoning. |
GET /v4/livesearch — Instant search autocomplete & predictions ▾
Executes rapid predictive semantic search across indexed dataset records to power live typeahead dropdowns.
| Parameter | Type | Description |
|---|---|---|
| uid Required | string |
Your Visperity Account ID. |
| apikey Required | string |
Your dataset API key. |
| search Required | string |
Input search query string. Also accepts q or search_query. |
| lang Optional | string |
Language locale code (e.g. en, es). |
GET /v4/embed — In-page embedded search results ▾
Fetches paginated semantic results formatted for inline website search page widgets.
| Parameter | Type | Description |
|---|---|---|
| uid Required | string |
Your Visperity Account ID. |
| apikey Required | string |
Your dataset API key. |
| search Required | string |
Search query or keyword. Also accepts keyword or search_query. |
| page Optional | integer |
Page number for pagination. Defaults to 1. |
2. Dataset & Content Management CRUD API
GET /v4/datasets — List all configured datasets in your account ▾
Lists all Visperity AI Datasets associated with your account, returning the unique Dataset API Key, dataset name, and count of indexed URLs.
POST /v4/datasets — Create a new dataset in your account ▾
Creates a new Dataset in your account with the name you set in the dataset-name field.
| Field | Type | Description |
|---|---|---|
| dataset-name Required | string |
Descriptive name for your new dataset. (Also accepts dataset_name). |
GET /v4/datasets/{dataset-api-key} — Retrieve all URL content resource records for a dataset ▾
Retrieves all current URL resource records for the specified dataset. Returns the URL of the resource along with the unique record ID (ai-record-id) used for updating, viewing, or deleting.
| Path Variable | Type | Description |
|---|---|---|
| dataset-api-key Required | string |
The unique API key string of the dataset. |
POST /v4/datasets/{dataset-api-key} — Add URL to dataset with automatic web scraper indexing ▾
Posts a new URL into your dataset and indexes the content of the page automatically using the automated web scraper.
| Field | Type | Description |
|---|---|---|
| resource_url Required | string |
The destination URL of the web page or resource. |
| price Optional NEW in v4 | string |
Product or service price to display in search cards (e.g. 29.99, $49.00). |
| language_code Optional NEW in v4 | string |
Target language locale code (e.g. en, es, fr, de). Defaults to en. (Also accepts lang). |
| product_skus Optional | string |
Product SKU(s) associated with the item for exact SKU match lookups. Separate multiple SKUs with commas. |
POST /v4/datasets/{dataset-api-key} — Add URL to dataset with manually defined content & metadata ▾
Posts a new URL into your dataset with explicit content provided in the request payload instead of scraping automatically. Automatically replaces any existing records sharing the identical URL.
| Field | Type | Description |
|---|---|---|
| resource_url Required | string |
Destination URL linked from search results and virtual assistant dialogue cards. |
| title Required | string |
Title of the resource, article, or product. |
| content Required | string |
The full text content to be vectorized and embedded. |
| price Optional NEW in v4 | string |
Product or service price to display in search cards (e.g. 99.00, $149.99). |
| language_code Optional NEW in v4 | string |
Language locale code (e.g. en, es, fr, de). Defaults to en. (Also accepts lang). |
| search_excerpt Optional | string |
Custom summary excerpt for embedded search. If omitted, an AI summary is auto-generated. |
| exclude_indexing Optional | string |
Yes or No (Default: No). Protects manual content from automatic crawler overwrites. |
| product_skus Optional | string |
SKU codes for exact product lookups. Comma-separated. |
| featured_image Optional | string |
Full image URL for display in embedded and live search result cards. |
| external_id Optional | string |
Unique database record ID from your third-party CMS or eCommerce platform for synchronized PATCH updates. |
GET /v4/datasets/{dataset-api-key}/{ai-record-id} — Retrieve full details of a specific content record ▾
Views the complete indexed details of an individual URL content resource record.
| Path Variable | Type | Description |
|---|---|---|
| dataset-api-key Required | string |
The dataset API key. |
| ai-record-id Required | string |
Unique AI record identifier string. |
PUT /v4/datasets/{dataset-api-key}/{ai-record-id} — Update content record details by AI Record ID ▾
Updates an existing content resource record and recalculates vector embeddings. Note: The original destination URL is immutable and cannot be altered.
| Field | Type | Description |
|---|---|---|
| title Required | string |
Updated title of the resource. |
| content Required | string |
Updated text body to re-index into vector embeddings. |
| price Optional NEW in v4 | string |
Updated product/service price value. |
| language_code Optional NEW in v4 | string |
Updated language locale code (e.g. en, es). (Also accepts lang). |
| search_excerpt Optional | string |
Updated search excerpt. |
| exclude_indexing Optional | string |
Yes or No. |
| product_skus Optional | string |
Updated SKU numbers. |
| featured_image Optional | string |
Updated thumbnail image URL. |
PATCH /v4/datasets/{dataset-api-key}/{external-id} — Update content record using external CMS / platform ID ▾
Updates an existing content resource record matched by your external CMS or eCommerce platform ID (external_id), keeping sync without needing to track internal AI record IDs.
| Field | Type | Description |
|---|---|---|
| resource_url Required | string |
Current URL of the content resource. |
| title Required | string |
Title of the resource or product. |
| content Required | string |
Full text content for vector indexing. |
| price Optional NEW in v4 | string |
Updated product or service price value. |
| language_code Optional NEW in v4 | string |
Updated language locale code (e.g. en, es). (Also accepts lang). |
| search_excerpt Optional | string |
Search results summary excerpt. |
| exclude_indexing Optional | string |
Yes or No. |
| product_skus Optional | string |
Item SKU numbers. |
| featured_image Optional | string |
Featured product image URL. |
DELETE /v4/datasets/{dataset-api-key}/{ai-record-id} — Remove record and purge vector embeddings ▾
Permanently removes an indexed content record and purges all cached vector embeddings from the search engine index.
| Path Variable | Type | Description |
|---|---|---|
| dataset-api-key Required | string |
The dataset API key. |
| ai-record-id Required | string |
Unique AI record identifier string to delete. |
Official Postman Collection
Download pre-configured test collections, inspect complete JSON response schemas, and run mock requests instantly.
Start Building with Visperity API Today
Manage your API keys, monitor session usage quotas, and customize widget designs from your dashboard.

