Connectors
Enable account
Enable a connector account so it is available for reporting.
POST /teams/{teamId}/connectors/{connectorId}/accounts/{accountId}/enable
Enables a single account under a connector, making it available for reporting. The operation is idempotent — enabling an already-enabled account succeeds without change. Responds with 200 OK.
Authentication: Bearer token · Role: editor · Permission:
connectors:write · Rate limit: default (120 / 60s)The number of accounts you can enable per connector is capped by your team's plan. Once the limit is reached, enabling another account returns
403 FORBIDDEN until you disable an existing account or upgrade.Path parameters
teamId
string · uuid v7 required
The team that owns the connector.
connectorId
string required
The connector ID (e.g.
gadw). A value that is not a recognized connector returns 400 BAD_REQUEST.accountId
string required
The provider-defined account ID to enable.
Request
curl -X POST https://api.twominutereports.com/v1/teams/0190f8b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f/connectors/gadw/accounts/1234567890/enable \
-H "Authorization: Bearer tmrc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Response
{
"success": true,
"data": { "enabled": true }
}
{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "You've reached your plan's account limit of 15 for this connector. Disable an existing account or upgrade your plan."
}
}
{
"success": false,
"error": { "code": "FORBIDDEN", "message": "You do not have permission to perform this action" }
}
{
"success": false,
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Your team's plan has been cancelled. Please reactivate your subscription to continue."
}
}
{
"success": false,
"error": { "code": "NOT_FOUND", "message": "Account not found for this connector" }
}
{
"success": false,
"error": { "code": "UNAUTHORIZED", "message": "Authentication required" }
}