Skip to content
SynupAPI
Get an API key
GETapi.synup.com/api/v4/connected-accounts/{connectedAccountId}/folders

List folders under a Google account

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

Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Path

NameTypeRequiredDescription
connectedAccountIdstringrequired

Query

NameTypeRequiredDescription
folderNamestringoptionalOptional. Filter folders by name. If provided, returns only folders that match this name. Folders are also known as groups in GMB. eg: Downtown

Headers

NameTypeRequiredDescription
Content-Typestringoptional

Request

Request
curl -X GET 'https://api.synup.com/api/v4/connected-accounts/:connectedAccountId/folders?folderName=' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200
Example response
{
  "data": {
    "getFoldersUnderGoogleAccount": [
      {
        "name": "Main Branch",
        "locationCount": 5,
        "folderId": "accounts/103301192460668915768"
      },
      {
        "name": "Downtown",
        "locationCount": 3,
        "folderId": "accounts/1154433325552997863009"
      }
    ]
  }
}

Response body

NameTypeRequiredDescription
dataobjectrequired
data.getFoldersUnderGoogleAccountarray of objectrequired
data.getFoldersUnderGoogleAccount[].namestringrequiredName of the folder
data.getFoldersUnderGoogleAccount[].locationCountintegerrequiredNumber of locations in the folder
data.getFoldersUnderGoogleAccount[].folderIdstringrequiredUnique identifier for the folder in Google My Business (e.g. "accounts/103301192460668915768")