---
title: "Check an OIDC issuer or discovery URL"
method: POST
path: "/v1/sso/oidc/check"
tags: ["SSO"]
---

# Check an OIDC issuer or discovery URL

`POST /v1/sso/oidc/check`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/sso/oidc/check`
- Auth: HTTP bearer

Reads the identity provider's OIDC discovery document from an issuer or a discovery URL and reports the issuer and endpoints found, or why none were. Nothing is saved. Requires permission to manage SSO settings.

## Response `200`

What the provider's discovery document says, or why it could not be read

- union
  - object
    - `ok` true, required
    - `issuer` string, required: The issuer the discovery document names; this is what a save stores.
    - `discoveryUrl` string, required
    - `fromDiscoveryUrl` boolean, required: True when the address given was the discovery URL rather than the issuer.
    - `authorizationEndpoint` string, required
    - `tokenEndpoint` string, required
    - `jwksEndpoint` string, required
    - `userInfoEndpoint` string, nullable, required
  - object
    - `ok` false, required
    - `code` 'invalid_url' | 'not_found' | 'http_error' | 'unreachable' | 'blocked' | 'invalid_document' | 'issuer_mismatch', required
    - `message` string, required
    - `discoveryUrl` string, nullable, required: The exact address that was tried.
    - `status` number, nullable, required
    - `reportedIssuer` string, nullable, required: issuer_mismatch: the issuer the provider reports.

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `402`: SSO management requires a Team or Enterprise plan.
- `403`: The caller needs the Manage single sign-on permission and a recent sign-in.
- `404`: The OIDC setup check is off for this organization.

## Changes

- **2026-11-11** `db574b1fc0cf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/sso/oidc/check/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
