Skip to main content
POST
/
organisations
/
{orgId}
/
workspaces
/
{workspaceId}
/
similarity-search
Find similar entities
curl --request POST \
  --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/similarity-search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "Number of tokens used",
  "filters": [
    "knowledge-base",
    "insights",
    "opportunities",
    "solutions"
  ]
}
'
{
  "data": {
    "totalResults": 123,
    "opportunities": [
      {
        "id": "<string>",
        "score": 123,
        "metadata": {
          "nodeId": "<string>",
          "content": "<string>"
        }
      }
    ],
    "knowledge": [
      {
        "id": "<string>",
        "score": 123,
        "metadata": {
          "id": "<string>",
          "content": "<string>"
        }
      }
    ],
    "insights": [
      {
        "id": "<string>",
        "score": 123,
        "metadata": {
          "nodeId": "<string>",
          "insightId": "<string>",
          "content": "<string>"
        }
      }
    ],
    "solutions": [
      {
        "id": "<string>",
        "score": 123,
        "metadata": {
          "nodeId": "<string>",
          "status": "Backlog",
          "content": "<string>"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT authentication for organization-scoped endpoints.

Path Parameters

orgId
string
required

Organization ID

workspaceId
string
required

Workspace ID

Body

application/json
query
string
required

Query string

Example:

"Number of tokens used"

filters
enum<string>[]
required

List of Pinecone sources to search over

Available options:
knowledge-base,
insights,
opportunities,
solutions
Example:
[
"knowledge-base",
"insights",
"opportunities",
"solutions"
]

Response

Similarity search completed successfully

Response containing a similarity search result

data
object
required

Similarity search response data