# OpenID Connect discovery document (OIDC Discovery 1.0 §3)

> Source: https://elaichi.ai/docs/api-reference/oauth-discovery/well-known/getopenidconfiguration/

`GET /.well-known/openid-configuration`

Resource: **.well Known** · API: **OAuth discovery**

## Response body

- **`issuer`** _(string)_
- **`authorization_endpoint`** _(string)_
- **`token_endpoint`** _(string)_
- **`userinfo_endpoint`** _(string)_
- **`registration_endpoint`** _(string)_
- **`revocation_endpoint`** _(string)_
- **`response_types_supported`** _(array<string>)_
- **`grant_types_supported`** _(array<string>)_
- **`subject_types_supported`** _(array<string>)_
  Always `["public"]` — the subject is the same `sub` for every client, never pairwise.
- **`code_challenge_methods_supported`** _(array<string>)_
- **`token_endpoint_auth_methods_supported`** _(array<string>)_
- **`scopes_supported`** _(array<string>)_
- **`claims_supported`** _(array<string>)_
  Exactly the claims `/oauth/userinfo` can return, and no more.
- **`service_documentation`** _(string)_

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/.well-known/openid-configuration' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/.well-known/openid-configuration', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/.well-known/openid-configuration"
headers = {
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())
```
