> For the complete documentation index, see [llms.txt](https://tsanet.gitbook.io/connect/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tsanet.gitbook.io/connect/api-reference/entity-search.md).

# Entity Search

Partner and entity search functionality

## GET /v1/partners/{searchTerm}

> Search for collaboration partners

```json
{"openapi":"3.0.3","info":{"title":"TSANet Connect Core API","version":"1.0.0"},"tags":[{"name":"Entity Search","description":"Partner and entity search functionality"}],"servers":[{"url":"http://localhost:8080","description":"Local"},{"url":"https://connect2.tahoelab.us","description":"Dev"},{"url":"https://connect2.tsanet.net","description":"Beta"},{"url":"https://connect2.tsanet.org","description":"Prod"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Paste a Bearer JWT here. Two token types are accepted:\n\n**Connect1 User Tokens** — issued by the Connect1 identity service. Copy the token from your Connect1 session.\n\n**Azure AD M2M** — use the `azureClientCredentials` scheme below to get a token, then paste it here.\n"}},"schemas":{"PartnerSelectionDTO":{"type":"object","properties":{"label":{"type":"string","maxLength":191},"companyName":{"type":"string","maxLength":191},"departmentName":{"type":"string","maxLength":191},"companyId":{"type":"integer","format":"int64"},"departmentId":{"type":"integer","format":"int64"},"documentId":{"type":"integer","format":"int64"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/TagDTO"}}}},"TagDTO":{"type":"object","properties":{"tag":{"type":"string","maxLength":191}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"validationErrors":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}},"ProblemDetail":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","format":"int32"},"detail":{"type":"string"},"instance":{"type":"string","format":"uri"}},"additionalProperties":true}}},"paths":{"/v1/partners/{searchTerm}":{"get":{"tags":["Entity Search"],"summary":"Search for collaboration partners","operationId":"searchPartners","parameters":[{"name":"searchTerm","in":"path","required":true,"description":"The name of the partner you would like to search for","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"List of matching partners","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerSelectionDTO"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}}}}
```

## Semantic search for collaboration partners

> Search for partners using natural language queries. This endpoint uses AI-powered \
> semantic search to understand the intent of your query and find relevant partners \
> based on their capabilities, technologies, industries, and descriptions.\
> \
> Only returns partners that are interactable based on your community access.\
> \
> Examples:\
> \- "partners who handle AWS networking"\
> \- "companies specializing in retail logistics"\
> \- "database migration experts"<br>

```json
{"openapi":"3.0.3","info":{"title":"TSANet Connect Core API","version":"1.0.0"},"tags":[{"name":"Entity Search","description":"Partner and entity search functionality"}],"servers":[{"url":"http://localhost:8080","description":"Local"},{"url":"https://connect2.tahoelab.us","description":"Dev"},{"url":"https://connect2.tsanet.net","description":"Beta"},{"url":"https://connect2.tsanet.org","description":"Prod"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Paste a Bearer JWT here. Two token types are accepted:\n\n**Connect1 User Tokens** — issued by the Connect1 identity service. Copy the token from your Connect1 session.\n\n**Azure AD M2M** — use the `azureClientCredentials` scheme below to get a token, then paste it here.\n"}},"schemas":{"PartnerSelectionDTO":{"type":"object","properties":{"label":{"type":"string","maxLength":191},"companyName":{"type":"string","maxLength":191},"departmentName":{"type":"string","maxLength":191},"companyId":{"type":"integer","format":"int64"},"departmentId":{"type":"integer","format":"int64"},"documentId":{"type":"integer","format":"int64"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/TagDTO"}}}},"TagDTO":{"type":"object","properties":{"tag":{"type":"string","maxLength":191}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"validationErrors":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}},"ProblemDetail":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","format":"int32"},"detail":{"type":"string"},"instance":{"type":"string","format":"uri"}},"additionalProperties":true}}},"paths":{"/v1/partners/search":{"get":{"tags":["Entity Search"],"summary":"Semantic search for collaboration partners","description":"Search for partners using natural language queries. This endpoint uses AI-powered \nsemantic search to understand the intent of your query and find relevant partners \nbased on their capabilities, technologies, industries, and descriptions.\n\nOnly returns partners that are interactable based on your community access.\n\nExamples:\n- \"partners who handle AWS networking\"\n- \"companies specializing in retail logistics\"\n- \"database migration experts\"\n","operationId":"searchPartnersSemanticSearch","parameters":[{"name":"query","in":"query","required":true,"description":"Natural language search query describing what kind of partner you're looking for","schema":{"type":"string","maxLength":500}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results to return","schema":{"type":"integer","format":"int32","default":10,"minimum":1,"maximum":50}}],"responses":{"200":{"description":"List of matching interactable partners ranked by relevance","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerSelectionDTO"}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}}}}
```
