SocialKit
APIMedia

List media folders

Get every media folder of a workspace as one flat list, with each folder's parent and file count.

Folders are labels for organising files: a file keeps its URL whichever folder it is in. A workspace can nest folders up to 5 levels deep. The list holds the whole tree in one response, ordered by name, with no pages. Rebuild the tree from the parent field.

Request

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

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.

Example

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

Response

{
  "data": [
    {
      "uuid": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46",
      "name": "Campaigns",
      "parent": null,
      "media_count": 12
    },
    {
      "uuid": "8d3b5f17-2a64-4c90-b7e1-0f9a6d2c4e85",
      "name": "Black Friday",
      "parent": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46",
      "media_count": 4
    }
  ]
}

The folder object

Create and update a folder return one folder object, not wrapped in data.

FieldTypeDescription
uuidstringUUID of the folder.
namestringName of the folder.
parentstring or nullUUID of the parent folder. null for a folder at the top level.
media_countintegerNumber of files in the folder and in all folders below it.

To list the files of one folder, pass its UUID as folder to List media files.

On this page