Clients
List client accounts by connector
List a client's linked accounts for a single connector.
GET /teams/{teamId}/clients/{clientId}/accounts/{connectorId}
Returns the client's linked accounts for a single connector. The response uses the same account object as List client accounts, filtered to the given connector.
Authentication: Bearer token · Role: viewer · Permission:
clients:read · Rate limit: default (120 / 60s)Path parameters
teamId
string · uuid v7 required
The team the client belongs to.
clientId
string · uuid v7 required
The ID of the client whose linked accounts to list.
connectorId
string required
The connector to filter by. Must be a valid connector ID (e.g.
gadw, fb).Request
curl https://api.twominutereports.com/v1/teams/0190f8b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f/clients/0190f8c0-1a2b-7c3d-8e4f-5a6b7c8d9e0f/accounts/gadw \
-H "Authorization: Bearer tmrc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Response
Returns an array of account objects for the connector. The array is empty if no accounts are linked for it.
{
"success": true,
"data": [
{
"id": "1234567890",
"name": "Acme – Google Ads",
"displayId": "123-456-7890",
"description": "Manager account",
"accessible": true,
"status": "enabled",
"connectorId": "gadw"
}
]
}
Returned when connectorId is not a recognised connector.
{
"success": false,
"error": { "code": "BAD_REQUEST", "message": "Invalid connector ID: \"foo\"" }
}
Returned when the client does not exist or does not belong to this team.
{
"success": false,
"error": { "code": "NOT_FOUND", "message": "Client not found" }
}