---
title: "Create a LaunchDarkly OAuth 2.0 client"
method: POST
path: "/api/v2/oauth/clients"
tags: ["OAuth2 Clients"]
---

# Create a LaunchDarkly OAuth 2.0 client

`POST /api/v2/oauth/clients`

Create (register) a LaunchDarkly OAuth2 client. OAuth2 clients allow you to build custom integrations using LaunchDarkly as your identity provider.

## Request body

- OauthClientPost
  - `name` string — The name of your new LaunchDarkly OAuth 2.0 client.
  - `redirectUri` string — The redirect URI for your new OAuth 2.0 application. This should be an absolute URL conforming with the standard HTTPS protocol.
  - `description` string — Description of your OAuth 2.0 client.

## Response `201`

OAuth 2.0 client response

- Client
  - `_links` object, required — The location and content type of related resources
  - `name` string, required — Client name
  - `description` string — Client description
  - `_accountId` string, required — The account ID the client is registered under
  - `_clientId` string, required — The client's unique ID
  - `_clientSecret` string — The client secret. This will only be shown upon creation.
  - `redirectUri` string, required — The client's redirect URI
  - `_creationDate` integer, required

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden

---

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