---
title: "Get all Opsgenie accounts"
method: GET
path: "/api/v2/integration/opsgenie/accounts"
tags: ["Opsgenie Integration"]
---

# Get all Opsgenie accounts

`GET /api/v2/integration/opsgenie/accounts`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration/opsgenie/accounts`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Get a list of all Opsgenie accounts from the Datadog Opsgenie integration.

## Response `200`

OK

- OpsgenieAccountsResponse: Response with a list of Opsgenie accounts.
  - `data` OpsgenieAccountResponseData[], required: An array of Opsgenie accounts.
    - `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

- `403`: Forbidden
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
