---
title: "Create an OAuth client"
method: POST
path: "/v2/oauth-clients"
tags: ["Deprecated: Platform OAuth Clients"]
---

# Create an OAuth client

`POST /v2/oauth-clients`

<Warning>These endpoints are deprecated and will be removed in the future.</Warning>

## Headers

- `Authorization` string, required

## Request body

- CreateOAuthClientInput
  - `logo` string
  - `name` string, required
  - `redirectUris` string[], required
  - `permissions` string[], required — Array of permission keys like ["BOOKING_READ", "BOOKING_WRITE"]. Use ["*"] to grant all permissions.
  - `bookingRedirectUri` string
  - `bookingCancelRedirectUri` string
  - `bookingRescheduleRedirectUri` string
  - `areEmailsEnabled` boolean
  - `areDefaultEventTypesEnabled` boolean — If true, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Set this as false if you want to create a managed user and then manually create event types for the user.
  - `areCalendarEventsEnabled` boolean — If true and if managed user has calendar connected, calendar events will be created. Disable it if you manually create calendar events. Default to true.

## Response `201`

Create an OAuth client

- CreateOAuthClientResponseDto
  - `status` 'success' | 'error', required
  - `data` CreateOAuthClientOutput, required
    - `clientId` string, required
    - `clientSecret` string, required

---

[API](https://skmtc.net/calcom/apis/cal-diy-api-v2.md) · [All operations](https://skmtc.net/calcom/apis/cal-diy-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/calcom/cal-diy-api-v2/revisions/16de9d3eb7b3/schema)
