> 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.1","info":{"title":"OpenAPI definition","version":"v0"},"tags":[{"name":"Entity Search","description":"Partner and entity search functionality"}],"servers":[{"url":"http://connect2.tsanet.org","description":"Generated server url"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/partners/{searchTerm}":{"get":{"tags":["Entity Search"],"summary":"Search for collaboration partners","operationId":"searchPartners","parameters":[{"name":"searchTerm","in":"path","description":"The name of the partner you would like to search for","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of matching partners","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerSelectionDTO"}}},"application/problem+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/ErrorResponse"}}}}}}}},"components":{"schemas":{"PartnerSelectionDTO":{"type":"object","properties":{"label":{"type":"string"},"companyName":{"type":"string"},"departmentName":{"type":"string"},"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"}}},"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"}}}}}}
```

## 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"&#x20;

```json
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"tags":[{"name":"Entity Search","description":"Partner and entity search functionality"}],"servers":[{"url":"http://connect2.tsanet.org","description":"Generated server url"}],"security":[{"bearerAuth":[]}],"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  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\" ","operationId":"searchPartnersSemanticSearch","parameters":[{"name":"query","in":"query","description":"Natural language search query describing what kind of partner you're looking for","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of results to return","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"List of matching interactable partners ranked by relevance","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerSelectionDTO"}}},"application/problem+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/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"PartnerSelectionDTO":{"type":"object","properties":{"label":{"type":"string"},"companyName":{"type":"string"},"departmentName":{"type":"string"},"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"}}},"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"}}}}}}
```
