📁 Media Library

Upload media

Upload a media file or import from URL into the workspace media library. Provide either a file or a URL, not both.

post/api/v1/workspaces/{workspace_id}/media

Path parameters

workspace_idstring required
Example:610a1e660cb41530ca40d372

Workspace ID

Response

Media uploaded successfully

statusboolean
messagestring

Example response

{
  "status": true,
  "message": "Media uploaded successfully. Use the returned `id` in `content.media.media_ids` when creating a post. If `is_processing` is true, wait and check GET /media before referencing it.",
  "data": {
    "id": "625d06734ceb636c2f5e7743",
    "_id": "625d06734ceb636c2f5e7743",
    "name": "photo.jpg",
    "url": "https://storage.googleapis.com/.../photo.jpg",
    "mime_type": "image/jpeg",
    "extension": "jpg",
    "size": 245760,
    "type": "image"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.