---
title: "Get a team by name"
method: GET
path: "/api/v4/teams/name/{name}"
tags: ["teams"]
---

# Get a team by name

`GET /api/v4/teams/name/{name}`

Get a team based on provided name string
##### Permissions
Must be authenticated, team type is open and have the `view_team` permission.

## Path parameters

- `name` string, required

## Response `200`

Team retrieval successful

- 38cb7293Team
  - `id` string
  - `create_at` integer — The time in milliseconds a team was created
  - `update_at` integer — The time in milliseconds a team was last updated
  - `delete_at` integer — The time in milliseconds a team was deleted
  - `display_name` string
  - `name` string
  - `description` string
  - `email` string
  - `type` string
  - `allowed_domains` string
  - `invite_id` string
  - `allow_open_invite` boolean
  - `policy_id` string — The data retention policy to which this team has been assigned. If no such policy exists, or the caller does not have the `sysconsole_read_compliance_data_retention` permission, this field will be null.

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions
- `404` — Resource not found

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
