---
title: "Discover teams by email domain"
method: GET
path: "/v2/teams/discover-by-domain"
tags: ["Teams"]
---

# Discover teams by email domain

`GET /v2/teams/discover-by-domain`

## Request

- Base URL: `https://api.village.ai`
- URL: `https://api.village.ai/v2/teams/discover-by-domain`
- Auth: HTTP bearer

Returns all teams that have claimed the domain of the signed-in user's email address (excluding teams they already belong to), each with member count and network reach (null when it can't be computed in time), for the sign-in join prompt. Returns an empty list when the email domain is a public provider or no team claims it.

## Response `200`

Matching teams (possibly empty)

- object
  - `data` DiscoverTeamByDomainResponse, required: Teams that match the signed-in user's email domain (excluding ones they're in)
    - `teams` object[], required
      - `id` string, required
      - `name` string, required
      - `logo` string, nullable, required
      - `domain` string, required
      - `member_count` number, required
      - `direct_warm` number, nullable, required
      - `network_warm` number, nullable, required
      - `is_paid` boolean, required
  - `metadata` object, required
    - `request_id` string, required

## Other responses

- `400`: Bad request - invalid parameters
- `401`: Unauthorized - missing or invalid authentication

---

[API](https://skmtc.dev/village/apis/village-v2-api.md) - [All operations](https://skmtc.dev/village/apis/village-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/village/apis/village-v2-api/revisions/aebe21a1a544?raw)
