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

# Get media status

<Warning>
  This endpoint uses a different base URL:

  `https://media.postflow.app/api/v1`
</Warning>


## OpenAPI

````yaml media.json GET /status/{mediaId}
openapi: 3.1.0
info:
  title: PostFlow Media Server
  version: '1'
  description: >-
    Media Server API for uploading and processing media files.


    The Media Server handles file uploads, processing, and storage. It supports
    synchronous and asynchronous uploads via file or URL.
servers:
  - url: https://media.postflow.app/api/v1
security:
  - http: []
paths:
  /status/{mediaId}:
    get:
      summary: Check upload status
      description: >-
        Check the status of an asynchronous upload. Returns the current
        processing state and, when complete, the full MediaData object.
      operationId: upload.status
      parameters:
        - name: mediaId
          in: path
          required: true
          description: The media ID returned from the async upload endpoint.
          schema:
            type: string
      responses:
        '200':
          description: Upload status
          content:
            application/json:
              schema:
                type: object
                properties:
                  media_id:
                    type: string
                  status:
                    type: string
                    enum:
                      - processing
                      - completed
                      - failed
                    description: Current processing status.
                  data:
                    anyOf:
                      - $ref: '#/components/schemas/MediaData'
                      - type: 'null'
                    description: >-
                      MediaData object when status is `completed`, otherwise
                      null.
                  error:
                    type:
                      - string
                      - 'null'
                    description: Error message when status is `failed`.
                required:
                  - media_id
                  - status
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Upload not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    MediaData:
      type: object
      properties:
        id:
          type: string
        organization_id:
          type: string
        user_id:
          type:
            - string
            - 'null'
          description: The ID of the user who uploaded the media
        media_folder_id:
          type:
            - string
            - 'null'
        is_media_library:
          type: boolean
          description: Determines whether the media is part of the media library
        type:
          $ref: '#/components/schemas/MediaType'
        url:
          type: string
        client_name:
          type:
            - string
            - 'null'
        file_name:
          type: string
        mime_type:
          type: string
        extension:
          type: string
        size:
          type: integer
        thumbnail:
          type:
            - string
            - 'null'
        preview:
          type:
            - string
            - 'null'
        width:
          type:
            - integer
            - 'null'
        height:
          type:
            - integer
            - 'null'
        aspect_ratio:
          type:
            - number
            - 'null'
        duration:
          type:
            - number
            - 'null'
        fps:
          type:
            - number
            - 'null'
        video_thumbnail_frame:
          type:
            - string
            - 'null'
        video_thumbnail_custom:
          type:
            - string
            - 'null'
        video_thumbnail_time:
          type:
            - number
            - 'null'
        page_count:
          type:
            - integer
            - 'null'
          description: Number of pages in the PDF document
        page_previews:
          type: array
          items:
            type: string
        conversions:
          type:
            - array
            - 'null'
          items:
            type: string
        alt_text:
          type:
            - string
            - 'null'
        pivot_alt_text:
          type:
            - array
            - 'null'
          items:
            type: string
        note:
          type:
            - string
            - 'null'
        origin:
          anyOf:
            - $ref: '#/components/schemas/MediaOrigin'
            - type: 'null'
        is_processing:
          type: boolean
        is_converted:
          type: boolean
          description: >-
            The media has been converted to ensure compatibility with social
            platforms
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
      title: MediaData
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message.
      required:
        - error
    MediaType:
      type: integer
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
      x-enum-varnames:
        - Image
        - Video
        - Audio
        - Document
        - Subtitles
      description: >-
        `1` Image <br/> `2` Video <br/> `3` Audio <br/> `4` Document <br/> `5`
        Subtitles
      title: MediaType
    MediaOrigin:
      type: integer
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
      x-enum-varnames:
        - Import
        - ClickUp
        - GoogleDrive
        - Dropbox
        - Tenor
        - PostComment
        - Api
      description: >-
        `1` Import <br/> `2` ClickUp <br/> `3` GoogleDrive <br/> `4` Dropbox
        <br/> `5` Tenor <br/> `6` PostComment <br/> `7` Api
      title: MediaOrigin
  securitySchemes:
    http:
      type: http
      scheme: bearer

````