---
title: Create an incident responder
description: Add a responder to an incident.
breadcrumbs: Docs > API > Create an incident responder
---

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

# Create an incident responder

## 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 | POST https://api.datadoghq.com/api/v2/incidents/{incident_id}/responders     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v2/incidents/{incident_id}/responders |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v2/incidents/{incident_id}/responders |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v2/incidents/{incident_id}/responders      |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v2/incidents/{incident_id}/responders |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v2/incidents/{incident_id}/responders |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v2/incidents/{incident_id}/responders |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v2/incidents/{incident_id}/responders      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v2/incidents/{incident_id}/responders  |

### Overview

Add a responder to an incident.

This endpoint requires the `incident_write` permission.

OAuth apps require the `incident_write` 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_id [*required*] | string | The UUID of the incident. |

### Request

#### Body Data (required)

Incident responder payload.

{% tabs %}
{% tab label="Model" %}
| Parent field  | Field                      | Type   | Description                                                                   |
| ------------- | -------------------------- | ------ | ----------------------------------------------------------------------------- |
|               | data [*required*]          | object | Incident responder data in a create request.                                  |
| data          | relationships [*required*] | object | Relationships for creating an incident responder.                             |
| relationships | user [*required*]          | object | Relationship to a user for a responder create request.                        |
| user          | data [*required*]          | object | A user relationship data object for creating a responder.                     |
| data          | id [*required*]            | uuid   | The user identifier.                                                          |
| data          | type [*required*]          | string | The user resource type.                                                       |
| data          | type [*required*]          | enum   | Incident responder resource type. Allowed enum values: `incident_responders`. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "relationships": {
      "user": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "users"
        }
      }
    },
    "type": "incident_responders"
  }
}
```
{% /tab %}
{% /tabs %}

### Response

{% tabs %}
{% tab label="201" %}
Created

{% tabs %}
{% tab label="Model" %}
Response with a single incident responder.

| Parent field     | Field                    | Type      | Description                                                                   |
| ---------------- | ------------------------ | --------- | ----------------------------------------------------------------------------- |
|                  | data [*required*]        | object    | Incident responder data in a response.                                        |
| data             | attributes [*required*]  | object    | Attributes of an incident responder in a response.                            |
| attributes       | created [*required*]     | date-time | Timestamp when the responder was created.                                     |
| attributes       | external_id              | string    | The external ID of the responder.                                             |
| attributes       | external_source          | string    | The external source of the responder.                                         |
| attributes       | is_billable [*required*] | boolean   | Whether this responder counts toward billing.                                 |
| attributes       | last_active              | date-time | Timestamp when the responder was last active.                                 |
| attributes       | meta                     | object    | Additional metadata for the responder.                                        |
| attributes       | modified [*required*]    | date-time | Timestamp when the responder was last modified.                               |
| data             | id [*required*]          | uuid      | The responder identifier.                                                     |
| data             | relationships            | object    | Relationships for an incident responder.                                      |
| relationships    | created_by               | object    | Relationship to user.                                                         |
| created_by       | data [*required*]        | object    | Relationship to user object.                                                  |
| data             | id [*required*]          | string    | A unique identifier that represents the user.                                 |
| data             | type [*required*]        | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.          |
| relationships    | last_modified_by         | object    | Relationship to user.                                                         |
| last_modified_by | data [*required*]        | object    | Relationship to user object.                                                  |
| data             | id [*required*]          | string    | A unique identifier that represents the user.                                 |
| data             | type [*required*]        | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.          |
| relationships    | role_assignments         | object    | Relationship to role assignments for a responder.                             |
| role_assignments | data                     | [object]  | List of role assignment relationship data.                                    |
| data             | id [*required*]          | uuid      | The role assignment identifier.                                               |
| data             | type [*required*]        | string    | The role assignment resource type.                                            |
| relationships    | user                     | object    | Relationship to user.                                                         |
| user             | data [*required*]        | object    | Relationship to user object.                                                  |
| data             | id [*required*]          | string    | A unique identifier that represents the user.                                 |
| data             | type [*required*]        | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.          |
| data             | type [*required*]        | enum      | Incident responder resource type. Allowed enum values: `incident_responders`. |
|                  | included                 | [object]  | Included related resources. Read-only.                                        |
| included         | attributes               | object    | Attributes of user object returned by the API.                                |
| attributes       | email                    | string    | Email of the user.                                                            |
| attributes       | handle                   | string    | Handle of the user.                                                           |
| attributes       | icon                     | string    | URL of the user's icon.                                                       |
| attributes       | name                     | string    | Name of the user.                                                             |
| attributes       | uuid                     | string    | UUID of the user.                                                             |
| included         | id                       | string    | ID of the user.                                                               |
| included         | type                     | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.          |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "created": "2024-01-01T00:00:00.000Z",
      "external_id": null,
      "external_source": null,
      "is_billable": true,
      "last_active": "2024-01-01T00:00:00.000Z",
      "meta": {},
      "modified": "2024-01-01T00:00:00.000Z"
    },
    "id": "00000000-0000-0000-0000-000000000000",
    "relationships": {
      "created_by": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      },
      "last_modified_by": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      },
      "role_assignments": {
        "data": [
          {
            "id": "00000000-0000-0000-0000-000000000000",
            "type": "incident_role_assignments"
          }
        ]
      },
      "user": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "users"
        }
      }
    },
    "type": "incident_responders"
  },
  "included": [
    {
      "attributes": {
        "email": "string",
        "handle": "string",
        "icon": "string",
        "name": "string",
        "uuid": "string"
      },
      "id": "string",
      "type": "users"
    }
  ]
}
```
{% /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_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 POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/responders" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "relationships": {
      "user": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000001",
          "type": "users"
        }
      }
    },
    "type": "incident_responders"
  }
}
EOF
```
{% /tab %}
{% /tabs %}
