---
title: "POST /api/v1/integrations/add-opsgenie/"
method: POST
path: "/api/v1/integrations/add-opsgenie/"
tags: ["integrations"]
---

# POST /api/v1/integrations/add-opsgenie/

`POST /api/v1/integrations/add-opsgenie/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/integrations/add-opsgenie/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/integrations/add-opsgenie/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new OpsGenie integration

## Request body

- IntegrationOpsgenie
  - `pk` integer
  - `url` string
  - `name` string, required: Your preferred name for this integration.
  - `module` string: The provider of the integration.
  - `contact_groups` string[]: Array of contact names or IDs this integration is assigned to
  - `is_errored` boolean
  - `last_error` string
  - `api_endpoint` string, uri: Listed on the Integrations / Configured Integrations page in OpsGenie.
  - `api_key` string: Listed on the Integrations / Configured Integrations page in OpsGenie.
  - `teams` string: A comma separated list of team names which will be responsible for the alert.
  - `tags` string: A comma separated list of labels attached to the alert. You may overwrite the quiet hours setting for urgent alerts by adding the OverwriteQuietHours tag. Leave blank to automatically pull the tags from the check instead.
  - `autoresolve` boolean: Automatically resolve incident once the check is back up.

## Response `200`

- IntegrationOpsgenie
  - `pk` integer
  - `url` string
  - `name` string, required: Your preferred name for this integration.
  - `module` string: The provider of the integration.
  - `contact_groups` string[]: Array of contact names or IDs this integration is assigned to
  - `is_errored` boolean
  - `last_error` string
  - `api_endpoint` string, uri: Listed on the Integrations / Configured Integrations page in OpsGenie.
  - `api_key` string: Listed on the Integrations / Configured Integrations page in OpsGenie.
  - `teams` string: A comma separated list of team names which will be responsible for the alert.
  - `tags` string: A comma separated list of labels attached to the alert. You may overwrite the quiet hours setting for urgent alerts by adding the OverwriteQuietHours tag. Leave blank to automatically pull the tags from the check instead.
  - `autoresolve` boolean: Automatically resolve incident once the check is back up.

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
