> ## Documentation Index
> Fetch the complete documentation index at: /dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Search a user

> Search a user's memories and synced apps by meaning.



## OpenAPI

````yaml POST /platform/v1/users/{uid}/search
openapi: 3.1.0
info:
  title: Constella API
  version: v1
  description: Cloud memory for your own AI tools and for apps with many users.
servers:
  - url: https://api.constella.app
security: []
tags:
  - name: Your memory
  - name: Your app's users
  - name: Connected apps
paths:
  /platform/v1/users/{uid}/search:
    post:
      tags:
        - Your app's users
      summary: Search
      description: >-
        Search this user's memories and synced apps by meaning (no AI model
        call). Each result

        has `origin`: "memory" (with your id) or "integration" (with the app,
        e.g. google-drive).
      operationId: search_platform_v1_users__uid__search_post
      parameters:
        - name: uid
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            title: Uid
            example: u_123
          description: >-
            Your own id for this user, like your database id (not an email).
            1-128 characters, no spaces or slashes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/products__platform_api__routers__platform_v1__SearchIn
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Search Platform V1 Users  Uid  Search Post
        '401':
          description: The key is wrong, revoked or replaced (`bad_key`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: This key may not do this (`not_allowed`, `missing_scope`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such tool, user or item.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests (`rate_limited`). Wait and try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - appKey: []
components:
  schemas:
    products__platform_api__routers__platform_v1__SearchIn:
      properties:
        queries:
          items:
            type: string
          type: array
          maxItems: 5
          minItems: 1
          title: Queries
        include:
          type: string
          enum:
            - all
            - memories
            - synced
          title: Include
          default: all
        kinds:
          items:
            type: string
          type: array
          maxItems: 20
          title: Kinds
        sources:
          items:
            type: string
          type: array
          maxItems: 20
          title: Sources
        tags:
          items:
            type: string
          type: array
          maxItems: 20
          title: Tags
        integrations:
          items:
            type: string
          type: array
          maxItems: 10
          title: Integrations
        since:
          anyOf:
            - {}
            - type: 'null'
          title: Since
        until:
          anyOf:
            - {}
            - type: 'null'
          title: Until
        top_k:
          type: integer
          maximum: 50
          minimum: 1
          title: Top K
          default: 10
        min_score:
          type: number
          maximum: 1
          minimum: 0
          title: Min Score
          default: 0
        max_chars:
          type: integer
          maximum: 4000
          minimum: 100
          title: Max Chars
          default: 600
      type: object
      required:
        - queries
      title: SearchIn
    Error:
      type: object
      properties:
        detail:
          type: object
          properties:
            code:
              type: string
              example: bad_key
            message:
              type: string
              example: This key is wrong, revoked or replaced.
    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
  securitySchemes:
    appKey:
      type: http
      scheme: bearer
      description: A project key (cak_live_...). From your server only.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.