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

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.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
