API referenceAccounts and workspaces
List account groups
Find the account groups in the workspace and the accounts in each group.
curl -X GET "https://example.com/api/v1/account-groups"{ "groups": [ { "groupId": "77777777-7777-4777-8777-777777777777", "name": "Brand A", "accountIds": [ "11111111-1111-4111-8111-111111111111" ] }, { "groupId": "88888888-8888-4888-8888-888888888888", "name": "Brand B", "accountIds": [] } ]}Return the account groups in the API key's workspace, in the same order as the Accounts page in Posteady. Each group lists its accounts by accountId, and an account can belong to one group at most. You create and edit groups in Posteady.
Authorization
apiKey AuthorizationBearer <token>
In: header
Response body
application/json