# Search a linked mailbox's threads (internal) **POST /email-data/{caseId}/search-remote-email-threads** Inbox-connect plumbing: searches the threads in a linked OAuth mailbox at the provider and marks which ones are already imported into the case. An extraction-code user may only name a mailbox linked to their own code (404 otherwise). ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseId** (string) ### Body: application/json (object) - **anyEmail** (array[string]) - **to** (array[string]) - **bcc** (array[string]) - **cc** (array[string]) - **from** (array[string]) - **hasAttachment** (boolean) - **receivedAfter** (string) - **receivedBefore** (string) - **keywords** (array[string]) - **subject** (string) - **contactNames** (array[string]) - **folders** (array[string]) Restrict the search to these folders (folder id/path as returned by fetch-folders). Optional; when omitted, all non-system folders are searched. - **providerId** (string) - **pageToken** (string) - **limit** (number) ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)