---
title: Get Agent Observability Scanning Group
description: Get an Agent Observability scanning group, with its rules included. Scanning groups of logs, RUM, events, and APM are reported as not found.
breadcrumbs: Docs > API > Get Agent Observability Scanning Group
---

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

# Get Agent Observability Scanning Group

## v2 (latest)

| Datadog site      | API endpoint                                                                      |
| ----------------- | --------------------------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/sensitive-data-scanner/groups/{group_id}     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/sensitive-data-scanner/groups/{group_id} |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/sensitive-data-scanner/groups/{group_id} |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/sensitive-data-scanner/groups/{group_id}      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/sensitive-data-scanner/groups/{group_id} |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/sensitive-data-scanner/groups/{group_id} |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/sensitive-data-scanner/groups/{group_id} |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/sensitive-data-scanner/groups/{group_id}      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/sensitive-data-scanner/groups/{group_id}  |

### Overview

Get an Agent Observability scanning group, with its rules included.
Scanning groups of logs, RUM, events, and APM are reported as not found.

This endpoint requires the `data_scanner_read` permission.

### Arguments

#### Path Parameters

| Field                 | Type   | Description                 |
| --------------------- | ------ | --------------------------- |
| group_id [*required*] | string | The ID of a group of rules. |

### Response

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

{% tabs %}
{% tab label="Model" %}
A scanning group of a target, with its rules included.

| Parent field                               | Field                                      | Type     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------------------------------ | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                            | data [*required*]                          | object   | A scanning group of a target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| data                                       | attributes [*required*]                    | object   | Attributes of a scanning group of a target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| attributes                                 | description [*required*]                   | string   | Description of the group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| attributes                                 | is_enabled [*required*]                    | boolean  | Whether or not the group is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| attributes                                 | name [*required*]                          | string   | Name of the group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| attributes                                 | targets [*required*]                       | [object] | Targets the scanning group applies to. A scanning group has a single target for now.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| targets                                    | type [*required*]                          | enum     | Type of target whose scanning groups are served by the target-scoped group routes. `llm_observability` is Agent Observability. Allowed enum values: `llm_observability`.                                                                                                                                                                                                                                                                                                                                            |
| data                                       | id [*required*]                            | string   | ID of the group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data                                       | relationships [*required*]                 | object   | Relationships of a scanning group of a target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| relationships                              | rules [*required*]                         | object   | Rules included in the group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| rules                                      | data                                       | [object] | Rules included in the group. The order is important.                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data                                       | id                                         | string   | ID of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data                                       | type                                       | enum     | Sensitive Data Scanner rule type. Allowed enum values: `sensitive_data_scanner_rule`. Default: `sensitive_data_scanner_rule`.                                                                                                                                                                                                                                                                                                                                                                                       |
| data                                       | type [*required*]                          | enum     | Sensitive Data Scanner group type. Allowed enum values: `sensitive_data_scanner_group`. Default: `sensitive_data_scanner_group`.                                                                                                                                                                                                                                                                                                                                                                                    |
|                                            | included                                   | [object] | Rules of the returned groups.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| included                                   | attributes                                 | <oneOf>  | Attributes of a rule of a scanning group of a target. They depend on the type of rule.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| attributes                                 | <rule_type=regex_custom_rule>              | object   | Attributes of a custom rule, which matches the regular expression in `pattern`.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <rule_type=regex_custom_rule>              | description                                | string   | Description of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <rule_type=regex_custom_rule>              | excluded_namespaces                        | [string] | Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.                                                                                                                                                                                                                                                                                                                                                                                                      |
| <rule_type=regex_custom_rule>              | included_keyword_configuration             | object   | Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check, the match is kept. If none are found, the match is discarded.                                                                                                                                                                                      |
| included_keyword_configuration             | character_count [*required*]               | int64    | The number of characters behind a match detected by Sensitive Data Scanner to look for the keywords defined. `character_count` should be greater than the maximum length of a keyword defined for a rule.                                                                                                                                                                                                                                                                                                           |
| included_keyword_configuration             | keywords [*required*]                      | [string] | Keyword list that will be checked during scanning in order to validate a match. The number of keywords in the list must be less than or equal to 30.                                                                                                                                                                                                                                                                                                                                                                |
| included_keyword_configuration             | use_recommended_keywords                   | boolean  | Should the rule use the underlying standard pattern keyword configuration. If set to `true`, the rule must be tied to a standard pattern. If set to `false`, the specified keywords and `character_count` are applied.                                                                                                                                                                                                                                                                                              |
| <rule_type=regex_custom_rule>              | is_enabled                                 | boolean  | Whether or not the rule is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <rule_type=regex_custom_rule>              | name                                       | string   | Name of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <rule_type=regex_custom_rule>              | namespaces                                 | [string] | Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.                                                                                                                                                                                                                                                                                                                                          |
| <rule_type=regex_custom_rule>              | pattern [*required*]                       | string   | Regular expression of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <rule_type=regex_custom_rule>              | priority                                   | enum     | Severity of the issues found by the rule. Allowed enum values: `critical`, `high`, `medium`, `low`, `info`.                                                                                                                                                                                                                                                                                                                                                                                                         |
| <rule_type=regex_custom_rule>              | rule_type [*required*]                     | enum     | Type of a custom rule. Allowed enum values: `regex_custom_rule`.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <rule_type=regex_custom_rule>              | suppressions                               | object   | Object describing suppressions for a rule, or the recommended suppression lists published by a standard pattern. There are three types of suppressions, `starts_with`, `ends_with`, and `exact_match`. Rules based on the Datadog library can use recommended or custom suppressions. Custom rules can only use custom suppressions. Suppressed matches are not obfuscated, counted in metrics, or displayed in the Findings page.                                                                                  |
| suppressions                               | ends_with                                  | [string] | List of strings to use for suppression of matches ending with these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| suppressions                               | exact_match                                | [string] | List of strings to use for suppression of matches exactly matching these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| suppressions                               | starts_with                                | [string] | List of strings to use for suppression of matches starting with these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| suppressions                               | use_recommended_suppressions               | boolean  | Should the rule use the underlying standard pattern suppression configuration. If set to `true`, the rule must be tied to a standard pattern. If set to `false`, the specified suppressions are applied.                                                                                                                                                                                                                                                                                                            |
| <rule_type=regex_custom_rule>              | tags                                       | [string] | List of tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <rule_type=regex_custom_rule>              | text_replacement                           | object   | Object describing how the scanned event will be replaced.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| text_replacement                           | number_of_chars                            | int64    | Required if type == 'partial_replacement_from_beginning' or 'partial_replacement_from_end'. It must be > 0.                                                                                                                                                                                                                                                                                                                                                                                                         |
| text_replacement                           | replacement_string                         | string   | Required if type == 'replacement_string'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| text_replacement                           | should_save_match                          | boolean  | Only valid when type == `replacement_string`. When enabled, matches can be unmasked in logs by users with ‘Data Scanner Unmask’ permission. As a security best practice, avoid masking for highly-sensitive, long-lived data.                                                                                                                                                                                                                                                                                       |
| text_replacement                           | type                                       | enum     | Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacement_string means that one can chose a text to replace the data. partial_replacement_from_beginning allows a user to partially replace the data from the beginning, and partial_replacement_from_end on the other hand, allows to replace data from the end. Allowed enum values: `none`, `hash`, `replacement_string`, `partial_replacement_from_beginning`, `partial_replacement_from_end`. Default: `none`. |
| attributes                                 | <rule_type=regex_standard_rule>            | object   | Attributes of a rule based on a standard regex rule, whose pattern is maintained by Datadog.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <rule_type=regex_standard_rule>            | description                                | string   | Description of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <rule_type=regex_standard_rule>            | excluded_namespaces                        | [string] | Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.                                                                                                                                                                                                                                                                                                                                                                                                      |
| <rule_type=regex_standard_rule>            | included_keyword_configuration             | object   | Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check, the match is kept. If none are found, the match is discarded.                                                                                                                                                                                      |
| included_keyword_configuration             | character_count [*required*]               | int64    | The number of characters behind a match detected by Sensitive Data Scanner to look for the keywords defined. `character_count` should be greater than the maximum length of a keyword defined for a rule.                                                                                                                                                                                                                                                                                                           |
| included_keyword_configuration             | keywords [*required*]                      | [string] | Keyword list that will be checked during scanning in order to validate a match. The number of keywords in the list must be less than or equal to 30.                                                                                                                                                                                                                                                                                                                                                                |
| included_keyword_configuration             | use_recommended_keywords                   | boolean  | Should the rule use the underlying standard pattern keyword configuration. If set to `true`, the rule must be tied to a standard pattern. If set to `false`, the specified keywords and `character_count` are applied.                                                                                                                                                                                                                                                                                              |
| <rule_type=regex_standard_rule>            | is_enabled                                 | boolean  | Whether or not the rule is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <rule_type=regex_standard_rule>            | name                                       | string   | Name of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <rule_type=regex_standard_rule>            | namespaces                                 | [string] | Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.                                                                                                                                                                                                                                                                                                                                          |
| <rule_type=regex_standard_rule>            | priority                                   | enum     | Severity of the issues found by the rule. Allowed enum values: `critical`, `high`, `medium`, `low`, `info`.                                                                                                                                                                                                                                                                                                                                                                                                         |
| <rule_type=regex_standard_rule>            | rule_type [*required*]                     | enum     | Type of a rule based on a standard regex rule. Allowed enum values: `regex_standard_rule`.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <rule_type=regex_standard_rule>            | suppressions                               | object   | Object describing suppressions for a rule, or the recommended suppression lists published by a standard pattern. There are three types of suppressions, `starts_with`, `ends_with`, and `exact_match`. Rules based on the Datadog library can use recommended or custom suppressions. Custom rules can only use custom suppressions. Suppressed matches are not obfuscated, counted in metrics, or displayed in the Findings page.                                                                                  |
| suppressions                               | ends_with                                  | [string] | List of strings to use for suppression of matches ending with these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| suppressions                               | exact_match                                | [string] | List of strings to use for suppression of matches exactly matching these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| suppressions                               | starts_with                                | [string] | List of strings to use for suppression of matches starting with these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| suppressions                               | use_recommended_suppressions               | boolean  | Should the rule use the underlying standard pattern suppression configuration. If set to `true`, the rule must be tied to a standard pattern. If set to `false`, the specified suppressions are applied.                                                                                                                                                                                                                                                                                                            |
| <rule_type=regex_standard_rule>            | tags                                       | [string] | List of tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <rule_type=regex_standard_rule>            | text_replacement                           | object   | Object describing how the scanned event will be replaced.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| text_replacement                           | number_of_chars                            | int64    | Required if type == 'partial_replacement_from_beginning' or 'partial_replacement_from_end'. It must be > 0.                                                                                                                                                                                                                                                                                                                                                                                                         |
| text_replacement                           | replacement_string                         | string   | Required if type == 'replacement_string'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| text_replacement                           | should_save_match                          | boolean  | Only valid when type == `replacement_string`. When enabled, matches can be unmasked in logs by users with ‘Data Scanner Unmask’ permission. As a security best practice, avoid masking for highly-sensitive, long-lived data.                                                                                                                                                                                                                                                                                       |
| text_replacement                           | type                                       | enum     | Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacement_string means that one can chose a text to replace the data. partial_replacement_from_beginning allows a user to partially replace the data from the beginning, and partial_replacement_from_end on the other hand, allows to replace data from the end. Allowed enum values: `none`, `hash`, `replacement_string`, `partial_replacement_from_beginning`, `partial_replacement_from_end`. Default: `none`. |
| attributes                                 | <rule_type=machine_learning_standard_rule> | object   | Attributes of a rule based on a standard machine learning rule. It has no pattern or keywords.                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <rule_type=machine_learning_standard_rule> | description                                | string   | Description of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <rule_type=machine_learning_standard_rule> | excluded_namespaces                        | [string] | Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.                                                                                                                                                                                                                                                                                                                                                                                                      |
| <rule_type=machine_learning_standard_rule> | is_enabled                                 | boolean  | Whether or not the rule is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <rule_type=machine_learning_standard_rule> | name                                       | string   | Name of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <rule_type=machine_learning_standard_rule> | namespaces                                 | [string] | Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.                                                                                                                                                                                                                                                                                                                                          |
| <rule_type=machine_learning_standard_rule> | priority                                   | enum     | Severity of the issues found by the rule. Allowed enum values: `critical`, `high`, `medium`, `low`, `info`.                                                                                                                                                                                                                                                                                                                                                                                                         |
| <rule_type=machine_learning_standard_rule> | rule_type [*required*]                     | enum     | Type of a rule based on a standard machine learning rule. Allowed enum values: `machine_learning_standard_rule`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| <rule_type=machine_learning_standard_rule> | suppressions                               | object   | Object describing suppressions for a rule, or the recommended suppression lists published by a standard pattern. There are three types of suppressions, `starts_with`, `ends_with`, and `exact_match`. Rules based on the Datadog library can use recommended or custom suppressions. Custom rules can only use custom suppressions. Suppressed matches are not obfuscated, counted in metrics, or displayed in the Findings page.                                                                                  |
| suppressions                               | ends_with                                  | [string] | List of strings to use for suppression of matches ending with these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| suppressions                               | exact_match                                | [string] | List of strings to use for suppression of matches exactly matching these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| suppressions                               | starts_with                                | [string] | List of strings to use for suppression of matches starting with these strings.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| suppressions                               | use_recommended_suppressions               | boolean  | Should the rule use the underlying standard pattern suppression configuration. If set to `true`, the rule must be tied to a standard pattern. If set to `false`, the specified suppressions are applied.                                                                                                                                                                                                                                                                                                            |
| <rule_type=machine_learning_standard_rule> | tags                                       | [string] | List of tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <rule_type=machine_learning_standard_rule> | text_replacement                           | object   | Object describing how the scanned event will be replaced.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| text_replacement                           | number_of_chars                            | int64    | Required if type == 'partial_replacement_from_beginning' or 'partial_replacement_from_end'. It must be > 0.                                                                                                                                                                                                                                                                                                                                                                                                         |
| text_replacement                           | replacement_string                         | string   | Required if type == 'replacement_string'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| text_replacement                           | should_save_match                          | boolean  | Only valid when type == `replacement_string`. When enabled, matches can be unmasked in logs by users with ‘Data Scanner Unmask’ permission. As a security best practice, avoid masking for highly-sensitive, long-lived data.                                                                                                                                                                                                                                                                                       |
| text_replacement                           | type                                       | enum     | Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacement_string means that one can chose a text to replace the data. partial_replacement_from_beginning allows a user to partially replace the data from the beginning, and partial_replacement_from_end on the other hand, allows to replace data from the end. Allowed enum values: `none`, `hash`, `replacement_string`, `partial_replacement_from_beginning`, `partial_replacement_from_end`. Default: `none`. |
| included                                   | id                                         | string   | ID of the rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| included                                   | relationships                              | object   | Relationships of a rule of a scanning group of a target.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| relationships                              | group                                      | object   | A scanning group data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| group                                      | data                                       | object   | A scanning group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data                                       | id                                         | string   | ID of the group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data                                       | type                                       | enum     | Sensitive Data Scanner group type. Allowed enum values: `sensitive_data_scanner_group`. Default: `sensitive_data_scanner_group`.                                                                                                                                                                                                                                                                                                                                                                                    |
| relationships                              | standard_rule                              | object   | The standard rule a rule is based on. Not included for custom rules.                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| standard_rule                              | data                                       | object   | A standard rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data                                       | id [*required*]                            | string   | ID of the standard rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| data                                       | type [*required*]                          | enum     | Type of standard rule, based on how it detects sensitive data. Allowed enum values: `regex_standard_rule`, `machine_learning_standard_rule`.                                                                                                                                                                                                                                                                                                                                                                        |
| included                                   | type                                       | enum     | Sensitive Data Scanner rule type. Allowed enum values: `sensitive_data_scanner_rule`. Default: `sensitive_data_scanner_rule`.                                                                                                                                                                                                                                                                                                                                                                                       |
|                                            | meta [*required*]                          | object   | Meta response. Always an empty object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "description": "",
      "is_enabled": true,
      "name": "Agent Observability Span Scanning",
      "targets": [
        {
          "type": "llm_observability"
        }
      ]
    },
    "id": "6f1c2a4e-3b5d-4e8f-9a7b-1c2d3e4f5a6b",
    "relationships": {
      "rules": {
        "data": [
          {
            "id": "string",
            "type": "sensitive_data_scanner_rule"
          }
        ]
      }
    },
    "type": "sensitive_data_scanner_group"
  },
  "included": [
    {
      "attributes": {
        "description": "string",
        "excluded_namespaces": [
          "admin.name"
        ],
        "included_keyword_configuration": {
          "character_count": 30,
          "keywords": [
            "email",
            "address",
            "login"
          ],
          "use_recommended_keywords": false
        },
        "is_enabled": false,
        "name": "string",
        "namespaces": [
          "admin"
        ],
        "pattern": "",
        "priority": "high",
        "rule_type": "regex_custom_rule",
        "suppressions": {
          "ends_with": [
            "@example.com",
            "another.example.com"
          ],
          "exact_match": [
            "admin@example.com",
            "user@example.com"
          ],
          "starts_with": [
            "admin",
            "user"
          ],
          "use_recommended_suppressions": false
        },
        "tags": [],
        "text_replacement": {
          "number_of_chars": "integer",
          "replacement_string": "string",
          "should_save_match": false,
          "type": "string"
        }
      },
      "id": "string",
      "relationships": {
        "group": {
          "data": {
            "id": "string",
            "type": "sensitive_data_scanner_group"
          }
        },
        "standard_rule": {
          "data": {
            "id": "ruleIdBank-123456789",
            "type": "regex_standard_rule"
          }
        }
      },
      "type": "sensitive_data_scanner_rule"
    }
  ],
  "meta": {}
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad Request

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

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | code                | string   | An application-specific error code.                                             |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    {
      "code": "invalid_request",
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

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

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | code                | string   | An application-specific error code.                                             |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    {
      "code": "invalid_request",
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

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

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

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | code                | string   | An application-specific error code.                                             |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    {
      "code": "invalid_request",
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "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 group_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
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/sensitive-data-scanner/groups/${group_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
```
{% /tab %}
{% /tabs %}
