Create a new application

POST /applications

This feature was introduced in GitLab 10.5

application/json

Body Required

  • 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

    Default value is true.

Responses

  • 200 application/json

    Create a new application

    Hide response attributes Show response attributes object
    • id string
    • application_id string
    • application_name string
    • callback_url string
    • confidential boolean
    • secret string
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"
}