workspaces

List workspace folders

Changed on

Plan: Business or higher

Scope: workspaces:read

Returns the workspace's folders, sorted by name then id. Each project belongs to at most one folder; match a folder's id against the folder_id of GET /v1/projects and GET /v1/workspaces/{workspace_id}/security-center/insights/projects to group projects by folder, and filter either list with folder_id or is_in_folder. Restricted folders are returned only when the caller created them, was given access to them, or may manage every member's restricted folders. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

get/v1/workspaces/{workspace_id}/folders

Request

  • Base URL
    https://api.lovable.dev
  • Auth
    • API key in header Lovable-API-Key
    • or HTTP bearer

Path parameters

workspace_idstring required

Workspace ID.

Example:workspace_01jw3k9m2xq8r5v0c7d4e6f2gh

Query parameters

limitinteger

Maximum number of items to return per page.

Example:50
cursorstring

Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.

Headers

Lovable-Versionstring

Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.

Lovable-Betastring

Comma-separated beta revision strings to enable on top of the stable version.

Response

OK

Example response

{
  "data": [
    {
      "created_at": "2026-01-15T09:30:00Z",
      "id": "fold_01jw3k9m2xq8r5v0c7d4e6f2gh",
      "name": "Finance apps",
      "parent_id": "fold_01jw3k9m2xq8r5v0c7d4e6f2gh",
      "updated_at": "2026-01-15T09:30:00Z"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "eyJ2IjoxLCJpZCI6InByal8wMWp3M2s5In0"
  }
}

Changes