---
title: "Trigger a Bits AI investigation"
method: POST
path: "/api/v2/bits-ai/investigations"
tags: ["Bits AI"]
---

# Trigger a Bits AI investigation

`POST /api/v2/bits-ai/investigations`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/bits-ai/investigations`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `bits_investigations_write`

Trigger a new Bits AI investigation based on a monitor alert.

## Request body

- TriggerInvestigationRequest: Request to trigger a new investigation.
  - `data` TriggerInvestigationRequestData, required: Data for the trigger investigation request.
    - `attributes` TriggerInvestigationRequestDataAttributes, required: Attributes for the trigger investigation request.
      - `trigger` TriggerAttributes, required: The trigger definition for starting an investigation.
        - `monitor_alert_trigger` MonitorAlertTriggerAttributes, required: Attributes for a monitor alert trigger.
          - `event_id` string, required: The event ID associated with the monitor alert.
          - `event_ts` integer, required: The timestamp of the event in Unix milliseconds.
          - `monitor_id` integer, required: The monitor ID that triggered the alert.
        - `type` 'monitor_alert_trigger', required: The type of trigger for the investigation.
    - `type` 'trigger_investigation_request', required: The resource type for trigger investigation requests.

## Response `200`

OK

- TriggerInvestigationResponse: Response after triggering an investigation.
  - `data` TriggerInvestigationResponseData, required: Data for the trigger investigation response.
    - `attributes` TriggerInvestigationResponseDataAttributes, required: Attributes for the trigger investigation response.
      - `investigation_id` string, required: The ID of the investigation that was created.
    - `id` string, required: Unique identifier for the trigger response.
    - `type` 'trigger_investigation_response', required: The resource type for trigger investigation responses.

## Other responses

- `400`: Bad Request
- `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)
