Upload from a URL
Import an image or video from a public link into the media library, and read how to follow a download that takes time.
SocialKit fetches the file from the link itself. There are two outcomes, and both return 200:
- Small file. When the file is under 10 MB, or its server does not say how big it is, SocialKit downloads it during the request. The response has
status: "completed"and themediaobject, orstatus: "failed"and anerror. - Large file. From 10 MB the download runs in the background. The response has
status: "pending"and adownload_id. Poll Check a URL download with that ID until the status iscompletedorfailed.
So always read status first. A link that cannot be reached, is not an allowed image or video type, or is larger than the limit for its kind (15 MB for images and GIFs, 200 MB for videos) is refused before any download with a 422. The allowed types and the way images are stored are described on Upload a media file.
Request
- Method:
POST - URL:
https://app.socialk.it/core/api/<workspaceUuid>/media/remote/initiate - Authorization:
Bearer <personal-key> - Content-Type:
application/json - Roles: Admin, Member (see Permissions)
Path parameters
| Parameter | Type | Description |
|---|---|---|
workspaceUuid | string | UUID of the workspace. |
Body
{
"url": "https://example.com/images/spring-launch.jpg",
"alt_text": "Spring launch banner",
"folder": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46"
}| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Public http or https link to the file. It must answer SocialKit's request. |
alt_text | string | No | Alt text, up to 255 characters. |
folder | string | No | UUID of a folder to file it in. With a UUID that matches no folder, the file goes to the top level. |
adobe_express_doc_id | string | No | ID of an Adobe Express document, up to 255 characters. Using the same ID again replaces the earlier file. |
Example
curl -X POST 'https://app.socialk.it/core/api/<workspaceUuid>/media/remote/initiate' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <personal-key>' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com/images/spring-launch.jpg", "folder": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46"}'Response
A small file, downloaded during the request. This media object has more fields than the one on Get a media file, most of them null, and no size. The fields they share are the same.
{
"status": "completed",
"media": {
"id": "43",
"uuid": "2d8f4b60-a1e7-4c35-b9d2-84f0c6a7e913",
"name": "spring-launch",
"mime_type": "image/jpeg",
"type": "image",
"url": "https://media.socialk.it/3f1c9a2e-7b44-4d0e-9a51-2c8e6b7d1f90/uploads/11-2026/7a1c3e5f9b2d4068a1c3e5f7b9d1f3a5c7e9b1d3.jpg",
"thumb_url": "https://media.socialk.it/3f1c9a2e-7b44-4d0e-9a51-2c8e6b7d1f90/uploads/11-2026/7a1c3e5f9b2d4068a1c3e5f7b9d1f3a5c7e9b1d3-thumb.jpg",
"video_custom_thumb_url": null,
"is_video": false,
"is_processing": false,
"width": null,
"height": null,
"duration_ms": null,
"usage": null,
"is_favorite": null,
"folder": {
"uuid": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46",
"name": "Campaigns"
},
"source_url": null,
"credit_url": null,
"author": null,
"source": null,
"alt_text": "Spring launch banner",
"download_data": null,
"adobe_express_doc_id": null,
"created_at": "2026-11-24 14:20:45"
}
}A large file, downloading in the background:
{
"download_id": "f6a3c9e2-1b57-4d80-93ac-7e2d5b0f8c41",
"status": "pending"
}A small file that SocialKit could not download:
{
"status": "failed",
"error": "<why the download failed>"
}Other messages under errors.url: Unable to determine the remote file type., The file MIME type is not allowed., The image must no be greater than 15 MB and the url validation errors. The upload can also return the plan storage limit 422 from Upload a media file.
The error field holds a short reason text. Show your own message to your users instead of passing it on.