> ## 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 le sessioni dell'organizzazione

> Recupera un elenco paginato delle sessioni di Devin per una specifica organizzazione

Richiede una chiave API personale per amministratori Enterprise.

Restituisce un elenco paginato di tutte le sessioni di Devin per una specifica organizzazione all'interno della tua Enterprise, incluse le informazioni di base sulle sessioni, i dati sulle pull request (PR) e il consumo di ACU.


## OpenAPI

````yaml it/v2-openapi.yaml GET /v2/enterprise/organizations/{org_id}/sessions
openapi: 3.1.0
info:
  description: API Devin v2 con Personal API Keys per gli amministratori Enterprise
  title: Devin API v2
  version: 2.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v2/enterprise/organizations/{org_id}/sessions:
    get:
      tags:
        - sessions
      summary: Elencare le sessioni dell'organizzazione
      description: Elenca le sessioni per un’organizzazione specifica (modello di base).
      operationId: >-
        list_organization_sessions_v2_enterprise_organizations__org_id__sessions_get
      parameters:
        - in: path
          name: org_id
          required: true
          schema:
            title: Org Id
            type: string
        - in: query
          name: skip
          required: false
          schema:
            default: 0
            minimum: 0
            title: Skip
            type: integer
        - in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
        - in: query
          name: created_date_from
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Created Date From
        - in: query
          name: created_date_to
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Created Date To
        - in: query
          name: updated_date_from
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Updated Date From
        - in: query
          name: updated_date_to
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Updated Date To
        - in: query
          name: org_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Org Ids
        - in: query
          name: user_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: User Ids
        - in: query
          name: session_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Session Ids
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_SessionResponse_'
          description: Risposta con esito positivo
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Errore di validazione
components:
  schemas:
    PaginatedResponse_SessionResponse_:
      properties:
        has_more:
          title: Has More
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/SessionResponse'
          title: Items
          type: array
        limit:
          title: Limit
          type: integer
        next_cursor:
          anyOf:
            - type: integer
            - type: 'null'
          title: Next Cursor
        skip:
          title: Skip
          type: integer
        total:
          title: Total
          type: integer
      required:
        - items
        - total
        - skip
        - limit
        - has_more
      title: PaginatedResponse[SessionResponse]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    SessionResponse:
      properties:
        acus_consumed:
          title: Acus Consumed
          type: number
        created_at:
          format: date-time
          title: Created At
          type: string
        org_id:
          title: Org Id
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/SessionPullRequest'
          title: Pull Requests
          type: array
        session_id:
          title: Session Id
          type: string
        status:
          enum:
            - new
            - claimed
            - running
            - exit
            - error
            - suspended
            - resuming
          title: Status
          type: string
        tags:
          items:
            type: string
          title: Tags
          type: array
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        updated_at:
          format: date-time
          title: Updated At
          type: string
        url:
          title: Url
          type: string
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
      required:
        - session_id
        - url
        - status
        - tags
        - org_id
        - created_at
        - updated_at
        - acus_consumed
        - pull_requests
      title: SessionResponse
      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
    SessionPullRequest:
      properties:
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
        url:
          title: Url
          type: string
      required:
        - url
      title: SessionPullRequest
      type: object
  securitySchemes:
    bearerAuth:
      description: API key personale (apk_user_*) riservata agli amministratori Enterprise
      scheme: bearer
      type: http

````