---
title: "Create a team link"
method: POST
path: "/api/v2/team/{team_id}/links"
tags: ["Teams"]
---

# Create a team link

`POST /api/v2/team/{team_id}/links`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/team/{team_id}/links`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `teams_read`

Add a new link to a team.

## Path parameters

- `team_id` string, required

## Request body

- TeamLinkCreateRequest: Team link create request
  - `data` TeamLinkCreate, required: Team link create
    - `attributes` TeamLinkAttributes, required: Team link attributes
      - `label` string, required: The link's label
      - `position` integer: The link's position, used to sort links for the team
      - `team_id` string: ID of the team the link is associated with
      - `url` string, required: The URL for the link
    - `type` 'team_links', required: Team link type

## Response `200`

OK

- TeamLinkResponse: Team link response
  - `data` TeamLink: Team link
    - `attributes` TeamLinkAttributes, required: Team link attributes
      - `label` string, required: The link's label
      - `position` integer: The link's position, used to sort links for the team
      - `team_id` string: ID of the team the link is associated with
      - `url` string, required: The URL for the link
    - `id` string, required: The team link's identifier
    - `type` 'team_links', required: Team link type

## Other responses

- `403`: Forbidden
- `404`: API error response.
- `422`: API error response.
- `429`: Too many requests

---

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