Skip to main content
POST
/
ai
/
data
/
v1
/
search
Search publisher data
curl --request POST \
  --url https://platform.ai.gloo.com/ai/data/v1/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "How can I find true happiness?",
  "collection": "GlooProd",
  "tenant": "TestOrg",
  "certainty": 0.5,
  "limit": 1
}
'
{
  "data": [
    {
      "uuid": "12345678-abcd-1234-abcd-1234567890ab",
      "metadata": {
        "creation_time": "2025-09-02T23:49:49.338000Z",
        "last_update_time": "2025-09-02T23:50:36.348000Z",
        "distance": 0.39595216512680054,
        "certainty": 0.8020238876342773,
        "score": 0,
        "explain_score": "",
        "is_consistent": false,
        "rerank_score": null
      },
      "properties": {
        "item_title": "Finding True Happiness",
        "publisher": "Test Org",
        "publication_date": "2025-09-02",
        "snippet": "# Finding True Happiness: A Christian Perspective",
        "type": "Article",
        "item_id": "12345678-abcd-1234-abcd-1234567890aa"
      },
      "references": null,
      "vector": {},
      "collection": "GlooProd"
    }
  ],
  "intent": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required

Search query.

Minimum string length: 1
collection
string
required

Collection to search in.

Minimum string length: 1
tenant
string
required

Tenant to search in.

certainty
number
default:0.75

The minimum certainty threshold for snippets.

Required range: 0 <= x <= 1
limit
integer
default:10

Maximum number of results to return.

Required range: x >= 1

Response

Successful response

data
object[]
required
intent
integer
required