Get Media
Get metadata for an uploaded media file. Returns id, url, type, mimeType, sizeBytes, status (pending/ready/expired), filename, and expiration date.
get_media
Get metadata for an uploaded media file. Returns id, url, type, mimeType, sizeBytes, status (pending/ready/expired), filename, and expiration date.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
mediaId | string | yes | The media ID. |
workspaceId | string | no | Workspace ID. Required if your API key accesses multiple workspaces. |
When to use
Look up a single media record. Useful after create_upload_url to confirm the upload was completed before referencing the media in a post, or to inspect metadata (size, mime, alt text) of an existing asset.
Example
{
"workspaceId": "wks_01H...",
"mediaId": "med_01H..."
}Response shape:
{
"id": "med_01H...",
"type": "image",
"mimeType": "image/jpeg",
"sizeBytes": 284721,
"status": "uploaded",
"url": "https://storage.postato.com.br/...",
"createdAt": "2026-04-15T12:00:00Z"
}Status values
pending— created viacreate_upload_urlbut the PUT hasn't happened yet.uploaded— file is in storage and ready to attach to posts.failed— upload was never completed within the presigned URL's validity window.
Gotchas
urlis an internal Postato URL. Do not expose it to end users; agents should reference media byidin tool calls.- The URL is stable but subject to signed-access policies for certain integrations (e.g., Meta). Re-fetching shortly before a publish is safer than caching long-term.
Upload Media
Upload media for use in posts. Two modes: 1. URL mode: provide a public URL — file is downloaded and stored. Best for images/videos from AI generators (DALL-E,
List Media
List uploaded media files. Returns up to 50 items per page. Use offset to paginate. Media expires after 7 days unless used in a published post.