Skip to main content
POST
/
api
/
embeddings
/
query
Query embeddings for nearest neighbors
curl --request POST \
  --url https://platform.kodexa.ai/api/embeddings/query \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "limit": 123,
  "projectId": "<string>",
  "query": "<string>"
}
'
{}

Authorizations

x-api-key
string
header
required

API key for authentication. Create one from the Kodexa platform UI under Settings > Access Tokens.

Body

application/json
limit
integer<int32>

Maximum number of results to return.

projectId
string

ID of the project to search within.

query
string

The search query text to find similar embeddings for.

Response

Nearest neighbor results

The response is of type object.