Media
Upload images, videos and documents for posts (and inbox attachments).
Get an upload URL
/media/presignReturns a URL to PUT the file to (S3/R2 bucket when configured, else the API). Reference the returned media id (or public_url) in posts.
Try it with MCPAsk your agent to call presign-media-upload (toolset media)Set up MCP
Headers
Idempotency-KeystringUnique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.
≤ 255 characters
Body object
filenamestringrequired1–255 characters
content_typestringrequired3–100 characters
sizeintegerfolderstring≤ 200 characters
tagsarray of string≤ 50 items
alt_textstring≤ 2000 characters
Returns object
objectstringmedia_upload
mediaobjectShow 24 child attributes
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullupload_urlstringmethodstringPUT
headersmap of stringpublic_urlstring | nullexpires_inintegerResponses
{
"object": "media_upload",
"media": {
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
},
"upload_url": "https://example.com",
"method": "PUT",
"headers": {
"key": "string"
},
"public_url": "https://example.com",
"expires_in": 1
}Upload a file
/media/upload-directmultipart/form-data with a file field (+ optional folder, alt_text, tags). Image ≤ 20 MB, GIF ≤ 15 MB, video ≤ 500 MB, document/audio ≤ 100 MB.
Headers
Idempotency-KeystringUnique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.
≤ 255 characters
Returns object
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullResponses
{
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}List the media library
/mediaTry it with MCPAsk your agent to call list-media-library (toolset media)Set up MCP
Query parameters
pageintegerdefault: 1Page number
≥ 1
limitintegerdefault: 20Items per page (max 100)
1–100
sortstringcreated_atsizename
orderstringascdesc
matchstringCombine filters with AND (default) or OR
allor
typestringimagevideogifdocumentaudio
statusstringpendingprocessingreadyfailed
folderstringtagstringsearchstring≤ 200 characters
Returns object
objectstringrequiredlist
dataarray of objectrequiredShow 24 item attributes
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullpageintegerrequiredlimitintegerrequiredtotalinteger | nullhas_morebooleanrequirednext_page_urlstring | nullprevious_page_urlstring | nullResponses
{
"object": "list",
"data": [
{
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}
],
"page": 1,
"limit": 1,
"total": 1,
"has_more": true,
"next_page_url": "https://example.com",
"previous_page_url": "https://example.com"
}Register media from a public URL
/mediaTry it with MCPAsk your agent to call create-media-from-url (toolset media)Set up MCP
Headers
Idempotency-KeystringUnique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.
≤ 255 characters
Body object
urlstringrequired8–2048 characters
namestring≤ 255 characters
typestringimagevideogifdocumentaudio
alt_textstring≤ 2000 characters
captionstring≤ 5000 characters
tagsarray of string≤ 50 items
folderstring≤ 200 characters
Returns object
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullResponses
{
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}Media storage usage
/media/usageTry it with MCPAsk your agent to call get-media-usage (toolset media)Set up MCP
Returns object
objectstringmedia_usage
used_bytesintegerlimit_bytesinteger | nullfilesintegerby_typemap of integerResponses
{
"object": "media_usage",
"used_bytes": 1,
"limit_bytes": 1,
"files": 1,
"by_type": {
"key": 1
}
}List media folders
/media/foldersTry it with MCPAsk your agent to call list-media-folders (toolset media)Set up MCP
Returns object
objectstringrequiredlist
dataarray of objectrequiredShow 3 item attributes
objectstringmedia_folder
namestringcountintegerpageintegerrequiredlimitintegerrequiredtotalinteger | nullhas_morebooleanrequirednext_page_urlstring | nullprevious_page_urlstring | nullResponses
{
"object": "list",
"data": [
{
"object": "media_folder",
"name": "string",
"count": 1
}
],
"page": 1,
"limit": 1,
"total": 1,
"has_more": true,
"next_page_url": "https://example.com",
"previous_page_url": "https://example.com"
}Get media
/media/{id}Try it with MCPAsk your agent to call get-media-item (toolset media)Set up MCP
Path parameters
idstringrequiredmedia id (med_…)
1–80 characters
Returns object
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullResponses
{
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}Update media
/media/{id}Name, alt text, caption, tags and folder.
Try it with MCPAsk your agent to call update-media-item (toolset media)Set up MCP
Path parameters
idstringrequiredmedia id (med_…)
1–80 characters
Body object
namestring1–255 characters
alt_textstring | null≤ 2000 characters
captionstring | null≤ 5000 characters
tagsarray of string≤ 50 items
folderstring | null≤ 200 characters
Returns object
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullResponses
{
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}Delete media
/media/{id}Try it with MCPAsk your agent to call delete-media-item (toolset media)Set up MCP
Path parameters
idstringrequiredmedia id (med_…)
1–80 characters
Returns object
objectstringrequiredmedia
idstringrequireddeletedbooleanrequiredResponses
{
"object": "media",
"id": "string",
"deleted": true
}Finalize a presigned upload
/media/{id}/completeTry it with MCPAsk your agent to call complete-media-upload (toolset media)Set up MCP
Path parameters
idstringrequiredmedia id (med_…)
1–80 characters
Headers
Idempotency-KeystringUnique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.
≤ 255 characters
Returns object
objectstringmedia
idstringstatusstringpendingprocessingreadyfailed
typestringnamestring | nullfile_namestringmime_typestring | nullsizeinteger | nullurlstring | nullthumbnail_urlstring | nullpreview_urlstring | nullwidthinteger | nullheightinteger | nulldurationinteger | nullalt_textstring | nullcaptionstring | nulltagsarray of stringfolderstring | nullstoragestringlocals3external
source_urlstring | nullused_in_postsintegercreated_byobject | nullShow 3 child attributes
typestringidstring | nullnamestring | nullcreated_atstring (date-time) | nullupdated_atstring (date-time) | nullResponses
{
"object": "media",
"id": "string",
"status": "pending",
"type": "string",
"name": "string",
"file_name": "string",
"mime_type": "string",
"size": 1,
"url": "https://example.com",
"thumbnail_url": "https://example.com",
"preview_url": "https://example.com",
"width": 1,
"height": 1,
"duration": 1,
"alt_text": "string",
"caption": "string",
"tags": [
"string"
],
"folder": "string",
"storage": "local",
"source_url": "https://example.com",
"used_in_posts": 1,
"created_by": {
"type": "string",
"id": "string",
"name": "string"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}