---
title: "Fetch Custom O Auth Discovery"
method: POST
path: "/api/custom-oauth-provider/discovery"
tags: ["CustomOAuth"]
---

# Fetch Custom O Auth Discovery

`POST /api/custom-oauth-provider/discovery`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/custom-oauth-provider/discovery`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Request body

- FetchCustomOAuthDiscoveryRequest: FetchCustomOAuthDiscoveryRequest schema
  - `issuer_url` string, required
  - `well_known_url` string, required

## Response `200`

OK

- ResponseDtoFetchDiscoveryData: Response_dto.FetchDiscoveryData schema
  - `data` FetchDiscoveryData, required
    - `discovery` object, nullable, required
    - `well_known_url` string, required
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
