Skip to content
StudyFetch API

Folders

Get folder by ID

OpenAPI specification
GET/api/v1/folders/{id}

Authentication

x-api-key

Request

curl --globoff --request GET \
  --url 'https://api.example.com/api/v1/folders/%3Cid%3E' \
  --header 'x-api-key: <API_KEY>'

Replace credential and <field> placeholders with your own values. URL placeholders appear as %3Cfield%3E. Review the example values before sending your request.

Replace https://api.example.com with the API server URL.

Parameters

idpath · string · required

Folder ID

Responses

200Folder retrieved successfully
{
  "type": "object",
  "properties": {
    "_id": {
      "type": "object",
      "description": "Folder ID"
    },
    "name": {
      "type": "string",
      "description": "Folder name"
    },
    "organizationId": {
      "type": "string",
      "description": "Organization ID"
    },
    "parentFolderId": {
      "type": "string",
      "description": "Parent folder ID",
      "nullable": true
    },
    "description": {
      "type": "string",
      "description": "Folder description"
    },
    "status": {
      "type": "string",
      "description": "Folder status",
      "enum": [
        "active",
        "deleted"
      ]
    },
    "metadata": {
      "description": "Folder metadata",
      "allOf": [
        {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Folder color"
            },
            "icon": {
              "type": "string",
              "description": "Folder icon"
            },
            "materialCount": {
              "type": "number",
              "description": "Number of materials in folder"
            },
            "totalSize": {
              "type": "number",
              "description": "Total size of materials in folder"
            },
            "lastActivity": {
              "format": "date-time",
              "type": "string",
              "description": "Last activity date"
            }
          }
        }
      ]
    },
    "createdAt": {
      "type": "object",
      "description": "Creation date"
    },
    "updatedAt": {
      "type": "object",
      "description": "Last update date"
    },
    "subfolders": {
      "type": "array",
      "description": "Subfolders",
      "items": {
        "type": "object"
      }
    },
    "materialCount": {
      "type": "number",
      "description": "Total number of materials"
    }
  },
  "required": [
    "_id",
    "name",
    "organizationId",
    "status",
    "subfolders",
    "materialCount"
  ]
}