> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Published Team

> Returns the full public profile of a single published team from the directory.

# Get Published Team

Returns the full public profile for a single team in the member directory. Used when a customer clicks on a team card in the directory to view its detailed profile in a modal.

## Authentication

Requires a valid customer bearer token.

## Path Parameters

<ParamField path="teamId" type="number" required>
  Numeric identifier of the team. Returned as `Id` in the `Records` array from [`GET
      /api/public/teams/published`](/api/endpoints/teams/directory-list).
</ParamField>

## Query Parameters

<ParamField query="_shape" type="string">
  Comma-separated dot-notated field paths to include in the response. When provided, only the
  specified fields are returned — useful for reducing payload size.
</ParamField>

## Response

Returns a team profile object with the same fields as [`GET /api/public/teams/{teamId}/profile`](/api/endpoints/teams/team-details), but scoped to publicly visible information. See that endpoint for the full field breakdown.

### Key Team Profile Fields

| Field               | Type      | Description                             |
| ------------------- | --------- | --------------------------------------- |
| `Id`                | `number`  | Unique numeric identifier for the team  |
| `Name`              | `string`  | Team display name                       |
| `Description`       | `string`  | Team description                        |
| `ProfileSummary`    | `string`  | Short team bio                          |
| `ProfileIsPublic`   | `boolean` | Whether the profile is publicly visible |
| `ProfileWebsite`    | `string`  | Team website URL                        |
| `HasTeamLogo`       | `boolean` | Whether the team has a logo image       |
| `TeamMembersCount`  | `number`  | Number of team members                  |
| `BusinessName`      | `string`  | Location display name                   |
| `HasCommunityGroup` | `boolean` | Whether the team has a discussion group |
| `Twitter`           | `string`  | Twitter handle/URL                      |
| `Linkedin`          | `string`  | LinkedIn URL                            |

## Examples

### Fetch a published team profile

```http theme={null}
GET /api/public/teams/published/55
Authorization: Bearer {token}
```

```json theme={null}
{
  "Id": 55,
  "Name": "Tech Innovators",
  "ProfileSummary": "Building the future, one innovation at a time",
  "ProfileIsPublic": true,
  "ProfileWebsite": "https://techinnovators.example.com",
  "ProfileTags": "technology startup innovation",
  "ProfileTagsList": ["technology", "startup", "innovation"],
  "BusinessName": "Downtown Coworking Hub",
  "Twitter": "https://twitter.com/techinnovators",
  "Linkedin": "https://linkedin.com/company/techinnovators",
  "Github": "https://github.com/techinnovators",
  "HasTeamLogo": true,
  "TeamMembersCount": 12
}
```

## TypeScript Integration

```typescript theme={null}
import { endpoints } from '@/api/endpoints'
import { useData } from '@/hooks/useData'

const { resource: team } = useData(httpClient, endpoints.teams.directory.published_one(teamId))
```

## Usage in Portal

| Context                                                  | Source file                                                              |
| -------------------------------------------------------- | ------------------------------------------------------------------------ |
| Team profile modal in directory (`/community/directory`) | `src/views/community/directory/components/TeamDirectoryProfileModal.tsx` |

## Error Responses

<ResponseField name="401 Unauthorized" type="error">
  The customer is not authenticated or the session has expired.
</ResponseField>

<ResponseField name="404 Not Found" type="error">
  Team with the specified ID does not exist or is not publicly visible.
</ResponseField>

## Related Endpoints

| Method | Endpoint                             | Description                       |
| ------ | ------------------------------------ | --------------------------------- |
| `GET`  | `/api/public/teams/published`        | List all published teams          |
| `GET`  | `/api/public/teams/directory/meta`   | Directory metadata (tags, config) |
| `GET`  | `/api/public/teams/{teamId}/profile` | Full team profile (member access) |
