Skip to main content
cURL
Cost: Free.
Finds what the seller wrote about a subject: guidance, articles, saved replies and the shops’ policies, best match first, each with a short snippet of the passage that matched. Words are matched whole in any language (no stemming, so include the forms you expect, such as refund refunds). Only active guidance and articles, the ones the assistant uses, unless an owner or admin sends include_suggested (a suggestion past its expiry never shows). The first 10,000 characters of each text are searched. shop_id narrows it to entries for every shop or for that shop, and that shop’s policies; types to some kinds; limit (at most 20, default 10) to the best few. A POST because the words can be buyer text and URLs are kept in request logs: query (at most 500 characters) stays in the JSON body and is never logged; it reads only, nothing changes. Needs the knowledge:read scope; any workspace member may search.

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Body

application/json
query
string
required

What to look for, in the seller's or the buyer's words (1 to 500 characters). Each word is matched whole, in any language, without stemming. Operators and quotes have no special meaning.

Required string length: 1 - 500
shop_id
string

Only entries for every shop or for this connected shop, and this shop's policies. A shop outside the workspace is 404.

Pattern: ^[0-9]{1,20}$
types
enum<string>[]

What to search: any of guidance, article, policy, saved_reply; every kind when left out.

Required array length: 1 - 4 elements
Available options:
guidance,
article,
policy,
saved_reply
include_suggested
boolean

Also search guidance and articles an agent suggested that wait for the seller's approval (status: suggested). Only a workspace owner or admin (403 role_required).

limit
integer

At most this many results, 1 to 20 (default 10).

Required range: 1 <= x <= 20

Response

OK

object
string
required
Allowed value: "workspace.knowledge_search"
data
object[]
required

Best first (ties: the most recently changed first); empty when nothing matched.

results
object[]
required

Deprecated: the same list as data (the list envelope's name, AA1), kept for existing callers until 2027-05-01.