AskAgento API
Information
Askagento API
    AI ChatbotpostCORS for AI ChatbotoptionsAuto FilterpostCORS for Auto FilteroptionsInstallation statusgetInstall pluginpostAuto LabelpostCORS for Auto LabeloptionsAI AgentspostCORS for AI AgentsoptionsCurrent billing plangetAI Recommend (cross-sell)getAI Recommend (upsell)getAI SearchpostCORS for AI SearchoptionsUpdate product datapostUninstall pluginpostUsage limitsget
Schemas
powered by Zudoku
Welcome to AskAgento API
Welcome to AskAgento API

Schemas


WooCommerceTermObject

WooCommerce taxonomy term (category or tag).
id
​integer
name
​string
slug
​string

Product

id
​integer · required
title
​string
name
​string
description
​string
short_description
​string
sku
​string
price
​string

Effective price (sale price when on sale, otherwise regular price).

regular_price
​string
sale_price
​string
price_html
​string

HTML-formatted price string (may include <span> tags).

​
status
​string

Product publication status (e.g. publish, draft, private).

featured
​boolean

True when the merchant has marked the product as featured.

on_sale
​boolean

True when a sale price is active.

permalink
​string · uri

Canonical product page URL.

image_url
​string · uri
​WooCommerceTermObject[]

Product categories; each item is a WooCommerce term object.

​WooCommerceTermObject[]

Product tags; each item is a WooCommerce term object.

​object[]
​object[]

Product variation objects (variable products only).

date_created
​string · date-time

Product creation timestamp (used by get_featured_products new_arrivals sort).

date_modified
​string · date-time
created_at
​string · date-time

Alias for date_created (plugin may send either field).

updated_at
​string · date-time

Alias for date_modified (plugin may send either field).

InstallRequest

domain
​string · required
​Product[] · required
system
​string · enum · required

woocommerce — full catalogue with image + text data. knowledge_base — text-only Confluence/article chunks for askagento.com chat.

Enum values:
woocommerce
knowledge_base
plugin_version
​string
woocommerce_version
​string
total_products
​integer
shop_ip
​string

Optional IPv4 string for the shop host (plugin may send DNS resolution result).

UpdateRequest

​Product[] · required
system
​string · enum · required
Enum values:
woocommerce
domain
​string
plugin_version
​string
woocommerce_version
​string
total_products
​integer

UpdateResponse

status
​string · required
site_id
​string · required
synced_products
​integer · required
update_needed
​boolean · required

True when the catalogue hash changed on this sync (re-embed required). Unchanged-hash syncs do not clear a previously true flag.

message
​string · required

UninstallRequest

system
​string · enum · required
Enum values:
woocommerce
knowledge_base
domain
​string
plugin_version
​string
woocommerce_version
​string

InstallAcceptedResponse

status
​string · required
site_id
​string · required

New site identifier; store with api_key for subsequent calls.

api_key
​string · required

Install-time secret; required on all routes except POST /install (new installs) and OPTIONS preflights.

message
​string · required

StatusOkResponse

status
​string

InstallStatusResponse

site_id
​string
installed_at
​string | null · date-time
status_message
​string
status
​string

RecommendationsPayload

site_id
​string
generated_at
​string

ISO 8601 timestamp (UTC) with Z suffix

​object

Map of source product id to cross-sell targets (similarity-ranked)

​object

Map of source product id (string) to ranked neighbor list

RecommendationNeighbor

product_id
​string
distance
​number | null · float

Hybrid score; lower is better when present

title
​string
image_url
​string
source
​string

hybrid, image, or text

SearchRequest

query
​string

Text query (alias q)

q
​string

Alias for query

image_base64
​string

Base64 image; data URLs are accepted

modality
​string · enum

Omit for automatic modality: text if only query/q, image if only image_base64, both if query and image are present. both requires query (≥2 chars) and image_base64.

Enum values:
text
image
both
limit
​integer · min: 1 · max: 50
Default: 12

SearchHit

product_id
​string
title
​string
image_url
​string
distance
​number | null · float

SearchResponse

site_id
​string · required
modality
​string · enum · required
Enum values:
text
image
both
​SearchHit[] · required
query
​string

Echoed text query when modality is text or both

ChatMessage

role
​string · enum · required
Enum values:
system
user
assistant
content
​string · maxLength: 12000 · required

ChatbotRequest

action
​string · enum

chat — full conversation; last user turn drives product retrieval (see POST /chatbot). health — connectivity probe; messages optional and ignored; max_completion_tokens ignored.

Enum values:
chat
health
Default: chat
​ChatMessage[] · maxItems: 24

Required when action=chat (non-empty after normalization); omitted or ignored for health. Up to 24 turns; each content truncated to 12 000 chars.

max_completion_tokens
​integer · max: 4096

Alias max_tokens also accepted; capped at 4096. Ignored when action=health (server uses 3).

Default: 1024

ChatbotResponse

site_id
​string · required
action
​string · enum · required
Enum values:
chat
health
latency_ms
​integer · required

Round-trip latency to the chat provider in milliseconds

​object · required
reply
​string · required

Text reply from the model

products_retrieved
​integer · required

Number of catalogue products injected as context for action=chat; always 0 for health

limits_tokens_remaining
​integer | null

Remaining token quota for the site after this call; null if no quota is set

ChatbotErrorResponse

error
​string
llm_status
​integer

HTTP status code returned by the upstream chat API

McpRequest

jsonrpc
​string · enum · required
Enum values:
2.0
method
​string · required

One of: initialize, notifications/initialized, tools/call, tools/list

​

Request id (omit for notifications)

​object

For tools/call: {"name": "chat_with_shop"|"get_catalogue_stats"|"get_featured_products"|"get_product_by_id"|"get_shop_status"|"get_similar_products"|"list_categories"|"list_tags"|"search_products", "arguments": {...}}

McpResponse

jsonrpc
​string · enum
Enum values:
2.0
​
​object | null
error
​object | null

PlanResponse

site_id
​string
plan
​string | null

Plan slug (e.g. starter, growth); null if no plan is set

plan_label
​string | null

Human-readable plan label

trial
​boolean

True while the site is on the install-time free trial of its plan

trial_ends_at
​string | null

ISO-8601 UTC timestamp when the trial ends; null when not on a trial.

UsageLimits

tokens
​integer

Remaining AI token quota

searches
​integer

Remaining search quota

UsageResponse

site_id
​string
plan
​string | null

Plan slug; null if no plan is set

plan_label
​string | null
trial
​boolean

True while the site is on the install-time free trial of its plan

trial_ends_at
​string | null

ISO-8601 UTC timestamp when the trial ends; null when not on a trial.

​UsageLimits

Current remaining limits for this site; null if no limits are tracked

​UsageLimits

Tier-level maximums for the current plan; null if no plan is set. Includes a products field (the plan's product cap) in addition to tokens/searches.

product_count
​integer | null

Number of products in the shop's catalogue; null if not yet recorded

max_products
​integer | null

Maximum products allowed on the current plan; null if no plan is set

over_product_limit
​boolean

True when the catalogue exceeds the plan's product cap. While true, AI features are blocked until the merchant upgrades or reduces the catalogue.

FilterRequest

action
​string · enum
Enum values:
analyze
generate
upload
export
filter_action
​string · enum

Alias for action; supply either action or filter_action.

Enum values:
analyze
generate
upload
export
canonical_filters
​string[]

Alias for canonical_attributes when generating attribute filters.

LabelRequest

mode
​string · enum · required
Enum values:
attributes
categories
tags
action
​string · enum · required
Enum values:
analyze
generate
upload
export
canonical_attributes
​string[]
canonical_categories
​string[]
canonical_tags
​string[]

LabelFilterJsonResponse

Shape depends on `mode` and `action`. `generated_preview`, `uploaded_products` (upload), `filename` (export), and informational `message`.
site_id
​string
mode
​string
action
​string
Additional properties are allowed

LabelLlmErrorResponse

error
​string
llm_status
​integer

HTTP status from the upstream chat API when the failure was from the LLM

ErrorResponse

error
​string
On this page
  • WooCommerceTermObject
  • Product
  • InstallRequest
  • UpdateRequest
  • UpdateResponse
  • UninstallRequest
  • InstallAcceptedResponse
  • StatusOkResponse
  • InstallStatusResponse
  • RecommendationsPayload
  • RecommendationNeighbor
  • SearchRequest
  • SearchHit
  • SearchResponse
  • ChatMessage
  • ChatbotRequest
  • ChatbotResponse
  • ChatbotErrorResponse
  • McpRequest
  • McpResponse
  • PlanResponse
  • UsageLimits
  • UsageResponse
  • FilterRequest
  • LabelRequest
  • LabelFilterJsonResponse
  • LabelLlmErrorResponse
  • ErrorResponse