Skip to main content
POST
/
agents
/
{agentId}
/
knowledge
/
preview
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "data": {
    "chunks": [
      {
        "id": "<string>",
        "answer": "<string>",
        "language": "<string>",
        "similarity": 123,
        "question": "<string>",
        "sourceUrl": "<string>"
      }
    ],
    "topScore": 123
  },
  "message": "<string>",
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Clerk JWT (browser). Requires Authorization: Bearer <clerk_jwt> and the X-Organization-Id header. Validated by the ported Clerk middleware, which sets the app.current_organization_id RLS context.

Path Parameters

agentId
string
required

Body

application/json
query
string
required
sourceIds
string[]

Response

Preview chunks + top score.

success
boolean
required
data
object
required
message
string
errors
object[]