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

> ## Agent Instructions
> Documentazione di Business Insider. Il testo completo, incluso il riferimento API, è in /llms-full.txt. Per endpoint, campi e codici di errore la fonte di verità è openapi.json: non usare endpoint o campi non documentati.

# Cerca nell'archivio per nome e testo

> Parole intere, l'ultima anche in parte, in nomi e testo di documenti, mappe e file letti.



## OpenAPI

````yaml /openapi.json get /search
openapi: 3.1.0
info:
  title: Business Insider API
  version: 1.0.0
  description: >-
    L'API pubblica di Business Insider: archivio, documenti, file, trascrizioni,
    ricerca, chat, membri, credito e webhook di un'organizzazione. Ogni
    richiesta porta `Authorization: Bearer <chiave>`; la chiave la crea un
    Proprietario in Impostazioni.
servers:
  - url: https://businessinsider.squaddcrm.com/api/v1
security:
  - chiave: []
tags:
  - name: Organizzazione
  - name: Credito
  - name: Archivio
  - name: File
  - name: Chat
  - name: Webhook ed eventi
paths:
  /search:
    get:
      tags:
        - Archivio
      summary: Cerca nell'archivio per nome e testo
      description: >-
        Parole intere, l'ultima anche in parte, in nomi e testo di documenti,
        mappe e file letti.
      operationId: search
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 300
        - name: limit
          in: query
          required: false
          description: Quanti elementi per pagina (predefinito 50, al massimo 200).
          schema:
            type: integer
            minimum: 1
            maximum: 200
        - name: cursor
          in: query
          required: false
          description: Il `nextCursor` della pagina precedente.
          schema:
            type: string
            maxLength: 500
      responses:
        '200':
          description: I risultati.
          headers:
            X-RateLimit-Limit:
              description: Richieste ammesse nella finestra più vicina al tetto.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Richieste rimaste in quella finestra.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Quando la finestra riparte (secondi epoch).
              schema:
                type: integer
            X-Request-Id:
              description: L'id della richiesta.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResults'
        '400':
          description: 'Codici: `invalid_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Codici: `unauthenticated`, `api_key_invalid`, `api_key_revoked`,
            `api_key_expired`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Codici: `insufficient_scope`, `organization_suspended`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Codici: `not_found`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Codici: `rate_limited`.'
          headers:
            X-RateLimit-Limit:
              description: Richieste ammesse nella finestra più vicina al tetto.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Richieste rimaste in quella finestra.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Quando la finestra riparte (secondi epoch).
              schema:
                type: integer
            X-Request-Id:
              description: L'id della richiesta.
              schema:
                type: string
            Retry-After:
              description: Secondi da aspettare.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: 'Codici: `internal_error`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - chiave:
            - archive:read
components:
  schemas:
    SearchResults:
      type: object
      properties:
        total:
          type: integer
        data:
          type: array
          items:
            $ref: '#/components/schemas/SearchResult'
          maxItems: 100
        nextCursor:
          type:
            - string
            - 'null'
          maxLength: 500
      required:
        - total
        - data
        - nextCursor
      additionalProperties: false
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
            - requestId
          additionalProperties: false
          properties:
            code:
              type: string
              enum:
                - invalid_request
                - unauthenticated
                - api_key_invalid
                - api_key_revoked
                - api_key_expired
                - credits_exhausted
                - forbidden
                - insufficient_scope
                - organization_suspended
                - spending_limit
                - not_found
                - conflict
                - revision_conflict
                - name_taken
                - already_member
                - last_owner
                - answer_in_progress
                - idempotency_in_progress
                - payload_too_large
                - unsupported_format
                - idempotency_key_reused
                - rate_limited
                - internal_error
                - upstream_error
                - unavailable
              description: 'Codice stabile: decidi da questo, non dal testo.'
            message:
              type: string
              description: Spiegazione in italiano, per chi legge i log.
            details:
              type:
                - object
                - 'null'
              description: Il campo sbagliato (`field`), il limite superato e simili.
            requestId:
              type: string
              description: 'Lo stesso di `X-Request-Id`: citalo quando chiedi aiuto.'
    SearchResult:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - folder
            - document
            - map
            - file
        name:
          type: string
          maxLength: 200
        section:
          type: string
          enum:
            - private
            - shared
          description: >-
            `private`: il Privato di chi ha creato la chiave; `shared`: il
            Condiviso dell'organizzazione.
        excerpt:
          type:
            - string
            - 'null'
          maxLength: 2000
          description: Il punto del testo che contiene le parole, quando non sono nel nome.
      required:
        - id
        - type
        - name
        - section
        - excerpt
      additionalProperties: false
  securitySchemes:
    chiave:
      type: http
      scheme: bearer
      bearerFormat: bik_live_… / bik_test_…
      description: >-
        Chiave API dell'organizzazione. Scope: `archive:read`, `archive:write`,
        `files:read`, `files:write`, `chat:read`, `chat:write`, `members:read`,
        `members:write`, `credits:read`, `webhooks:read`, `webhooks:write`;
        `<area>:write` comprende `<area>:read`.

````

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