Search Marketplace Knowledge
POST https://api.suger.cloud/org/{orgId}/knowledge/search
Searches the shared knowledge index covering AWS, Azure, and GCP marketplace documentation, Suger docs, and internal support knowledge.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
orgId | path | string | yes | Organization ID |
Request Body
Required. Content-Type: application/json · Schema: SearchKnowledgeRequest
SearchKnowledgeRequest fields:
| Field | Type | Required | Description |
|---|---|---|---|
queryText | string | yes | |
searchMode | string | no | |
topK | integer | no |
Responses
200 — Knowledge search results
Content-Type: application/json · Schema: SearchKnowledgeResponse
SearchKnowledgeResponse fields:
| Field | Type | Required | Description |
|---|---|---|---|
queryText | string | no | |
resultCount | integer | no | |
results | array<SearchKnowledgeResult> | no | |
searchMode | string | no |
SearchKnowledgeResult fields:
| Field | Type | Required | Description |
|---|---|---|---|
confidence | number | no | |
content | string | no | |
id | string | no | |
section | string | no | |
source | string | no |
400 — Bad request error
Content-Type: application/json
500 — Internal server error
Content-Type: application/json
Example
Generated from this operation's schema. Values are placeholders —
substitute your own ids, and set SUGER_TOKEN to a bearer token
from the OAuth client-credentials exchange.
Request
curl -X POST 'https://api.suger.cloud/org/{orgId}/knowledge/search' \
-H "Authorization: Bearer $SUGER_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"queryText": "string"
}' Response — 200
{
"queryText": "string",
"resultCount": 1,
"results": [
{
"confidence": 100,
"content": "string",
"id": "01H0000000000000000000",
"section": "string",
"source": "string"
}
],
"searchMode": "string"
} Error — 400
"string" View as Markdown · Interactive API reference
Spotted something wrong or out of date on this page? Tell us and we'll correct it.