Quick deal name suggestions
GET
/api/search/deals/suggest
const url = 'https://example.com/api/search/deals/suggest?q=&limit=5';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/search/deals/suggest?q=&limit=5' \ --header 'Authorization: Bearer <token>'Lightweight metadata-only search for search-as-you-type UX.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” q
Q
Search text
string
Search text
limit
Limit
integer
Responses
Section titled “ Responses ”Successful Response
Media type application/json
DealSuggestResponse
Suggest response.
object
suggestions
required
Suggestions
Array<object>
DealSearchHitResponseA single search result.
object
deal_id
required
Deal Id
string
deal_name
required
Deal Name
string
shared
Shared
boolean
Example
{ "suggestions": [ { "shared": false } ]}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}