---
title: "Create a new SLO report"
method: POST
path: "/api/v2/slo/report"
tags: ["Service Level Objectives"]
---

# Create a new SLO report

`POST /api/v2/slo/report`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/slo/report`
- 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: `slos_read`

Create a job to generate an SLO report. The report job is processed asynchronously and eventually results in a CSV report being available for download.

Check the status of the job and download the CSV report using the returned `report_id`.

## Request body

- SloReportCreateRequest: The SLO report request body.
  - `data` SloReportCreateRequestData, required: The data portion of the SLO report request.
    - `attributes` SloReportCreateRequestAttributes, required: The attributes portion of the SLO report request.
      - `from_ts` integer, required: The `from` timestamp for the report in epoch seconds.
      - `interval` 'daily' | 'weekly' | 'monthly': The frequency at which report data is to be generated.
      - `query` string, required: The query string used to filter SLO results. Some examples of queries include `service:<service-name>` and `slo-name`.
      - `timezone` string: The timezone used to determine the start and end of each interval. For example, weekly intervals start at 12am on Sunday in the specified timezone.
      - `to_ts` integer, required: The `to` timestamp for the report in epoch seconds.

## Response `200`

OK

- SLOReportPostResponse: The SLO report response.
  - `data` SLOReportPostResponseData: The data portion of the SLO report response.
    - `id` string: The ID of the report job.
    - `type` string: The type of ID.

## Other responses

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