Search for Threads

GET {{baseUrl}}/1/threads/search?query=<query>&count=10&only_match_titles=false

Returns a list of threads whose content matches words in the given query. Threads are sorted from most to least relevant.

Request Params

KeyDatatypeRequiredDescription
querystring(Required) A text string containing words delimited by spaces used to match
thread content or titles.
countnumberThe maximum number of results to return.
only_match_titlesbooleanIf set to true, the search will match words in document titles
rather than content. Typically much faster if you only want to get
documents with a certain title.

RESPONSES

status: OK

[{&quot;thread&quot;:{&quot;id&quot;:&quot;commodo pariatur&quot;,&quot;created_usec&quot;:-12847422,&quot;updated_usec&quot;:-42924238,&quot;thread_class&quot;:&quot;document&quot;,&quot;owning_company_id&quot;:&quot;sit&quot;,&quot;author_id&quot;:&quot;amet laborum&quot;,&quot;title&quot;:&quot;nisi est aliq&quot;,&quot;is_deleted&quot;:true,&quot;is_template&quot;:true,&quot;document_id&quot;:&quot;ve&quot;,&quot;link&quot;:&quot;laborum ad&quot;,&quot;type&quot;:&quot;document&quot;,&quot;snippet_user_id&quot;:&quot;et in&quot;,&quot;snippet_message&quot;:&quot;aute ad reprehenderit Ut&quot;,&quot;sharing&quot;:{&quot;public&quot;:&quot;VIEW&quot;,&quot;company_id&quot;:&quot;IMbAcASGu56&quot;,&quot;company_mode&quot;:&quot;VIEW&quot;}},&quot;user_ids&quot;:[&quot;ea&quot;,&quot;laboris mollit enim&quot;],&quot;shared_folder_ids&quot;:[&quot;esse consequ&quot;,&quot;labore in minim&quot;],&quot;expanded_user_ids&quot;:[&quot;sed dolor non&quot;,&quot;minim tempo&quot;],&quot;invited_user_emails&quot;:[&quot;reprehenderit ut aute&quot;,&quot;anim quis&quot;],&quot;html&quot;:&quot;dolor Duis adipisicing&quot;,&quot;markdown&quot;:&quot;mollit voluptate qui quis&quot;,&quot;access_levels&quot;:{}},{&quot;thread&quot;:{&quot;id&quot;:&quot;aliqua eu fugiat&quot;,&quot;created_usec&quot;:31391667,&quot;updated_usec&quot;:70523181,&quot;thread_class&quot;:&quot;document&quot;,&quot;owning_company_id&quot;:&quot;pariatur magna&quot;,&quot;author_id&quot;:&quot;sed&quot;,&quot;title&quot;:&quot;tempor Duis minim&quot;,&quot;is_deleted&quot;:true,&quot;is_template&quot;:true,&quot;document_id&quot;:&quot;ut minim eu eiusmod&quot;,&quot;link&quot;:&quot;enim&quot;,&quot;type&quot;:&quot;spreadsheet&quot;,&quot;snippet_user_id&quot;:&quot;ea tempor consectetur dolore nulla&quot;,&quot;snippet_message&quot;:&quot;nisi ullamco&quot;,&quot;sharing&quot;:{&quot;public&quot;:&quot;VIEW&quot;,&quot;company_id&quot;:&quot;IMbAcASGu56&quot;,&quot;company_mode&quot;:&quot;VIEW&quot;}},&quot;user_ids&quot;:[&quot;ad ut&quot;,&quot;adipisicing&quot;],&quot;shared_folder_ids&quot;:[&quot;elit voluptate Lorem&quot;,&quot;deserunt nisi dolore&quot;],&quot;expanded_user_ids&quot;:[&quot;sunt consectetur reprehenderit consequat dolore&quot;,&quot;officia tempor&quot;],&quot;invited_user_emails&quot;:[&quot;sint fugiat ut ex dolore&quot;,&quot;et tempor Lorem sed&quot;],&quot;html&quot;:&quot;&quot;,&quot;markdown&quot;:&quot;anim enim elit ipsum&quot;,&quot;access_levels&quot;:{}}]