---
title: "Set up auth configuration"
method: POST
path: "/orgAuthConfig"
tags: ["Organization Auth Config"]
---

# Set up auth configuration

`POST /orgAuthConfig`

Set up or initialize the organization's authentication configuration.

## Request body

- OrgAuthConfigCreateRequest — Request to create initial organization auth configuration
  - `contactEmail` string, email, required — Organization contact email
  - `registeredName` string, required — Organization registered name
  - `adminFullName` string, required — Admin user full name
  - `sendEmail` boolean — Whether to send welcome email

## Response `200`

Auth configuration already exists for this deployment

- OrgAuthConfigSetupResponse — Response from setting up organization auth configuration
  - `message` string, required

## Other responses

- `201` — Auth configuration created successfully
- `400` — Bad request. Possible causes: - User is not an organization admin
- `401` — Unauthorized - invalid or expired access token
- `404` — Not found. Possible causes: - Auth container not found - Account not found (userId or orgId missing)
- `500` — Internal server error

---

[API](https://skmtc.net/pipeshub-ai/apis/pipeshub-api.md) · [All operations](https://skmtc.net/pipeshub-ai/apis/pipeshub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pipeshub-ai/pipeshub-api/versions/abd27cfefc73/schema)
