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

# Search In Vault

> Allows the client to search for items in the vault.

## Overview

Allows the client to search for items in the vault. It is only possible to retrieve items that have been stored using the same account.

## Authentication

Requires a valid JWT bearer token.

## Notes

This endpoint uses the request schema notation described in [Pattern matching](/guides/pattern-matching).


## OpenAPI

````yaml /test-api/openapi.yaml post /Agent/Storage/SearchInVault
openapi: 3.1.0
info:
  title: Neuron Agent API
  version: 1.0.0
  description: |-
    The Agent API exposes core Neuron functionality over HTTP so services can
    operate without a persistent XMPP connection. Endpoints are grouped by
    capability, starting with Accounts and XMPP messaging.
servers:
  - url: https://{host}
    variables:
      host:
        default: neuron.example.com
        description: Neuron domain issued to you.
security:
  - bearerAuth: []
tags:
  - name: Accounts
  - name: Crypto
  - name: Open intelligence
  - name: Legal and contracts
  - name: State machines
  - name: Storage
  - name: Tokens
  - name: Wallet
  - name: XMPP messaging
paths:
  /Agent/Storage/SearchInVault:
    post:
      tags:
        - Storage
      summary: Search In Vault
      description: Allows the client to search for items in the vault.
      operationId: post_Agent_Storage_SearchInVault
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                clientId:
                  type: string
                masked:
                  type: boolean
                Tags:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      value:
                        type: string
                    additionalProperties: true
                    required:
                      - name
                      - value
                offset:
                  type: integer
                  minimum: 0
                maxCount:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 100
              additionalProperties: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  ResultSet:
                    type: array
                    items:
                      type: object
                      properties:
                        vaultId:
                          type: string
                        type:
                          type: string
                        clientId:
                          type: string
                        created:
                          type: string
                          format: date-time
                        updated:
                          type: string
                          format: date-time
                        Tags:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              value:
                                type: string
                            additionalProperties: true
                            required:
                              - name
                              - value
                      additionalProperties: true
                      required:
                        - vaultId
                        - created
                        - updated
                        - Tags
                additionalProperties: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````