Listing Teams by User

Listing through teams can be done via the following endpoint. This endpoint return the complete list related to the org.

GET https://driftapi.com/teams/users/{userId}

Example request

curl --location 'https://driftapi.com/teams/users/<USER_ID>' \
--header 'Authorization: Bearer <AUTH_TOKEN>'

The response returned will have the structure below:

{
  "data": [
      {
          "id": 12345,
          "orgId": 42,
          "workspaceId": "a1b2c3d4e5f6",
          "name": "Example Team",
          "updatedAt": 1678923456123,
          "members": [
              98765,
              54321
          ],
          "owner": 98765,
          "status": "ENABLED",
          "main": true,
          "autoOffline": true,
          "teamCsatEnabled": true,
          "teamAvailabilityMode": "ALWAYS_ONLINE",
          "responseTimerEnabled": true
      }
     ]
  }
}

Listing teams by user requires the team_read scope.