---
title: "POST /api/v1/custom-oidc"
method: POST
path: "/api/v1/custom-oidc"
tags: ["Custom OIDC Providers"]
---

# POST /api/v1/custom-oidc

`POST /api/v1/custom-oidc`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/custom-oidc`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Configure a new OIDC provider for the current organization

## Request body

- ApiCustomOIDCConfigurationRequest
  - `allowedEmailDomains` string[]
  - `clientId` string
  - `clientSecret` string, nullable
  - `createUnknownUsers` boolean
  - `customDomainId` string
  - `customerOrganizationId` string, nullable
  - `defaultUserRole` string
  - `enabled` boolean
  - `issuer` string
  - `name` string
  - `pkceEnabled` boolean, nullable
  - `scopes` string[]
  - `slug` string
  - `spInitiated` boolean

## Response `200`

OK

- ApiCustomOIDCConfiguration
  - `allowedEmailDomains` string[]
  - `callbackUrl` string
  - `clientId` string
  - `clientSecretSet` boolean
  - `createUnknownUsers` boolean
  - `createdAt` string, date-time
  - `customDomainId` string
  - `defaultUserRole` string
  - `enabled` boolean
  - `id` string
  - `issuer` string
  - `name` string
  - `pkceEnabled` boolean, nullable
  - `scopes` string[]
  - `slug` string
  - `spInitiated` boolean
  - `updatedAt` string, date-time

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
