---
title: "List folders under a Google account"
method: GET
path: "/connected-accounts/{connectedAccountId}/folders"
tags: ["Connected Accounts"]
---

# List folders under a Google account

`GET /connected-accounts/{connectedAccountId}/folders`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/connected-accounts/{connectedAccountId}/folders`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/connected-accounts/:connectedAccountId/folders/get.ts> (a function with typed inputs; its response is checked against the schema)

List all the folders in Google My Business for a given connected account.

## Path parameters

- `connectedAccountId` string, required

## Query parameters

- `folderName` string

## Headers

- `Authorization` string
- `Content-Type` string

## Response `200`

- object
  - `data` object, required
    - `getFoldersUnderGoogleAccount` object[], required
      - `name` string, required: Name of the folder
      - `locationCount` integer, required: Number of locations in the folder
      - `folderId` string, required: Unique identifier for the folder in Google My Business (e.g. "accounts/103301192460668915768")

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
