---
title: "Create a new Opsgenie account"
method: POST
path: "/api/v2/integration/opsgenie/accounts"
tags: ["Opsgenie Integration"]
---

# Create a new Opsgenie account

`POST /api/v2/integration/opsgenie/accounts`

Create a new Opsgenie account in the Datadog Opsgenie integration.

## Request body

- OpsgenieAccountCreateRequest — Create request for an Opsgenie account.
  - `data` OpsgenieAccountCreateData, required — Opsgenie account data for a create request.
    - `attributes` OpsgenieAccountCreateAttributes, required — The Opsgenie account attributes for a create request.
      - `api_key` string, required — The Opsgenie API key for your Opsgenie account.
      - `region` 'us' | 'eu' | 'custom', required — The region for the Opsgenie service.
    - `type` 'opsgenie-account', required — Opsgenie account resource type.

## Response `201`

CREATED

- OpsgenieAccountResponse — Response containing an Opsgenie account.
  - `data` OpsgenieAccountResponseData, required — Opsgenie account data from a response.
    - `attributes` OpsgenieAccountResponseAttributes, required — The attributes from an Opsgenie account response.
      - `region` 'us' | 'eu' | 'custom' — The region for the Opsgenie service.
    - `id` string, required — The ID of the Opsgenie account.
    - `type` 'opsgenie-account', required — Opsgenie account resource type.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
