---
title: "Get OAuth2 well-known sites"
method: GET
path: "/api/v2/oauth2/.well-known/sites"
tags: ["OAuth2 Client Public"]
---

# Get OAuth2 well-known sites

`GET /api/v2/oauth2/.well-known/sites`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/oauth2/.well-known/sites`
- Auth: none required

Retrieve the list of public OAuth2 sites available for the current environment. This endpoint is used for OAuth2 discovery and returns sites where users can authenticate.

## Response `200`

OK

- OAuth2WellKnownSitesResponse: Response payload containing the list of public OAuth2 sites for discovery.
  - `data` OAuth2WellKnownSitesData, required: Data object containing OAuth2 well-known sites information.
    - `attributes` OAuth2WellKnownSitesAttributes, required: Attributes containing the list of public OAuth2 sites.
      - `sites` string[], required: Array of public OAuth2 site URLs for the environment.
    - `id` string, required: Environment identifier.
    - `type` 'env', required: JSON:API resource type for OAuth2 well-known sites environment.

## Other responses

- `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)
