> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/for-developers/rest-api/core/oauth2/get-the-openid-connect-discovery-document.md).

# Get the OpenID Connect discovery document

See [OpenID Connect Discovery 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html).

```json
{"openapi":"3.1.0","info":{"title":"defguard Core API","version":"2.0.3"},"tags":[{"name":"OAuth2","description":"defguard acting as an OAuth2 / OpenID Connect provider for other applications."}],"paths":{"/.well-known/openid-configuration":{"get":{"tags":["OAuth2"],"summary":"Get the OpenID Connect discovery document","description":"See [OpenID Connect Discovery 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html).","operationId":"openid_configuration","responses":{"200":{"description":"Discovery document of this OpenID provider.","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"Unable to build discovery document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}}},"components":{"schemas":{"ApiErrorResponse":{"type":"object","description":"Body returned with error responses.","required":["msg"],"properties":{"code":{"type":["string","null"],"description":"Machine-readable error code, returned for selected errors."},"msg":{"type":"string","description":"Human-readable error message."}}}}}}
```
