---
title: Get a teams ownership mapping
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Rum Teams Ownership
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Get a teams ownership mapping{% #get-a-teams-ownership-mapping %}
Copy pageCopied
{% tab title="v2" %}
**Note**: This endpoint is in Preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                                      |
| ----------------- | --------------------------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/{id} |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/{id} |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/rum/config/teams-ownership/mappings/{id}      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings/{id}      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings/{id}  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/{id} |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/{id}     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/{id} |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/{id} |

### Overview

Get a specific teams ownership mapping from your organization.

### Arguments

#### Path Parameters

| Name                 | Type   | Description                            |
| -------------------- | ------ | -------------------------------------- |
| id [*required*] | string | The ID of the teams ownership mapping. |

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
The response body for a single teams ownership mapping.

| Parent field | Field                            | Type      | Description                                                                                                                                                                                                                                                                 |
| ------------ | -------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|              | data [*required*]           | object    | The JSON:API data envelope for a teams ownership mapping.                                                                                                                                                                                                                   |
| data         | attributes [*required*]     | object    | The attributes of a teams ownership mapping.                                                                                                                                                                                                                                |
| attributes   | application_id [*required*] | string    | The ID of the RUM application this mapping applies to. For browser applications, this is the real application UUID. For mobile applications, this is the nil UUID `00000000-0000-0000-0000-000000000000` (wildcard), meaning the ownership applies across all applications. |
| attributes   | created_at [*required*]     | date-time | Timestamp when the mapping was created.                                                                                                                                                                                                                                     |
| attributes   | created_by [*required*]     | string    | The UUID of the user who created the mapping.                                                                                                                                                                                                                               |
| attributes   | match_type [*required*]     | enum      | How the `view_name` is matched against RUM view names. Allowed enum values: `exact,prefix`                                                                                                                                                                                  |
| attributes   | org_id [*required*]         | int64     | The ID of the organization that owns this mapping.                                                                                                                                                                                                                          |
| attributes   | service [*required*]        | string    | The RUM application's service name. For browser applications, may be empty. For mobile applications, this is the service that scopes the ownership.                                                                                                                         |
| attributes   | team_handle [*required*]    | string    | The handle of the team that owns the matched RUM views.                                                                                                                                                                                                                     |
| attributes   | view_name [*required*]      | string    | The RUM view name to match, or its prefix when `match_type` is `prefix`.                                                                                                                                                                                                    |
| data         | id [*required*]             | string    | The unique identifier of the teams ownership mapping.                                                                                                                                                                                                                       |
| data         | type [*required*]           | enum      | The type of the resource. The value should always be teams_ownership_mappings. Allowed enum values: `teams_ownership_mappings`                                                                                                                                              |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "created_at": "2026-01-15T09:30:00.000Z",
      "created_by": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
      "match_type": "exact",
      "org_id": 123456,
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "id": "123",
    "type": "teams_ownership_mappings"
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Not Authorized
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export id="CHANGE_ME" \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/${id}" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" 
                
##### 

```python
"""
Get a teams ownership mapping returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.rum_teams_ownership_api import RumTeamsOwnershipApi

# there is a valid "teams_ownership_mapping" in the system
TEAMS_OWNERSHIP_MAPPING_DATA_ID = environ["TEAMS_OWNERSHIP_MAPPING_DATA_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
    api_instance = RumTeamsOwnershipApi(api_client)
    response = api_instance.get_teams_ownership_mapping(
        id=TEAMS_OWNERSHIP_MAPPING_DATA_ID,
    )

    print(response)
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=python) and then save the example to `example.py` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" python3 "example.py"
##### 

```ruby
# Get a teams ownership mapping returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new

# there is a valid "teams_ownership_mapping" in the system
TEAMS_OWNERSHIP_MAPPING_DATA_ID = ENV["TEAMS_OWNERSHIP_MAPPING_DATA_ID"]
p api_instance.get_teams_ownership_mapping(TEAMS_OWNERSHIP_MAPPING_DATA_ID)
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=ruby) and then save the example to `example.rb` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" rb "example.rb"
##### 

```go
// Get a teams ownership mapping returns "OK" response

package main

import (
	"context"
	"encoding/json"
	"fmt"
	"os"

	"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
)

func main() {
	// there is a valid "teams_ownership_mapping" in the system
	TeamsOwnershipMappingDataID := os.Getenv("TEAMS_OWNERSHIP_MAPPING_DATA_ID")

	ctx := datadog.NewDefaultContext(context.Background())
	configuration := datadog.NewConfiguration()
	apiClient := datadog.NewAPIClient(configuration)
	api := datadogV2.NewRumTeamsOwnershipApi(apiClient)
	resp, r, err := api.GetTeamsOwnershipMapping(ctx, TeamsOwnershipMappingDataID)

	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `RumTeamsOwnershipApi.GetTeamsOwnershipMapping`: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}

	responseContent, _ := json.MarshalIndent(resp, "", "  ")
	fmt.Fprintf(os.Stdout, "Response from `RumTeamsOwnershipApi.GetTeamsOwnershipMapping`:\n%s\n", responseContent)
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=go) and then save the example to `main.go` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" go run "main.go"
##### 

```java
// Get a teams ownership mapping returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.RumTeamsOwnershipApi;
import com.datadog.api.client.v2.model.TeamsOwnershipMappingResponse;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = ApiClient.getDefaultApiClient();
    RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient);

    // there is a valid "teams_ownership_mapping" in the system
    String TEAMS_OWNERSHIP_MAPPING_DATA_ID = System.getenv("TEAMS_OWNERSHIP_MAPPING_DATA_ID");

    try {
      TeamsOwnershipMappingResponse result =
          apiInstance.getTeamsOwnershipMapping(TEAMS_OWNERSHIP_MAPPING_DATA_ID);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling RumTeamsOwnershipApi#getTeamsOwnershipMapping");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=java) and then save the example to `Example.java` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" java "Example.java"
##### 

```rust
// Get a teams ownership mapping returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_rum_teams_ownership::RumTeamsOwnershipAPI;

#[tokio::main]
async fn main() {
    // there is a valid "teams_ownership_mapping" in the system
    let teams_ownership_mapping_data_id = std::env::var("TEAMS_OWNERSHIP_MAPPING_DATA_ID").unwrap();
    let configuration = datadog::Configuration::new();
    let api = RumTeamsOwnershipAPI::with_config(configuration);
    let resp = api
        .get_teams_ownership_mapping(teams_ownership_mapping_data_id.clone())
        .await;
    if let Ok(value) = resp {
        println!("{:#?}", value);
    } else {
        println!("{:#?}", resp.unwrap_err());
    }
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=rust) and then save the example to `src/main.rs` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
##### 

```typescript
/**
 * Get a teams ownership mapping returns "OK" response
 */

import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
const apiInstance = new v2.RumTeamsOwnershipApi(configuration);

// there is a valid "teams_ownership_mapping" in the system
const TEAMS_OWNERSHIP_MAPPING_DATA_ID = process.env
  .TEAMS_OWNERSHIP_MAPPING_DATA_ID as string;

const params: v2.RumTeamsOwnershipApiGetTeamsOwnershipMappingRequest = {
  id: TEAMS_OWNERSHIP_MAPPING_DATA_ID,
};

apiInstance
  .getTeamsOwnershipMapping(params)
  .then((data: v2.TeamsOwnershipMappingResponse) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data)
    );
  })
  .catch((error: any) => console.error(error));
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=typescript) and then save the example to `example.ts` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
{% /tab %}
