Create an application
POST
/api/v4/user/applications
Creates a new OAuth application for the authenticated user. This feature was introduced in GitLab 19.0
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
Name of the application.
string
Example
MyApplicationredirect_uri
required
Redirect URI of the application.
string
Example
https://redirect.uriscopes
required
Scopes available to the application. Separate multiple scopes with a space.
string
confidential
If true, the application can securely store client credentials, such as the client secret. Non-confidential applications, such as native mobile apps and Single Page Apps might expose client credentials. If unset, defaults to true.
boolean
Responses
Section titled “Responses”Created
Media typeapplication/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