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

# Elenca i messaggi della sessione

> Elenca tutti i messaggi di una sessione, con paginazione basata su cursore, in ordine cronologico.

<Note>
  Il `devin_id` corrisponde all'ID della sessione con prefisso `devin-` (ad esempio `devin-abc123`).
</Note>

<div id="permissions">
  ## Autorizzazioni
</div>

È necessario un utente di servizio con l'autorizzazione `ViewAccountSessions` a livello enterprise.


## OpenAPI

````yaml it/v3-openapi.yaml GET /v3/enterprise/sessions/{devin_id}/messages
openapi: 3.1.0
info:
  description: API Devin v3 con autenticazione utente di servizio e RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/sessions/{devin_id}/messages:
    get:
      tags:
        - sessions
      summary: Elenca i messaggi della sessione
      description: >-
        Elenca tutti i messaggi di una sessione, con paginazione basata su
        cursore, in ordine cronologico.
      operationId: >-
        handle_get_account_session_messages_v3_enterprise_sessions__devin_id__messages_get
      parameters:
        - description: 'ID sessione di Devin (prefisso: devin-)'
          in: path
          name: devin_id
          required: true
          schema:
            anyOf:
              - type: string
              - type: 'null'
            example: devin-abc123def456
            title: Devin Id
        - in: query
          name: qs
          required: true
          schema:
            $ref: '#/components/schemas/CursorPaginationParams'
        - in: query
          name: org_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Org Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_SessionMessage_'
          description: Risposta di successo
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Errore di validazione
components:
  schemas:
    CursorPaginationParams:
      properties:
        after:
          anyOf:
            - type: string
            - type: 'null'
          title: After
        first:
          default: 100
          maximum: 200
          minimum: 1
          title: First
          type: integer
      title: CursorPaginationParams
      type: object
    PaginatedResponse_SessionMessage_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Cursore per ottenere la pagina successiva oppure None se si tratta
            dell’ultima pagina.
          title: End Cursor
        has_next_page:
          default: false
          description: Indica se sono disponibili altri elementi dopo questa pagina.
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/SessionMessage'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Conteggio totale facoltativo (può essere omesso per motivi di
            performance).
          title: Total
      required:
        - items
      title: PaginatedResponse[SessionMessage]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    SessionMessage:
      description: Un messaggio all'interno di una sessione di Devin.
      properties:
        created_at:
          title: Created At
          type: integer
        event_id:
          title: Event Id
          type: string
        message:
          title: Message
          type: string
        source:
          enum:
            - devin
            - user
          title: Source
          type: string
      required:
        - event_id
        - source
        - message
        - created_at
      title: SessionMessage
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Credenziale dell''utente del servizio (prefisso: cog_)'
      scheme: bearer
      type: http

````