---
title: Get resource type
description: Get a single SCIM resource type using the resource_id. Supported resource_id values are User and Group.
breadcrumbs: Documentation > API > Get resource type
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# Get resource type

## v2 (latest)

| Datadog site      | API endpoint                                                              |
| ----------------- | ------------------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/scim/ResourceTypes/{resource_id}     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/scim/ResourceTypes/{resource_id} |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/scim/ResourceTypes/{resource_id} |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/scim/ResourceTypes/{resource_id}      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/scim/ResourceTypes/{resource_id} |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/scim/ResourceTypes/{resource_id} |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/scim/ResourceTypes/{resource_id} |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/scim/ResourceTypes/{resource_id}      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/scim/ResourceTypes/{resource_id}  |

### Overview

Get a single SCIM resource type using the `resource_id`.
Supported `resource_id` values are `User` and `Group`.

This endpoint requires all of the following permissions:

- `user_access_invite`
- `user_access_manage`

### Arguments

#### Path Parameters

| Field                    | Type   | Description                              |
| ------------------------ | ------ | ---------------------------------------- |
| resource_id [*required*] | string | The id of the resource type to retrieve. |

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
Definition of a SCIM resource type.

| Parent field | Field        | Type     | Description                                                                       |
| ------------ | ------------ | -------- | --------------------------------------------------------------------------------- |
|              | description  | string   | Human-readable description of the resource type.                                  |
|              | endpoint     | string   | HTTP-addressable endpoint relative to the base URL where the resource is located. |
|              | id           | string   | The resource type's server unique id.                                             |
|              | meta         | object   | Metadata associated with a resource type.                                         |
| meta         | location     | string   | URL identifying the resource type.                                                |
| meta         | resourceType | string   | Type of resource.                                                                 |
|              | name         | string   | The resource type name.                                                           |
|              | schema       | string   | The resource type's primary or base SCIM schema URI.                              |
|              | schemas      | [string] | A list of SCIM schema URI identifying the protocol or schema used in this object. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "description": "https://tools.ietf.org/html/rfc7643#section-8.7.1",
  "endpoint": "/Users",
  "id": "User",
  "meta": {
    "location": "https://app.datadoghq.com/api/v2/scim/ResourceTypes/User",
    "resourceType": "ResourceType"
  },
  "name": "User",
  "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="404" %}
Not Found

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Path parameters
export resource_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/scim/ResourceTypes/${resource_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
```
{% /tab %}
{% /tabs %}
