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

# List Attachments

> List attachments for a team with optional filters, cursor-paginated.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/teams/{team_id}/attachments
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/attachments:
    get:
      tags:
        - media-admin-attachments
      summary: List Attachments
      description: List attachments for a team with optional filters, cursor-paginated.
      operationId: >-
        media_admin_attachments.get_media_admin_attachments_get_teams_by_team_id_attachments
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: query
          name: media_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Media Id
        - in: query
          name: target_type
          required: false
          schema:
            anyOf:
              - enum:
                  - content_node
                  - hub_branding
                  - page_section
                  - email_message
                  - playlist
                  - comment
                  - discussion
                  - message
                type: string
              - type: 'null'
            title: Target Type
        - in: query
          name: target_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Target Id
        - in: query
          name: page[size]
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            title: Page[Size]
            type: integer
        - in: query
          name: page[after]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page[After]
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AttachmentListResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AttachmentListResponse:
      description: Collection JSON:API response wrapping a list of AttachmentResources.
      properties:
        data:
          items:
            $ref: '#/components/schemas/JsonApiResource_AttachmentAttributes_'
          title: Data
          type: array
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiPaginationLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: AttachmentListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    JsonApiResource_AttachmentAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/AttachmentAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[AttachmentAttributes]
      type: object
    JsonApiPaginationLinks:
      properties:
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiPaginationLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        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
    AttachmentAttributes:
      description: >-
        Serialisable attributes of an Attachment resource (no id/type inside
        attributes).


        Enumerates all response fields explicitly — mirrors P3 retro lesson #1

        ("enumerate read-shape too, not just write-shape").
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        media_id:
          title: Media Id
          type: string
        position:
          title: Position
          type: integer
        role:
          enum:
            - main
            - thumbnail
            - logo
            - favicon
            - attachment
            - social_image
            - background_image
            - widget_logo
            - widget_background
          title: Role
          type: string
        target_id:
          title: Target Id
          type: string
        target_type:
          enum:
            - content_node
            - hub_branding
            - page_section
            - email_message
            - playlist
            - comment
            - discussion
            - message
          title: Target Type
          type: string
      required:
        - media_id
        - target_type
        - target_id
        - role
        - position
        - created_at
      title: AttachmentAttributes
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````