Body
Required
-
Name of the application.
-
Redirect URI of the application.
-
Scopes of the application. You can specify multiple scopes by separating\ each scope using a space
-
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
Default value is
true
.
POST
/applications
curl \
--request POST 'https://www.gitlab.com/api/v4/applications' \
--header "Private-Token: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"string","redirect_uri":"string","scopes":"string","confidential":true}'
Request examples
{
"name": "string",
"redirect_uri": "string",
"scopes": "string",
"confidential": true
}
Response examples (200)
{
"id": "string",
"application_id": "5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737",
"application_name": "MyApplication",
"callback_url": "https://redirect.uri",
"confidential": true,
"secret": "ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34"
}