> ## 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.

# Gli eventi dell'organizzazione

> Dal più vecchio: per recuperare ciò che un webhook non ha ricevuto. Gli eventi restano 30 giorni.



## OpenAPI

````yaml /openapi.json get /events
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:
  /events:
    get:
      tags:
        - Webhook ed eventi
      summary: Gli eventi dell'organizzazione
      description: >-
        Dal più vecchio: per recuperare ciò che un webhook non ha ricevuto. Gli
        eventi restano 30 giorni.
      operationId: listEvents
      parameters:
        - 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
        - name: updatedSince
          in: query
          required: false
          description: Solo ciò che è cambiato da questo istante (ISO 8601).
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Una pagina di eventi.
          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/EventList'
        '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:
            - webhooks:read
components:
  schemas:
    EventList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Event'
          maxItems: 200
        nextCursor:
          type:
            - string
            - 'null'
          maxLength: 500
          description: Da passare come `cursor` per la pagina dopo; null alla fine.
      required:
        - 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.'
    Event:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          maxLength: 40
        createdAt:
          type: string
          format: date-time
        data:
          description: 'Cosa è cambiato: dipende dal tipo.'
      required:
        - id
        - type
        - createdAt
        - data
      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.