SocialKit
APIMedia

Check a URL download

Read the status of a background download started with Upload from a URL, and get the media file when it is done.

Poll this endpoint every few seconds with the download_id from Upload from a URL. Read the flow there.

The status moves from pending to downloading, then processing, then ends as completed or failed. progress is 0 until the file is done and 100 when it is.

SocialKit keeps the result for one hour and shows a finished result once: after you read completed or failed, the download_id is gone and the next call returns 404. Save the media object (or its uuid) the first time.

Request

  • Method: GET
  • URL: https://app.socialk.it/core/api/<workspaceUuid>/media/remote/<downloadId>/status
  • Authorization: Bearer <personal-key>
  • Roles: Admin, Member (see Permissions)

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.
downloadIdstringThe download_id from Upload from a URL.

Example

curl -X GET 'https://app.socialk.it/core/api/<workspaceUuid>/media/remote/<downloadId>/status' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

{
  "status": "downloading",
  "progress": 0
}

The 404 above means the download_id is unknown, older than an hour, already read after it finished, or from another workspace. A 404 with {"message": "Workspace not found."} means the workspace UUID is wrong.

The media object is the one from Get a media file, except that folder is always null here, even when the file was filed in a folder. The error field holds a short reason text.

On this page