---
title: Get org settings by incident type
description: Get the org settings for a specific incident type.
breadcrumbs: Docs > API > Get org settings by incident type
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/llms.txt).

# Get org settings by incident type

## v2 (latest)

{% alert level="warning" %}
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help.md).
{% /alert %}

| Datadog site      | API endpoint                                                                                    |
| ----------------- | ----------------------------------------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/incidents/config/types/{incident_type_id}/org-settings     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/incidents/config/types/{incident_type_id}/org-settings |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/incidents/config/types/{incident_type_id}/org-settings |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/incidents/config/types/{incident_type_id}/org-settings      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/incidents/config/types/{incident_type_id}/org-settings |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/incidents/config/types/{incident_type_id}/org-settings |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/incidents/config/types/{incident_type_id}/org-settings |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/incidents/config/types/{incident_type_id}/org-settings      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/incidents/config/types/{incident_type_id}/org-settings  |

### Overview

Get the org settings for a specific incident type.

This endpoint requires any of the following permissions:

- `incident_settings_read`
- `incident_read`

OAuth apps require the `incident_read` authorization [scope](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/api/latest/scopes.md#incidents) to access this endpoint.

### Arguments

#### Path Parameters

| Field                         | Type   | Description                    |
| ----------------------------- | ------ | ------------------------------ |
| incident_type_id [*required*] | string | The UUID of the incident type. |

#### Query Strings

| Field   | Type   | Description                                                           |
| ------- | ------ | --------------------------------------------------------------------- |
| include | string | Comma-separated list of related resources to include in the response. |

### Response

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

{% tabs %}
{% tab label="Model" %}
Response with a single incident org settings resource.

| Parent field  | Field                   | Type      | Description                                                                                    |
| ------------- | ----------------------- | --------- | ---------------------------------------------------------------------------------------------- |
|               | data [*required*]       | object    | Incident org settings data in a response.                                                      |
| data          | attributes [*required*] | object    | Attributes of an incident org settings resource in a response.                                 |
| attributes    | created [*required*]    | date-time | Timestamp when the settings were created.                                                      |
| attributes    | modified [*required*]   | date-time | Timestamp when the settings were last modified.                                                |
| attributes    | settings [*required*]   | object    | The settings configuration for an incident org settings resource.                              |
| data          | id [*required*]         | uuid      | The org settings identifier.                                                                   |
| data          | relationships           | object    | Relationships for an incident org settings resource.                                           |
| relationships | incident_type           | object    | Relationship to an incident type.                                                              |
| incident_type | data [*required*]       | object    | Relationship to incident type object.                                                          |
| data          | id [*required*]         | string    | The incident type's ID.                                                                        |
| data          | type [*required*]       | enum      | Incident type resource type. Allowed enum values: `incident_types`. Default: `incident_types`. |
| data          | type [*required*]       | enum      | Incident org settings resource type. Allowed enum values: `incident_org_settings`.             |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "created": "2024-01-01T00:00:00.000Z",
      "modified": "2024-01-01T00:00:00.000Z",
      "settings": {
        "allow_anonymous_incident_declaration": false,
        "allow_guest_incident_declaration": false,
        "pagerduty_paging": true,
        "private_incidents_by_default": false
      }
    },
    "id": "00000000-0000-0000-0000-000000000000",
    "relationships": {
      "incident_type": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "incident_types"
        }
      }
    },
    "type": "incident_org_settings"
  }
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

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

{% 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="401" %}
Unauthorized

{% 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="403" %}
Forbidden

{% 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="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 incident_type_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/incidents/config/types/${incident_type_id}/org-settings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
```
{% /tab %}
{% /tabs %}
