📁 Content Library
Upload media
Changed onUpload a media file or import from URL into the workspace content library. Provide either a file or a URL, not both.
post/api/v1/workspaces/{workspace_id}/media
Request
- Base URLhttps://api.contentstudio.io
- URLhttps://api.contentstudio.io/api/v1/workspaces/{workspace_id}/media
- AuthAPI key in header X-API-Key
Path parameters
workspace_idstring required
Example:610a1e660cb41530ca40d372
Workspace ID
Request body multipart/form-data
Example request
{
"url": "https://example.com/image.jpg",
"folder_id": "625d06734ceb636c2f5e7743"
}Response
Media uploaded successfully
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
- info
added the non-success response with the status
- info
- info
added the optional property
/to the response with the status
- info