---
title: Get OpenID Connect provider metadata
description: Retrieve OpenID Connect provider metadata for the OAuth2 v2 token endpoint.
breadcrumbs: ドキュメント > API > Get OpenID Connect provider metadata
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# Get OpenID Connect provider metadata

## v2 (latest)

{% alert level="warning" %}
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help.md).
{% /alert %}

| Datadog site      | API endpoint                                                                     |
| ----------------- | -------------------------------------------------------------------------------- |
| app.datadoghq.com | GET https://app.datadoghq.com/api/v2/oauth2/.well-known/openid-configuration     |
| us3.datadoghq.com | GET https://app.us3.datadoghq.com/api/v2/oauth2/.well-known/openid-configuration |
| us5.datadoghq.com | GET https://app.us5.datadoghq.com/api/v2/oauth2/.well-known/openid-configuration |
| app.datadoghq.eu  | GET https://app.datadoghq.eu/api/v2/oauth2/.well-known/openid-configuration      |
| ap1.datadoghq.com | GET https://app.ap1.datadoghq.com/api/v2/oauth2/.well-known/openid-configuration |
| ap2.datadoghq.com | GET https://app.ap2.datadoghq.com/api/v2/oauth2/.well-known/openid-configuration |
| uk1.datadoghq.com | GET https://app.uk1.datadoghq.com/api/v2/oauth2/.well-known/openid-configuration |
| app.ddog-gov.com  | GET https://app.ddog-gov.com/api/v2/oauth2/.well-known/openid-configuration      |
| us2.ddog-gov.com  | GET https://app.us2.ddog-gov.com/api/v2/oauth2/.well-known/openid-configuration  |

### Overview

Retrieve OpenID Connect provider metadata for the OAuth2 v2 token endpoint.

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
OpenID Connect provider metadata.

| Field                                              | Type     | Description                                                     |
| -------------------------------------------------- | -------- | --------------------------------------------------------------- |
| authorization_endpoint [*required*]                | string   | URL of the OAuth2 authorization endpoint.                       |
| id_token_signing_alg_values_supported [*required*] | [string] | Signing algorithms supported for ID tokens.                     |
| issuer [*required*]                                | string   | URL identifying the OpenID Connect issuer.                      |
| jwks_uri [*required*]                              | string   | URL of the JSON Web Key Set used to verify ID token signatures. |
| response_types_supported [*required*]              | [string] | OAuth2 response types supported by the provider.                |
| subject_types_supported [*required*]               | [string] | Subject identifier types supported by the provider.             |
| token_endpoint [*required*]                        | string   | URL of the OAuth2 token endpoint.                               |
{% /tab %}

{% tab label="Example" %}
```json
{
  "authorization_endpoint": "https://app.datadoghq.com/oauth2/v1/authorize",
  "id_token_signing_alg_values_supported": [
    "RS256"
  ],
  "issuer": "https://app.datadoghq.com/api/v2/oauth2",
  "jwks_uri": "https://app.datadoghq.com/oauth2/v1/keys",
  "response_types_supported": [
    "code"
  ],
  "subject_types_supported": [
    "public"
  ],
  "token_endpoint": "https://app.datadoghq.com/api/v2/oauth2/token"
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com

curl -X GET "https://app.${DD_SITE}/api/v2/oauth2/.well-known/openid-configuration" \
-H "Accept: application/json"
```
{% /tab %}
{% /tabs %}
