Skip to main content
POST
/
kbs
/
{kbId}
/
docs
/
{docId}
/
chunks
Search chunks within a document
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/kbs/{kbId}/docs/{docId}/chunks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>"
}
'
{
  "success": true,
  "data": {
    "results": [
      {
        "chunk": "<string>",
        "score": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

kbId
string
required

Knowledge base ID.

docId
string
required

Document ID.

Body

application/json
query
string
required

Search query.

Response

Success.

success
boolean
required
data
object
required