---
title: "Create a new application"
method: POST
path: "/api/v4/applications"
tags: ["applications"]
---

# Create a new application

`POST /api/v4/applications`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/applications`
- Auth: none declared

This feature was introduced in GitLab 10.5

## Request body

- PostApiV4Applications: Create a new application
  - `name` string, required: Name of the application.
  - `redirect_uri` string, required: Redirect URI of the application.
  - `scopes` string, required: Scopes of the application. You can specify multiple scopes by separating\ each scope using a space
  - `confidential` boolean: The application is used where the client secret can be kept confidential. Native mobile apps \ and Single Page Apps are considered non-confidential. Defaults to true if not supplied

## Response `200`

Create a new application

- APIEntitiesApplicationWithSecret: API_Entities_ApplicationWithSecret model
  - `id` integer, required
  - `application_id` string, required
  - `application_name` string, required
  - `callback_url` string, required
  - `confidential` boolean, required
  - `scopes` unknown[], required
    - unknown
  - `secret` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
