Use this API to manage instance-wide OAuth applications that:
You cannot use this API to manage group applications or individual user applications.
Get applications
GET /api/v4/applications
List all registered applications
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
401 | Unauthorized | — |
403 | Forbidden | — |
List all applications
GET /api/v4/user/applications
Lists all applications owned by the authenticated user.
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
401 | Unauthorized | — |
403 | Forbidden | — |
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
Request body (application/json)
| Property | Type | Description |
|---|---|---|
confidential | Boolean | If true,trueDefault: true |
nameRequired | String | Name of the application Example: My |
redirect_Required | String | Redirect URI of the application Example: https: |
scopesRequired | String | Scopes available to the application. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
Retrieve an application
GET /api/v4/user/applications/{id}
Retrieves details of a specific application owned by the authenticated user.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | ID of the application.application_ |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update an application
PUT /api/v4/user/applications/{id}
Updates an existing application owned by the authenticated user.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | ID of the application.application_ |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
name | String | Name of the application |
scopes | String | Scopes available to the application. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete an application
DELETE /api/v4/user/applications/{id}
Deletes a specified application owned by the authenticated user.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | ID of the application.application_ |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesApplication
| Property | Type | Description |
|---|---|---|
application_ | String | Example:5832fc6e14300a0d9622 |
application_ | String | Example:My |
callback_ | String | Example:https: |
confidential | Boolean | Example:true |
id | Integer (int64) | Example:1 |
scopes | Array | Example:["api", |
APIEntitiesApplicationWithSecret
| Property | Type | Description |
|---|---|---|
application_ | String | Example:5832fc6e14300a0d9622 |
application_ | String | Example:My |
callback_ | String | Example:https: |
confidential | Boolean | Example:true |
id | Integer (int64) | Example:1 |
scopes | Array | Example:["api", |
secret | String | Example:ee1dd64b6adc89cf7e2c |