# Default

## Get Search

> Endpoint for executing a deep search without browsing.\
> \
> This function authenticates the user, triggers a deep search based on the provided query,\
> and returns simplified metadata (title, source, body) from the results.\
> \
> Args:\
> &#x20;   request (SmartSearchGetSearchRequest): The form-based request containing token and query data.\
> \
> Returns:\
> &#x20;   JSONResponse: A list of search results with keys: "title", "href", and "body".\
> \
> Raises:\
> &#x20;   HTTPException: If the user is unauthorized or lacks the required "read:all" scope.\
> \
> Notes:\
> &#x20;   \- The request must include a valid token with the "read:all" scope.\
> &#x20;   \- This function uses FastAPI's dependency injection to handle form parsing and token validation.

```json
{"openapi":"3.1.0","info":{"title":"GDP Labs General AI Starter","version":"0.1.0"},"paths":{"/search":{"get":{"summary":"Get Search","description":"Endpoint for executing a deep search without browsing.\n\nThis function authenticates the user, triggers a deep search based on the provided query,\nand returns simplified metadata (title, source, body) from the results.\n\nArgs:\n    request (SmartSearchGetSearchRequest): The form-based request containing token and query data.\n\nReturns:\n    JSONResponse: A list of search results with keys: \"title\", \"href\", and \"body\".\n\nRaises:\n    HTTPException: If the user is unauthorized or lacks the required \"read:all\" scope.\n\nNotes:\n    - The request must include a valid token with the \"read:all\" scope.\n    - This function uses FastAPI's dependency injection to handle form parsing and token validation.","operationId":"get_search_search_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"The search query string that specifies the information to be retrieved.","title":"Query"},"description":"The search query string that specifies the information to be retrieved."},{"name":"sst","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Smart Search Token","default":"","title":"Sst"},"description":"The Smart Search Token"},{"name":"bosa-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosa-Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_get_search_search_get"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_get_search_search_get":{"properties":{"bosa_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bosa Token","description":"The Bosa Token"}},"type":"object","title":"Body_get_search_search_get"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```
