GitLab Applications API

The Applications API from GitLab — 2 operation(s) for applications.

GitHub OpenAPI
Business capability
Developer Identity & Credential Management BC-4270.40

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 9 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

POST /api/v4/user/applications Create an application #
GET /api/v4/user/applications List all applications observed #
GET /api/v4/user/applications/{id} Retrieve an application #
DELETE /api/v4/user/applications/{id} Delete an application #
PUT /api/v4/user/applications/{id} Update an application #
POST /api/v4/applications Register a new OAuth application · Create a new application #
Ask an LLM
“How do I register an instance-wide OAuth app so I get a client ID and secret?”
“Can I create a non-confidential application for a mobile or single-page client?”
Tell an agent
Register an application named {name} with redirect URI {redirect_uri} and scopes {scopes}.
Create OAuth app {name} for {redirect_uri} requesting {scopes}, confidential set to {confidential}.
GET /api/v4/applications List registered OAuth applications · Get applications #
Ask an LLM
“Which OAuth applications are registered on my GitLab instance?”
“Where can I see the redirect URIs of every instance application?”
Tell an agent
List all registered OAuth applications.
Show every instance-wide application and its callback URL.
DELETE /api/v4/applications/{id} Delete an OAuth application · Delete an application #
Ask an LLM
“How do I remove an OAuth application registered on the instance?”
“Can an admin delete an instance-wide OAuth app by its ID?”
Tell an agent destructive · confirm first
Delete OAuth application {id}.
Remove the registered application {id} from the instance.
POST /api/v4/applications/{id}/renew-secret Renew an application secret #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitlab:gitlab-applications-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitlab-applications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab REST Applications API
  description: GitLab REST API used to interact with a GitLab installation.
  termsOfService: https://handbook.gitlab.com/handbook/legal/api-terms/
  version: '19.6'
  license:
    name: CC BY-SA 4.0
    url: https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE
    x-gitlab-description: The license applies to the OpenAPI specification document itself. For terms governing use of the GitLab API, see the termsOfService field.
servers:
- url: https://{hostname}
  description: GitLab REST API
  variables:
    hostname:
      default: gitlab.com
      description: Your GitLab instance hostname
security:
- http: []
- oauth2: []
- apiKey: []
tags:
- name: Applications
  description: 'Use this API to manage instance-wide OAuth applications that:


    - Use GitLab as an authentication provider.

    - Allow access to GitLab resources on a user''s behalf.


    > [!note]

    > You cannot use this API to manage group applications or individual user applications.'
  x-displayName: Applications
  externalDocs:
    url: https://docs.gitlab.com/api/applications/
paths:
  /api/v4/user/applications:
    post:
      operationId: postApiV4UserApplications
      summary: Create an application
      description: Creates a new OAuth application for the authenticated user. This feature was introduced in GitLab 19.0
      tags:
      - Applications
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIEntitiesApplicationWithSecret'
        '400':
          description: Bad Request
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4UserApplicationsRequest'
    get:
      operationId: getApiV4UserApplications
      summary: List all applications
      description: Lists all applications owned by the authenticated user.
      tags:
      - Applications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/APIEntitiesApplication'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
  /api/v4/user/applications/{id}:
    get:
      operationId: getApiV4UserApplicationsId
      summary: Retrieve an application
      description: Retrieves details of a specific application owned by the authenticated user.
      tags:
      - Applications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIEntitiesApplication'
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID of the application. Differs from `application_id`.
        schema:
          type: integer
        in: path
    delete:
      operationId: deleteApiV4UserApplicationsId
      summary: Delete an application
      description: Deletes a specified application owned by the authenticated user.
      tags:
      - Applications
      responses:
        '204':
          description: No Content
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID of the application. Differs from `application_id`.
        schema:
          type: integer
        in: path
    put:
      operationId: putApiV4UserApplicationsId
      summary: Update an application
      description: Updates an existing application owned by the authenticated user.
      tags:
      - Applications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIEntitiesApplication'
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID of the application. Differs from `application_id`.
        schema:
          type: integer
        in: path
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/putApiV4UserApplicationsIdRequest'
  /api/v4/applications:
    post:
      operationId: postApiV4Applications
      summary: Create a new application
      description: This feature was introduced in GitLab 10.5. The granular_scopes parameter requires the granular_oauth_tokens feature flag.
      tags:
      - Applications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIEntitiesApplicationWithSecret'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4ApplicationsRequest'
    get:
      operationId: getApiV4Applications
      summary: Get applications
      description: List all registered applications
      tags:
      - Applications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/APIEntitiesApplication'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
  /api/v4/applications/{id}:
    delete:
      operationId: deleteApiV4ApplicationsId
      summary: Delete an application
      description: Delete a specific application
      tags:
      - Applications
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID of the application. Not the `application_id`, which is the OAuth client ID.
        schema:
          type: integer
        in: path
  /api/v4/applications/{id}/renew-secret:
    post:
      operationId: postApiV4ApplicationsIdRenewSecret
      summary: Renew an application secret
      description: Renew the secret of a specific application
      tags:
      - Applications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIEntitiesApplicationWithSecret'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID of the application. Not the `application_id`, which is the OAuth client ID.
        schema:
          type: integer
        in: path
components:
  schemas:
    postApiV4ApplicationsRequest:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
          description: Name of the application.
          example: MyApplication
        redirect_uri:
          type:
          - string
          - 'null'
          description: Redirect URI of the application.
          example: https://redirect.uri
        scopes:
          type:
          - string
          - 'null'
          description: Scopes available to the application. Separate multiple scopes with a space.
        confidential:
          type: boolean
          description: 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.
          default: true
        granular_scopes:
          type:
          - array
          - 'null'
          description: List of granular scopes to assign.
          items:
            type: object
            properties:
              access:
                type: string
                enum:
                - personal_projects
                - all_memberships
                - selected_memberships
                - user
                - instance
                description: Access to configure for the granular scope.
                minLength: 1
              permissions:
                type:
                - array
                - 'null'
                items:
                  type: string
                description: List of permissions for the granular scope.
              project_ids:
                type:
                - array
                - 'null'
                items:
                  type: integer
                description: IDs of projects to associate with the granular scope, when access is `selected_memberships`.
              group_ids:
                type:
                - array
                - 'null'
                items:
                  type: integer
                description: IDs of groups to associate with the granular scope, when access is `selected_memberships`.
            required:
            - access
            - permissions
      required:
      - name
      - redirect_uri
      - scopes
    putApiV4UserApplicationsIdRequest:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
          description: Name of the application.
        scopes:
          type:
          - string
          - 'null'
          description: Scopes available to the application. Separate multiple scopes with a space.
    APIEntitiesApplicationWithSecret:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
        application_id:
          type: string
          example: 5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737
        application_name:
          type: string
          example: MyApplication
        callback_url:
          type: string
          example: https://redirect.uri
        confidential:
          type: boolean
          example: true
        scopes:
          type: array
          example:
          - api
          - read_user
        granular_scopes:
          type: array
          items:
            $ref: '#/components/schemas/APIEntitiesGranularScope'
        secret:
          type: string
          example: ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34
        warnings:
          type: array
          example:
          - Tokens cannot use the MCP server without a user-level scope granting execute_mcp_tool.
          items:
            type: string
    postApiV4UserApplicationsRequest:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
          description: Name of the application.
          example: MyApplication
        redirect_uri:
          type:
          - string
          - 'null'
          description: Redirect URI of the application.
          example: https://redirect.uri
        scopes:
          type:
          - string
          - 'null'
          description: Scopes available to the application. Separate multiple scopes with a space.
        confidential:
          type: boolean
          description: 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.
          default: true
      required:
      - name
      - redirect_uri
      - scopes
    APIEntitiesApplication:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
        application_id:
          type: string
          example: 5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737
        application_name:
          type: string
          example: MyApplication
        callback_url:
          type: string
          example: https://redirect.uri
        confidential:
          type: boolean
          example: true
        scopes:
          type: array
          example:
          - api
          - read_user
        granular_scopes:
          type: array
          items:
            $ref: '#/components/schemas/APIEntitiesGranularScope'
    APIEntitiesGranularScope:
      type: object
      properties:
        access:
          type: string
          example: personal_projects
        permissions:
          type: array
          example:
          - read_job
        project_id:
          type: integer
          format: int64
          example: 3
        group_id:
          type: integer
          format: int64
          example: 5
  securitySchemes:
    http:
      type: http
      scheme: bearer
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://gitlab.com/oauth/authorize
          tokenUrl: https://gitlab.com/oauth/token
          refreshUrl: https://gitlab.com/oauth/token
          scopes:
            api: Grants complete read/write access to the API, including all groups and projects, the container registry, the dependency proxy, and the package registry.
            read_api: Grants read access to the API, including all groups and projects, the container registry, and the package registry.
            read_user: Grants read-only access to your profile through the /user API endpoint, which includes username, public email, and full name. Also grants access to read-only API endpoints under /users.
            create_runner: Grants create access to the runners.
            manage_runner: Grants access to manage the runners.
            k8s_proxy: Grants permission to perform Kubernetes API calls using the agent for Kubernetes.
            self_rotate: Grants permission for token to rotate itself.
            mcp: Grants read-write access to remote Model Context Protocol (MCP) server for tools execution.
            mcp_orbit: Grants access to the Orbit Knowledge Graph MCP server for graph queries and schema retrieval.
    apiKey:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header