applications

Create a new application

This feature was introduced in GitLab 10.5

post/api/v4/applications

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Request body

namestring required

Name of the application.

redirect_uristring required

Redirect URI of the application.

scopesstring required

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

confidentialboolean

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

Example request

{
  "name": "MyApplication",
  "redirect_uri": "https://redirect.uri"
}

Response

Create a new application

idinteger required
application_idstring required
application_namestring required
callback_urlstring required
confidentialboolean required
secretstring required

Example response

{
  "id": 1,
  "application_id": "5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737",
  "application_name": "MyApplication",
  "callback_url": "https://redirect.uri",
  "confidential": true,
  "scopes": [
    "api",
    "read_user"
  ],
  "secret": "ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.