OpsGenie Alerts API

Operations for creating, retrieving, updating, and managing alerts within the OpsGenie platform.

Operations 22

POST /v2/alerts Create alert #
GET /v2/alerts List alerts #
GET /v2/alerts/{identifier} Get alert #
DELETE /v2/alerts/{identifier} Delete alert #
POST /v2/alerts/{identifier}/close Close alert #
POST /v2/alerts/{identifier}/acknowledge Acknowledge alert #
POST /v2/alerts/{identifier}/unacknowledge Unacknowledge alert #
POST /v2/alerts/{identifier}/snooze Snooze alert #
POST /v2/alerts/{identifier}/escalate Escalate alert #
POST /v2/alerts/{identifier}/assign Assign alert #
POST /v2/alerts/{identifier}/tags Add tags to alert #
DELETE /v2/alerts/{identifier}/tags Remove tags from alert #
POST /v2/alerts/{identifier}/notes Add note to alert #
GET /v2/alerts/{identifier}/notes List alert notes #
POST /v2/alerts/{identifier}/details Add details to alert #
POST /v2/alerts/{identifier}/responders Add responder to alert #
POST /v2/alerts/{identifier}/attachments Add attachment to alert #
GET /v2/alerts/{identifier}/attachments List alert attachments #
GET /v2/alerts/{identifier}/logs List alert logs #
GET /v2/alerts/{identifier}/recipients List alert recipients #
GET /v2/alerts/count Count alerts #
GET /v2/alerts/requests/{requestId} Get request status #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/opsgenie-alerts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

opsgenie-alerts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpsGenie Account Alerts API
  description: The OpsGenie Account API provides endpoints for retrieving account-level information and configuration settings. Developers can use this API to access details about their OpsGenie account, including plan information and account metadata. It serves as a foundational API for administrative operations and account management within the OpsGenie platform.
  version: 2.0.0
  contact:
    name: Atlassian Support
    url: https://support.atlassian.com/opsgenie/
  termsOfService: https://www.atlassian.com/legal/cloud-terms-of-service
servers:
- url: https://api.opsgenie.com
  description: Production Server
- url: https://api.eu.opsgenie.com
  description: EU Production Server
security:
- genieKey: []
tags:
- name: Alerts
  description: Operations for creating, retrieving, updating, and managing alerts within the OpsGenie platform.
paths:
  /v2/alerts:
    post:
      operationId: createAlert
      summary: Create alert
      description: Creates an alert in OpsGenie. The request is processed asynchronously and returns a request ID that can be used to track the status of the alert creation.
      tags:
      - Alerts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAlertRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: listAlerts
      summary: List alerts
      description: Returns a list of alerts matching the specified search criteria. Alerts are returned in reverse chronological order by default.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertQuery'
      - $ref: '#/components/parameters/SearchIdentifier'
      - $ref: '#/components/parameters/SearchIdentifierType'
      - $ref: '#/components/parameters/Offset'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Sort'
      - $ref: '#/components/parameters/Order'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAlertsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}:
    get:
      operationId: getAlert
      summary: Get alert
      description: Retrieves the details of a specific alert identified by its ID, tiny ID, or alias.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAlertResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: deleteAlert
      summary: Delete alert
      description: Deletes the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/close:
    post:
      operationId: closeAlert
      summary: Close alert
      description: Closes the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloseAlertRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/acknowledge:
    post:
      operationId: acknowledgeAlert
      summary: Acknowledge alert
      description: Acknowledges the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AlertActionRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/unacknowledge:
    post:
      operationId: unacknowledgeAlert
      summary: Unacknowledge alert
      description: Removes the acknowledgment from the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AlertActionRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/snooze:
    post:
      operationId: snoozeAlert
      summary: Snooze alert
      description: Snoozes the specified alert until the given end time. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SnoozeAlertRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/escalate:
    post:
      operationId: escalateAlert
      summary: Escalate alert
      description: Escalates the specified alert to the given escalation. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EscalateAlertRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/assign:
    post:
      operationId: assignAlert
      summary: Assign alert
      description: Assigns the specified alert to a user. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssignAlertRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/tags:
    post:
      operationId: addTags
      summary: Add tags to alert
      description: Adds tags to the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTagsRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: removeTags
      summary: Remove tags from alert
      description: Removes specified tags from the alert.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      - name: tags
        in: query
        required: true
        description: Comma-separated list of tags to remove from the alert.
        schema:
          type: string
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/notes:
    post:
      operationId: addNote
      summary: Add note to alert
      description: Adds a note to the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddNoteRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: listAlertNotes
      summary: List alert notes
      description: Lists the notes attached to the specified alert.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      - $ref: '#/components/parameters/Offset'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Order'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAlertNotesResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/details:
    post:
      operationId: addDetails
      summary: Add details to alert
      description: Adds custom key-value details to the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddDetailsRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/responders:
    post:
      operationId: addResponder
      summary: Add responder to alert
      description: Adds a responder (team, user, escalation, or schedule) to the specified alert. The request is processed asynchronously.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddResponderRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/attachments:
    post:
      operationId: addAttachment
      summary: Add attachment to alert
      description: Adds a file attachment to the specified alert.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The file to attach to the alert.
              required:
              - file
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: listAttachments
      summary: List alert attachments
      description: Lists the file attachments on the specified alert.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAttachmentsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/logs:
    get:
      operationId: listAlertLogs
      summary: List alert logs
      description: Lists the activity logs for the specified alert.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      - $ref: '#/components/parameters/Offset'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Order'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAlertLogsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/{identifier}/recipients:
    get:
      operationId: listAlertRecipients
      summary: List alert recipients
      description: Lists the recipients of the specified alert.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertIdentifier'
      - $ref: '#/components/parameters/IdentifierType'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAlertRecipientsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/count:
    get:
      operationId: countAlerts
      summary: Count alerts
      description: Returns the count of alerts matching the specified search criteria.
      tags:
      - Alerts
      parameters:
      - $ref: '#/components/parameters/AlertQuery'
      - $ref: '#/components/parameters/SearchIdentifier'
      - $ref: '#/components/parameters/SearchIdentifierType'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountAlertsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/alerts/requests/{requestId}:
    get:
      operationId: getRequestStatus
      summary: Get request status
      description: Retrieves the status and alert details of an asynchronous request using the request ID returned from alert action endpoints.
      tags:
      - Alerts
      parameters:
      - name: requestId
        in: path
        required: true
        description: The ID of the asynchronous request to check status for.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestStatusResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    AlertIdentifier:
      name: identifier
      in: path
      required: true
      description: Identifier of the alert, which can be the alert ID, tiny ID, or alias.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      description: Maximum number of items to return.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    IdentifierType:
      name: identifierType
      in: query
      description: Type of the identifier. Possible values are id, tiny, or alias. Default is id.
      schema:
        type: string
        enum:
        - id
        - tiny
        - alias
        default: id
    Sort:
      name: sort
      in: query
      description: Field to sort results by. Possible values include createdAt, updatedAt, tinyId, alias, message, status, acknowledged, isSeen, snoozed, count, lastOccurredAt, and owner.
      schema:
        type: string
        enum:
        - createdAt
        - updatedAt
        - tinyId
        - alias
        - message
        - status
        - acknowledged
        - isSeen
        - snoozed
        - count
        - lastOccurredAt
        - owner
    SearchIdentifier:
      name: searchIdentifier
      in: query
      description: Identifier of a saved search to use for filtering alerts.
      schema:
        type: string
    Order:
      name: order
      in: query
      description: Sort order for the results. Possible values are desc and asc.
      schema:
        type: string
        enum:
        - desc
        - asc
        default: desc
    SearchIdentifierType:
      name: searchIdentifierType
      in: query
      description: Type of the saved search identifier. Possible values are id or name.
      schema:
        type: string
        enum:
        - id
        - name
    AlertQuery:
      name: query
      in: query
      description: Search query to filter alerts. Uses OpsGenie query language syntax.
      schema:
        type: string
    Offset:
      name: offset
      in: query
      description: Starting index for pagination.
      schema:
        type: integer
        minimum: 0
        default: 0
  schemas:
    CreateAlertRequest:
      type: object
      required:
      - message
      properties:
        message:
          type: string
          maxLength: 130
          description: The message of the alert, limited to 130 characters.
        alias:
          type: string
          maxLength: 512
          description: Client-defined identifier for the alert, used for deduplication.
        description:
          type: string
          maxLength: 15000
          description: A detailed description of the alert.
        responders:
          type: array
          description: Teams, users, escalations, and schedules that the alert is routed to.
          items:
            $ref: '#/components/schemas/Responder'
        visibleTo:
          type: array
          description: Teams and users that the alert will become visible to without sending notifications.
          items:
            $ref: '#/components/schemas/Responder'
        actions:
          type: array
          description: Custom actions available for the alert.
          items:
            type: string
          maxItems: 10
        tags:
          type: array
          description: Tags to attach to the alert.
          items:
            type: string
          maxItems: 20
        details:
          type: object
          description: Custom key-value pairs to attach to the alert.
          additionalProperties:
            type: string
        entity:
          type: string
          maxLength: 512
          description: Entity field of the alert, used to specify the domain of the alert.
        source:
          type: string
          maxLength: 100
          description: Source field of the alert, used to specify the source of the alert.
        priority:
          type: string
          enum:
          - P1
          - P2
          - P3
          - P4
          - P5
          description: Priority level of the alert. P1 is the highest, P5 is the lowest.
        user:
          type: string
          maxLength: 100
          description: Display name of the request owner.
        note:
          type: string
          maxLength: 25000
          description: Additional note to add to the alert when created.
    AsyncRequestResponse:
      type: object
      properties:
        result:
          type: string
          description: Result message.
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the asynchronous request that can be used to track the status.
    EscalateAlertRequest:
      type: object
      required:
      - escalation
      properties:
        escalation:
          $ref: '#/components/schemas/Responder'
        user:
          type: string
          description: Display name of the request owner.
        source:
          type: string
          description: Source of the escalation action.
        note:
          type: string
          description: Additional note to add with the escalation.
    SnoozeAlertRequest:
      type: object
      required:
      - endTime
      properties:
        endTime:
          type: string
          format: date-time
          description: The date and time when the snooze will end, in ISO 8601 format.
        user:
          type: string
          description: Display name of the request owner.
        source:
          type: string
          description: Source of the snooze action.
        note:
          type: string
          description: Additional note to add with the snooze.
    SuccessResponse:
      type: object
      properties:
        result:
          type: string
          description: Result message.
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    ListAlertsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Alert'
          description: List of alerts.
        paging:
          $ref: '#/components/schemas/Paging'
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    CloseAlertRequest:
      type: object
      properties:
        user:
          type: string
          description: Display name of the request owner.
        source:
          type: string
          description: Source of the close action.
        note:
          type: string
          description: Additional note to add when closing the alert.
    RequestStatusResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            success:
              type: boolean
              description: Whether the request was successful.
            action:
              type: string
              description: The action that was performed.
            processedAt:
              type: string
              format: date-time
              description: The date and time when the request was processed.
            integrationId:
              type: string
              description: ID of the integration.
            isSuccess:
              type: boolean
              description: Whether the operation succeeded.
            status:
              type: string
              description: Status of the request.
            alertId:
              type: string
              description: ID of the alert created or affected.
            alias:
              type: string
              description: Alias of the alert.
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    CountAlertsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            count:
              type: integer
              description: Count of alerts matching the query.
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    AlertActionRequest:
      type: object
      properties:
        user:
          type: string
          description: Display name of the request owner.
        source:
          type: string
          description: Source of the action.
        note:
          type: string
          description: Additional note to add with the action.
    GetAlertResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Alert'
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    ListAttachmentsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: Name of the attachment file.
              id:
                type: string
                description: Unique identifier of the attachment.
        took:
          type: number
          description: Time taken to process the request in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    Alert:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the alert.
        tinyId:
          type: string
          description: Short, human-readable identifier of the alert.
        alias:
          type: string
          description: Client-defined identifier used for deduplication.
        message:
          type: string
          description: The message of the alert.
        status:
          type: string
          enum:
          - open
          - closed
          description: Current status of the alert.
        acknowledged:
          type: boolean
          description: Whether the alert has been acknowledged.
        isSeen:
          type: boolean
          description: Whether the alert has been seen.
        tags:
          type: array
          items:
            type: string
          description: Tags attached to the alert.
        snoozed:
          type: boolean
          description: Whether the alert is currently snoozed.
        snoozedUntil:
          type: string
          format: date-time
          description: The date and time when the snooze will end.
        lastOccurredAt:
          type: string
          format: date-time
          description: The last time the alert occurred.
        createdAt:
          type: string
          format: date-time
          description: The date and time when the alert was created.
        updatedAt:
          type: 

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/opsgenie/refs/heads/main/openapi/opsgenie-alerts-api-openapi.yml