# media_preview

Obter metadados e URL temporária de reprodução.

REST · `POST /api/v1/operations/media_preview` · MCP · `media_preview`

Permissão necessária · `read`. Esta operação consulta dados.

## Exemplo de entrada

~~~json
{
  "id": "RECORD_ID"
}
~~~

O REST retorna a saída abaixo diretamente. No MCP leia structuredContent.result. Consulte o contrato atual em /api/v1/openapi.json.

Em 401 confira a validade da credencial. Em 403 confira papel, escopos e contas. Em 409 releia o registro antes de tentar novamente.

## JSON Schema · Entrada

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
~~~

## JSON Schema · Saída

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "metadata": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "width": {
              "type": "number"
            },
            "height": {
              "type": "number"
            },
            "duration": {
              "type": "number"
            },
            "codec": {
              "type": "string"
            },
            "size": {
              "type": "number"
            }
          },
          "required": [
            "width",
            "height",
            "duration",
            "codec",
            "size"
          ],
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "project_id",
    "status",
    "metadata",
    "url"
  ],
  "additionalProperties": {}
}
~~~
