---
title: "Search User Docs"
method: POST
path: "/users/{user_id}/search"
tags: ["docs"]
---

# Search User Docs

`POST /users/{user_id}/search`

Searches for documents associated with a specific user.

Parameters:
    x_developer_id (UUID): The unique identifier of the developer associated with the user.
    search_params (TextOnlyDocSearchRequest | VectorDocSearchRequest | HybridDocSearchRequest): The parameters for the search.
    user_id (UUID): The unique identifier of the user associated with the documents.
Returns:
    DocSearchResponse: The search results.

## Path parameters

- `user_id` string, uuid, required

## Query parameters

- `connection_pool` unknown

## Request body

- union
  - TextOnlyDocSearchRequest
    - `limit` integer
    - `metadata_filter` object
    - `include_embeddings` boolean
    - `text` string, required
    - `lang` string
    - `trigram_similarity_threshold` number, nullable
  - VectorDocSearchRequest
    - `limit` integer
    - `metadata_filter` object
    - `include_embeddings` boolean
    - `vector` number[], required
    - `confidence` number
    - `mmr_strength` number
  - HybridDocSearchRequest
    - `limit` integer
    - `metadata_filter` object
    - `include_embeddings` boolean
    - `text` string, required
    - `lang` string
    - `trigram_similarity_threshold` number, nullable
    - `vector` number[], required
    - `confidence` number
    - `mmr_strength` number
    - `alpha` number
    - `k_multiplier` integer

## Response `200`

Successful Response

- DocSearchResponse
  - `docs` DocReference[], required
    - `metadata` object, nullable
    - `owner` DocOwner, required
      - `id` string, uuid, required
      - `role` 'user' | 'agent', required
    - `id` string, uuid, required
    - `title` string, nullable
    - `snippet` Snippet, required
      - `index` integer, required
      - `content` string, required
      - `embedding` number[], nullable
    - `distance` number, nullable
  - `time` number, required

## Other responses

- `422` — Validation Error

## Changes

- **2025-06-26** `a5693caa5db1` — 3 info
  - added the new optional request property `anyOf[subschema #1: TextOnlyDocSearchRequest]/include_embeddings`
  - added the new optional request property `anyOf[subschema #2: VectorDocSearchRequest]/include_embeddings`
  - added the new optional request property `anyOf[subschema #3: HybridDocSearchRequest]/include_embeddings`
- **2025-06-23** `55cf66f64607` — 1 breaking, 2 warning, 5 info
  - the `anyOf[subschema #3: HybridDocSearchRequest]/k_multiplier` request property's min was increased to `1.00`
  - the `anyOf[subschema #3: HybridDocSearchRequest]/k_multiplier` request property's max was set to `10.00`
  - removed the request property `anyOf[subschema #2: VectorDocSearchRequest]/lang`
  - the `k_multiplier` request property default value changed from `7` to `5`
  - …4 more
- **2025-05-12** `088c2ebb8988` — 6 info
  - added the new optional request property `anyOf[subschema #1: TextOnlyDocSearchRequest]/trigram_similarity_threshold`
  - added the new optional request property `anyOf[subschema #3: HybridDocSearchRequest]/k_multiplier`
  - added the new optional request property `anyOf[subschema #3: HybridDocSearchRequest]/trigram_similarity_threshold`
  - the `alpha` request property default value changed from `0.75` to `0.5`
  - …2 more
- …earlier changes not shown

[Full history](https://skmtc.dev/julep-ai/apis/julep-agents-api/changes/users/:user_id/search/post.md)

---

[API](https://skmtc.dev/julep-ai/apis/julep-agents-api.md) · [All operations](https://skmtc.dev/julep-ai/apis/julep-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/julep-ai/julep-agents-api/revisions/21c8182519ef/schema)
