---
title: "Create OAuth client"
method: POST
path: "/api/v1/organization/oauth/clients/create"
tags: ["OAuth"]
---

# Create OAuth client

`POST /api/v1/organization/oauth/clients/create`

Create a new OAuth2 client application.

Required permissions, when user-scoped authentication is used: `OAUTH_TOKEN_CREATE`.
Also, when the user-scoped authentication is used, user should have developer mode enabled.

## Request body

- object
  - `orgId` integer — Organization ID, in which OAuth client will be created. If not provided, the organization, that is associated with the authentication token, will be used.
  - `name` string, required — Client application name
  - `redirectUrls` string[] — Redirect URIs

## Response `201`

OAuth client created successfully

- OAuthClient
  - `orgId` integer, required — Organization ID, that the client belongs to
  - `name` string, required — Client application name
  - `clientId` string, required — OAuth client ID
  - `secret` string, required — OAuth client secret
  - `redirectUrls` string[] — Allowed redirect URIs

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Organization not found or access denied
- `429` — Too many requests
- `500` — Internal server error

---

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