For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/api/latest/incidents/create-a-page-from-an-incident.md. A documentation index is available at /llms.txt.
Language
Datadog site

Create a page from an incident

WARNINGNote: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
POSThttps://api.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.us3.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.us5.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.datadoghq.eu/api/v2/incidents/{incident_id}/cases/pagehttps://api.ap1.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.ap2.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.uk1.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.ddog-gov.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.us2.ddog-gov.com/api/v2/incidents/{incident_id}/cases/page

Overview

Create a page from an incident using the Cases service.

Deprecated: This endpoint is deprecated. Use Create an on-call page from an incident instead.

This endpoint requires all of the following permissions:

  • oncall_page
  • incident_write

OAuth apps require the incident_write authorization scope to access this endpoint.

Arguments

Path Parameters

Name
Type
Description
incident_id [required]
string

The UUID of the incident.

Request

Body Data (required)

Page creation payload.

Field
Type
Description
data [required]
object

Page data in a create request.

Response

OK

Response with a page UUID.

Field
Type
Description
data [required]
object

Page UUID data in a response.

Code Example

Create a page from an incident
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# 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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF
# Path parameters
export incident_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="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}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "A critical incident affecting production systems.",
      "services": [
        "web-store"
      ],
      "tags": [
        "env:prod"
      ],
      "target": {
        "identifier": "my-oncall-team",
        "type": "team_handle"
      },
      "title": "Production outage - SEV-1"
    },
    "type": "page"
  }
}
EOF