---
title: "Create relying party"
method: POST
path: "/databases/{databaseId}/auth/oidc/relyingparties"
tags: ["authentication"]
---

# Create relying party

`POST /databases/{databaseId}/auth/oidc/relyingparties`

## Request

- Base URL: `https://global.thenile.dev`
- URL: `https://global.thenile.dev/databases/{databaseId}/auth/oidc/relyingparties`
- Auth: HTTP bearer

Creates a relying party associated with a known OIDC provider.

## Path parameters

- `databaseId` string, required

## Request body

- OIDCRelyingParty
  - `id` string
  - `tenantId` string
  - `provider` string, required
  - `clientId` string, required
  - `clientSecret` string, required
  - `emailDomains` string[]
  - `enabled` boolean

## Response `201`

Relying party created successfully

---

[API](https://skmtc.dev/thenile/apis/nile-rest-api.md) · [All operations](https://skmtc.dev/thenile/apis/nile-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thenile/apis/nile-rest-api/revisions/afe849f2aeec?raw)
