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

# List media

> Returns media library items that belong to the API key's organization.

When `projectId` is provided, only media in that project is returned.




## OpenAPI

````yaml /openapi.yaml get /media
openapi: 3.1.0
info:
  title: WoopSocial API
  version: 1.0.0
  summary: API for WoopSocial integrations.
  description: >
    This is the public-facing OpenAPI contract for WoopSocial. It supports
    scheduling posts for various social media platforms such as Facebook,
    Instagram, LinkedIn, LinkedIn Pages, Pinterest, Threads, TikTok, X (formerly
    Twitter) and YouTube.
servers:
  - url: https://api.woopsocial.com/v1
    description: WoopSocial API URL.
  - url: http://localhost:9123/api/external/v1
    description: Local WoopSocial API URL.
security: []
tags:
  - name: Posts
    description: Post scheduling endpoints.
  - name: Projects
    description: Project discovery endpoints.
  - name: Social Accounts
    description: Connected social account discovery endpoints.
  - name: Media
    description: Media upload endpoints.
  - name: Webhooks
    description: Webhook endpoint management.
  - name: Health
    description: Basic connectivity endpoints.
paths:
  /media:
    get:
      tags:
        - Media
      summary: List media
      description: |
        Returns media library items that belong to the API key's organization.

        When `projectId` is provided, only media in that project is returned.
      operationId: listMedia
      parameters:
        - $ref: '#/components/parameters/ProjectIdFilter'
        - $ref: '#/components/parameters/MediaIdsFilter'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Media items.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMediaResponse'
      security:
        - ApiKey: []
components:
  parameters:
    ProjectIdFilter:
      name: projectId
      in: query
      required: false
      schema:
        type: string
      description: Filter to resources that belong to a specific project.
    MediaIdsFilter:
      name: mediaId
      in: query
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
      description: >-
        Filter to one or more media items. Provide a comma-separated list of
        media IDs.
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        format: int32
        minimum: 1
        maximum: 100
        default: 50
      description: Number of items to return.
    Cursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
      description: Opaque cursor for the next page of results.
  schemas:
    ListMediaResponse:
      type: object
      additionalProperties: false
      required:
        - media
      properties:
        media:
          type: array
          items:
            $ref: '#/components/schemas/Media'
        nextCursor:
          type: string
          description: >-
            Opaque cursor for the next page of results. Omitted when there are
            no more results.
    Media:
      type: object
      additionalProperties: false
      required:
        - id
        - projectId
        - mediaType
        - url
        - createdAt
      properties:
        id:
          type: string
          description: Media identifier.
        projectId:
          type: string
          description: Project identifier.
        mediaType:
          $ref: '#/components/schemas/MediaType'
        url:
          type: string
          format: uri
          description: Canonical media URL.
        createdAt:
          type: string
          format: date-time
          description: UTC time when the media item was created.
    MediaType:
      type: string
      enum:
        - IMAGE
        - VIDEO
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: API key

````