Skip to content

Create a new application

POST
/api/v4/applications

This feature was introduced in GitLab 10.5

Media type application/json
object
name
required

Name of the application.

string
nullable
Example
MyApplication
redirect_uri
required

Redirect URI of the application.

string
nullable
Example
https://redirect.uri
scopes
required

Scopes of the application. You can specify multiple scopes by separating
each scope using a space

string
nullable
confidential

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

boolean
default: true nullable

OK

Media type application/json
object
id
integer format: int64
application_id
string
application_name
string
callback_url
string
confidential
boolean
scopes
array
secret
string
Example
{
"id": 1,
"application_id": "5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737",
"application_name": "MyApplication",
"callback_url": "https://redirect.uri",
"confidential": true,
"scopes": [
"api",
"read_user"
],
"secret": "ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34"
}

Bad request

Unauthorized

Forbidden