Get media file

Get details of a specific media file by its ID, including the public URL, content type, file size, upload status (pending or active), and expiration date.

Get details of a specific media file by its ID, including the public URL, content type, file size, upload status (pending or active), and expiration date. The media ID is the encoded string identifier returned during the upload flow.

For videos, video carries the processing pipeline state: what ffprobe read off the file, and any normalized renditions with their public URLs. It is null for images and for videos that have never been probed. Per-network compliance is not reported here - what a network will accept only becomes answerable once a post says where the video is going, so look at containers[].media[].processing.issues on GET /v1/posts/{id} for that.

Permissions: Requires media:read. Access is limited by the API key creator's current organization membership and stored key ceiling. See Organization permissions.

GET
/v1/media/{id}

Path Parameters

id*string

Response Body

Media file retrieved successfully

application/json
  1. response

Response containing a single media file

success*boolean
data*

Media file object

Example Request
curl -X GET 'https://api.outstand.so/v1/media/string'
Example Response
{  "success": true,  "data": {    "id": "string",    "filename": "string",    "url": "http://example.com",    "content_type": "string",    "size": 0,    "status": "pending",    "created_at": "2019-08-24T14:15:22Z",    "expires_at": "2019-08-24T14:15:22Z",    "video": {      "status": "pending",      "source_status": "pending",      "error": "string",      "probe": {        "container_format": "string",        "duration_ms": 0,        "width": 0,        "height": 0,        "fps": 0,        "video_codec": "string",        "audio_codec": "string",        "size_bytes": 0,        "rotation": 0,        "moov_at_front": true,        "has_edit_lists": true      },      "renditions": [        {          "kind": "string",          "status": "queued",          "url": "string",          "error": "string"        }      ]    }  }}