Query a search profile
POST
jwtheader
AuthorizationBearer <JWT>application/json- body
profileId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64indexId?stringLength
1 <= lengthquery*stringLength
1 <= lengthtopK?integerRange
1 <= value <= 100application/json- response
profileId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64indexId?stringLength
1 <= lengthgenerationId*stringMatch
^[A-Za-z0-9_-]{1,64}$items*array<>curl -X POST 'https://ai-search.your-tenant-id.my.contextual.io/api/v1/query' \ -H 'Content-Type: application/json' \ -d '{ "profileId": "string", "query": "string"}'Example Response
{ "profileId": "string", "indexId": "string", "generationId": "string", "items": [ { "recordUri": "string", "sourceHash": "string", "documentId": "string", "chunkId": "string", "score": 0, "semanticRank": 1, "keywordRank": 1, "rerankScore": 0, "content": "string", "projections": { "property1": "string", "property2": "string" } } ]}