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

# List media files

> Returns a paginated list of uploaded media files for the authenticated user.



## OpenAPI

````yaml /api-reference/openapi.json get /media
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /media:
    get:
      tags:
        - Media
      summary: List media files
      description: >-
        Returns a paginated list of uploaded media files for the authenticated
        user.
      parameters:
        - description: Max results (default 50, max 100)
          name: limit
          in: query
          schema:
            type: integer
        - description: Pagination cursor (media ID)
          name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.MediaListResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.MediaListResponse:
      type: object
      properties:
        count:
          type: integer
          example: 42
        data:
          type: array
          items:
            $ref: '#/components/schemas/api_endpoints.MediaItemResponse'
        next_cursor:
          type: string
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    api_endpoints.MediaItemResponse:
      type: object
      properties:
        content_type:
          type: string
          example: image/jpeg
        created_at:
          type: string
          example: '2026-03-20T09:00:00Z'
        filename:
          type: string
          example: photo.jpg
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        size_bytes:
          type: integer
          example: 2048576
        status:
          type: string
          example: ready
        url:
          type: string
          example: https://s3.example.com/media/...
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````