Skip to main content
POST
/
kbs
/
{kbId}
/
search
Semantic search within a KB
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/kbs/{kbId}/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "product pricing strategy",
  "limit": 5
}
'
{
  "success": true,
  "data": {
    "results": [
      {
        "documentId": "doc_01HXYZ",
        "documentName": "Pricing Guide 2024.pdf",
        "chunk": "Our tiered pricing model starts at $29/month...",
        "score": 0.94
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

kbId
string
required

Knowledge base ID.

Body

application/json
query
string
required

Natural language search query.

limit
integer
default:10

Number of results to return.

Response

Success.

success
boolean
required
data
object
required