---
title: "Get workspace media intake status"
description: "PubNio API media.status: get workspace media intake status. Request fields, examples in five clients, errors, and idempotency."
---

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

# Get workspace media intake status

Get workspace media intake status with [`GET /api/v1/media/{mediaId}/status`](https://pubnio.com/api/v1/docs#tag/media/GET/api/v1/media/{mediaId}/status). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

`status` is one of four values. `ready` carries the `asset` to attach to a post. `failed` carries `issue.code`: `media_source_unavailable`, `media_storage_unavailable`, `media_too_large`, `unsupported_media`, or `upload_expired`. `awaiting_upload` is a resumable upload still open, with `upload.receivedPartCount`, `upload.partDigests`, and `upload.expiresAt`. Anything else is `processing`.

An upload left open past `expiresAt` fails with `upload_expired`; an import whose fetch window ran out fails with `media_source_unavailable`.

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `mediaId`     | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

## Response

- HTTP 200: `MediaIntake` with `mediaId`, `status`, `asset`, `issue`, `upload`, `idempotencyKey`, `retryAfterSeconds`.
  - `status`: `awaiting_upload`, `processing`, `ready`, `failed`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const intake = await workspace.media.status(mediaId);
```

### Python

```python
intake = workspace.media.status(media_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/media/$MEDIA_ID/status?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio media status "$MEDIA_ID"
```

Also: `pnio media wait`.

### MCP execute

```js
async () => {
  const mediaId = "<mediaId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/media/${mediaId}/status`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Media operations](https://pubnio.com/docs/reference/#media)
- [Publishing](https://pubnio.com/docs/publishing/)

Source: https://pubnio.com/docs/reference/media-status/index.mdx
