---
title: "Create new OAuth client"
method: POST
path: "/tyk/oauth/clients/create"
tags: ["OAuth"]
---

# Create new OAuth client

`POST /tyk/oauth/clients/create`

Any OAuth keys must be generated with the help of a client ID. These need to be pre-registered with Tyk before they can be used (in a similar vein to how you would register your app with Twitter before attempting to ask user permissions using their API).
        <br/><br/>
        <h3>Creating OAuth clients with Access to Multiple APIs</h3>
        New from Tyk Gateway 2.6.0 is the ability to create OAuth clients with access to more than one API. If you provide the api_id it works the same as in previous releases. If you don't provide the api_id the request uses policy access rights and enumerates APIs from their setting in the newly created OAuth-client.

## Request body

- NewClientRequest
  - `api_id` string
  - `client_id` string
  - `description` string
  - `meta_data` object, nullable
  - `policy_id` string
  - `redirect_uri` string
  - `secret` string

## Response `200`

Client created

- NewClientRequest
  - `api_id` string
  - `client_id` string
  - `description` string
  - `meta_data` object, nullable
  - `policy_id` string
  - `redirect_uri` string
  - `secret` string

## Other responses

- `400` — Api Not found
- `403` — Forbidden
- `500` — Unmarshalling failed

---

[API](https://skmtc.net/tyktechnologies/apis/tyk-gateway-api.md) · [All operations](https://skmtc.net/tyktechnologies/apis/tyk-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tyktechnologies/tyk-gateway-api/versions/4ae998d5545e/schema)
