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

# List session attachments

> List all attachments for a session.

<Note>
  The `devin_id` is the session ID prefixed with `devin-` (e.g., `devin-abc123`).
</Note>

## Permissions

Requires a service user with the `ViewAccountSessions` permission at the enterprise level.


## OpenAPI

````yaml /v3-openapi.yaml GET /v3/enterprise/sessions/{devin_id}/attachments
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/sessions/{devin_id}/attachments:
    get:
      tags:
        - sessions
      summary: List session attachments
      description: List all attachments for a session.
      operationId: >-
        handle_get_account_session_attachments_v3_enterprise_sessions__devin_id__attachments_get
      parameters:
        - description: 'Devin session ID (prefix: devin-)'
          in: path
          name: devin_id
          required: true
          schema:
            anyOf:
              - type: string
              - type: 'null'
            example: devin-abc123def456
            title: Devin Id
        - in: query
          name: org_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Org Id
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SessionAttachment'
                title: >-
                  Response Handle Get Account Session Attachments V3 Enterprise
                  Sessions  Devin Id  Attachments Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    SessionAttachment:
      description: An attachment sent during a session.
      properties:
        attachment_id:
          title: Attachment Id
          type: string
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
        name:
          title: Name
          type: string
        source:
          enum:
            - devin
            - user
          title: Source
          type: string
        url:
          title: Url
          type: string
      required:
        - attachment_id
        - name
        - url
        - source
      title: SessionAttachment
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      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: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````