---
title: "Create oAuth Client"
method: POST
path: "/api/v1/add/oauth2-client"
tags: ["oAuth Clients"]
---

# Create oAuth Client

`POST /api/v1/add/oauth2-client`

Using this endpoint you can create a oAuth clients.

## Request body

- object
  - `redirect_uri` string — the uri where you should be redirected after oAuth

## Response `200`

OK

- object
  - `log` unknown[] — contains request object
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) · [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailcow/mailcow-api/revisions/ae01d1d7886a/schema)
