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

# Get media status

> Check whether an uploaded media asset is ready to attach to posts.

# Get media status

`GET /api/media/{id}/status`

Poll the state of a media asset. Once an asset reports `LIVE`, reference its ID in `postDetails.base.media` (or a channel override) when creating posts.

## Required Scope

`posts:read`

## Path Parameters

**id** `string` *required*

Media ID returned by the upload endpoint.

## Request Example

```bash theme={null}
curl "https://posttu.com/api/media/md_v0Kps9Bgnk2/status" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response Example

```json theme={null}
{
  "status": "LIVE"
}
```

## Status values

| Status | Meaning |
| - | - |
| `PENDING` | Upload URL issued but the file is not confirmed in storage yet. Safe to keep polling. |
| `PROCESSING` | Reserved for server-side processing. Treat as not ready and keep polling. |
| `LIVE` | Verified and ready to attach to posts. |
| `FAILED` | Verification failed. Re-upload the file and finalize again. |

Returns `404` when the media ID does not exist in your workspace or has been deleted.

## Polling behavior

* `LIVE`, `FAILED`, and `PROCESSING` are answered directly from the stored state.
* While `PENDING`, the server cross-checks storage: if the file is already there (for example, when the upload-completion notification was missed), the status is promoted to `LIVE` automatically.

```json theme={null}
// 404 Not Found
{
  "error": "Media asset not found"
}
```

### Rate Limited (`429 Too Many Requests`)

```json theme={null}
{
  "error": "Rate limit exceeded",
  "success": false
}
```

Back off using the `Retry-After` header.


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