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

# Media Status

> Check whether a file uploaded with adjust set to true finished adjusting. A failed adjustment returns status "ready" with a warning: the original file was kept and is used for publishing.

Check whether a file uploaded with `adjust` set to `true` (on [Upload File](/public-api/uploads/upload-file) or [Upload from URL](/public-api/uploads/upload-from-url)) finished adjusting to the platforms' limits. Uploads without `adjust` are `ready` as soon as the upload call returns and don't need this endpoint.

## Example

```bash theme={null}
curl "https://api.postiz.com/public/v1/media/01HXYZ123ABCDEF/status" \
  -H "Authorization: your-api-key"
```

Response:

```json theme={null}
{
  "id": "01HXYZ123ABCDEF",
  "path": "https://uploads.postiz.com/video.mp4",
  "status": "ready"
}
```

## Statuses

| Status | Meaning |
| - | - |
| `processing` | The adjustment is still running. Don't publish a post with this `path` yet, it would use the original file. Call again in a few seconds. |
| `ready` | The file is ready to publish at the same `path`: adjusted, or unchanged when it was already within the limits or its format isn't adjusted. |
| `ready` with a `warning` | The adjustment failed. The original file was kept at the same `path` and is used for publishing. |

An unknown `id`, or one from another organization, returns `404`.


## OpenAPI

````yaml GET /media/{id}/status
openapi: 3.1.0
info:
  title: Postiz Public API
  description: >-
    API for managing social media posts, integrations, and media uploads in
    Postiz.


    ## Authentication


    All endpoints require an API key passed in the `Authorization` header:


    ```

    Authorization: your-api-key

    ```


    Get your API key from Postiz Settings.


    ## Rate Limits


    There is a limit of **30 requests per hour**.


    ## Terminology


    The UI uses `channel`, but the API uses `integration`. They refer to the
    same thing.


    ## Supported Platforms (27)


    **Social Platforms:** X (Twitter), LinkedIn, LinkedIn Page, Facebook,
    Instagram, Instagram Standalone, Threads, Bluesky, Mastodon, Warpcast
    (Farcaster), Nostr, VK


    **Video Platforms:** YouTube, TikTok


    **Community Platforms:** Reddit, Lemmy, Discord, Slack, Telegram


    **Design Platforms:** Pinterest, Dribbble


    **Blogging Platforms:** Medium, Dev.to, Hashnode, WordPress


    **Business:** Google My Business (GMB), Listmonk (newsletters)
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.postiz.com/public/v1
    description: Postiz Cloud
  - url: https://{your-domain}/api/public/v1
    description: Self-hosted
    variables:
      your-domain:
        default: localhost:5000
        description: Your Postiz instance domain
security:
  - ApiKeyAuth: []
tags:
  - name: Integrations
    description: Manage connected social media channels
  - name: Posts
    description: Create, list, and delete posts
  - name: Uploads
    description: Upload media files
  - name: Notifications
    description: View organization notifications
  - name: Analytics
    description: View analytics for integrations and posts
  - name: Video Generation
    description: Generate videos with AI
  - name: Clipping
    description: Turn long YouTube videos into short vertical clips
paths:
  /media/{id}/status:
    get:
      tags:
        - Uploads
      summary: Get media status
      description: >-
        Check whether a file uploaded with adjust set to true finished
        adjusting. A failed adjustment returns status "ready" with a warning:
        the original file was kept and is used for publishing.
      operationId: getMediaStatus
      parameters:
        - name: id
          in: path
          required: true
          description: The media id returned by the upload
          schema:
            type: string
      responses:
        '200':
          description: Media status
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  path:
                    type: string
                  status:
                    type: string
                    enum:
                      - processing
                      - ready
                      - failed
                  warning:
                    type: string
                    description: >-
                      Present when the adjustment failed and the original file
                      was kept
                  error:
                    type: string
                    description: >-
                      Present with status "failed", only when the adjustment
                      failed and the original file's format cannot be published
                      as is
              example:
                id: e639003b-f727-4a1e-87bd-74a2c48ae41e
                path: https://uploads.postiz.com/video.mp4
                status: ready
        '404':
          description: Media not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Your Postiz API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.