GitLab CI/CD wikis API

Operations about wikis

Operations 12

GET /api/v4/groups/{id}/wikis #
POST /api/v4/groups/{id}/wikis #
GET /api/v4/groups/{id}/wikis/{slug} #
PUT /api/v4/groups/{id}/wikis/{slug} #
DELETE /api/v4/groups/{id}/wikis/{slug} #
POST /api/v4/groups/{id}/wikis/attachments Upload an attachment to the wiki repository #
GET /api/v4/projects/{id}/wikis #
POST /api/v4/projects/{id}/wikis #
GET /api/v4/projects/{id}/wikis/{slug} #
PUT /api/v4/projects/{id}/wikis/{slug} #
DELETE /api/v4/projects/{id}/wikis/{slug} #
POST /api/v4/projects/{id}/wikis/attachments Upload an attachment to the wiki repository #

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-ci-wikis-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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-ci-wikis-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Wikis API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: wikis
  description: Operations about wikis
paths:
  /api/v4/groups/{id}/wikis:
    get:
      description: Get a list of wiki pages
      parameters:
      - in: query
        name: with_content
        description: Include pages' content
        required: false
        schema:
          type: boolean
          default: false
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Get a list of wiki pages
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/API_Entities_WikiPageBasic'
        '404':
          description: Not found
      tags:
      - wikis
      operationId: getApiV4GroupsIdWikis
    post:
      description: Create a wiki page
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '201':
          description: Create a wiki page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiPage'
        '400':
          description: Validation error
        '404':
          description: Not found
        '422':
          description: Unprocessable entity
      tags:
      - wikis
      operationId: postApiV4GroupsIdWikis
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4GroupsIdWikis'
        required: true
  /api/v4/groups/{id}/wikis/{slug}:
    get:
      description: Get a wiki page
      parameters:
      - in: path
        name: slug
        description: The slug of a wiki page
        required: true
        schema:
          type: string
      - in: query
        name: version
        description: The version hash of a wiki page
        required: false
        schema:
          type: string
      - in: query
        name: render_html
        description: Render content to HTML
        required: false
        schema:
          type: boolean
          default: false
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Get a wiki page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiPage'
        '404':
          description: Not found
      tags:
      - wikis
      operationId: getApiV4GroupsIdWikisSlug
    put:
      description: Update a wiki page
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      - in: path
        name: slug
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Update a wiki page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiPage'
        '400':
          description: Validation error
        '404':
          description: Not found
        '422':
          description: Unprocessable entity
      tags:
      - wikis
      operationId: putApiV4GroupsIdWikisSlug
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/putApiV4GroupsIdWikisSlug'
        required: true
    delete:
      description: Delete a wiki page
      parameters:
      - in: path
        name: slug
        description: The slug of a wiki page
        required: true
        schema:
          type: string
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '204':
          description: Delete a wiki page
        '400':
          description: Validation error
        '404':
          description: Not found
      tags:
      - wikis
      operationId: deleteApiV4GroupsIdWikisSlug
  /api/v4/groups/{id}/wikis/attachments:
    post:
      summary: Upload an attachment to the wiki repository
      description: This feature was introduced in GitLab 11.3.
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '201':
          description: Upload an attachment to the wiki repository
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiAttachment'
        '404':
          description: Not found
      tags:
      - wikis
      operationId: postApiV4GroupsIdWikisAttachments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4GroupsIdWikisAttachments'
        required: true
  /api/v4/projects/{id}/wikis:
    get:
      description: Get a list of wiki pages
      parameters:
      - in: query
        name: with_content
        description: Include pages' content
        required: false
        schema:
          type: boolean
          default: false
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Get a list of wiki pages
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/API_Entities_WikiPageBasic'
        '404':
          description: Not found
      tags:
      - wikis
      operationId: getApiV4ProjectsIdWikis
    post:
      description: Create a wiki page
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '201':
          description: Create a wiki page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiPage'
        '400':
          description: Validation error
        '404':
          description: Not found
        '422':
          description: Unprocessable entity
      tags:
      - wikis
      operationId: postApiV4ProjectsIdWikis
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4ProjectsIdWikis'
        required: true
  /api/v4/projects/{id}/wikis/{slug}:
    get:
      description: Get a wiki page
      parameters:
      - in: path
        name: slug
        description: The slug of a wiki page
        required: true
        schema:
          type: string
      - in: query
        name: version
        description: The version hash of a wiki page
        required: false
        schema:
          type: string
      - in: query
        name: render_html
        description: Render content to HTML
        required: false
        schema:
          type: boolean
          default: false
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Get a wiki page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiPage'
        '404':
          description: Not found
      tags:
      - wikis
      operationId: getApiV4ProjectsIdWikisSlug
    put:
      description: Update a wiki page
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      - in: path
        name: slug
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Update a wiki page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiPage'
        '400':
          description: Validation error
        '404':
          description: Not found
        '422':
          description: Unprocessable entity
      tags:
      - wikis
      operationId: putApiV4ProjectsIdWikisSlug
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/putApiV4ProjectsIdWikisSlug'
        required: true
    delete:
      description: Delete a wiki page
      parameters:
      - in: path
        name: slug
        description: The slug of a wiki page
        required: true
        schema:
          type: string
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '204':
          description: Delete a wiki page
        '400':
          description: Validation error
        '404':
          description: Not found
      tags:
      - wikis
      operationId: deleteApiV4ProjectsIdWikisSlug
  /api/v4/projects/{id}/wikis/attachments:
    post:
      summary: Upload an attachment to the wiki repository
      description: This feature was introduced in GitLab 11.3.
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '201':
          description: Upload an attachment to the wiki repository
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_WikiAttachment'
        '404':
          description: Not found
      tags:
      - wikis
      operationId: postApiV4ProjectsIdWikisAttachments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4ProjectsIdWikisAttachments'
        required: true
components:
  schemas:
    putApiV4ProjectsIdWikisSlug:
      type: object
      properties:
        title:
          type: string
          description: Title of a wiki page
        front_matter:
          type: object
          description: Object that contains YAML frontmatter
          properties:
            title:
              type: string
              description: Frontmatter title of a wiki page
        content:
          type: string
          description: Content of a wiki page
        format:
          type: string
          description: Format of a wiki page. Available formats are markdown, rdoc, asciidoc and org
          enum:
          - markdown
          - rdoc
          - asciidoc
          - org
          default: markdown
      description: Update a wiki page
    postApiV4GroupsIdWikisAttachments:
      type: object
      properties:
        file:
          type: string
          description: The attachment file to be uploaded
          format: binary
        branch:
          type: string
          description: The name of the branch
      required:
      - file
      description: Upload an attachment to the wiki repository
    putApiV4GroupsIdWikisSlug:
      type: object
      properties:
        title:
          type: string
          description: Title of a wiki page
        front_matter:
          type: object
          description: Object that contains YAML frontmatter
          properties:
            title:
              type: string
              description: Frontmatter title of a wiki page
        content:
          type: string
          description: Content of a wiki page
        format:
          type: string
          description: Format of a wiki page. Available formats are markdown, rdoc, asciidoc and org
          enum:
          - markdown
          - rdoc
          - asciidoc
          - org
          default: markdown
      description: Update a wiki page
    postApiV4ProjectsIdWikisAttachments:
      type: object
      properties:
        file:
          type: string
          description: The attachment file to be uploaded
          format: binary
        branch:
          type: string
          description: The name of the branch
      required:
      - file
      description: Upload an attachment to the wiki repository
    postApiV4ProjectsIdWikis:
      type: object
      properties:
        title:
          type: string
          description: Title of a wiki page
        front_matter:
          type: object
          description: Object that contains YAML frontmatter
          properties:
            title:
              type: string
              description: Frontmatter title of a wiki page
        content:
          type: string
          description: Content of a wiki page
        format:
          type: string
          description: Format of a wiki page. Available formats are markdown, rdoc, asciidoc and org
          enum:
          - markdown
          - rdoc
          - asciidoc
          - org
          default: markdown
      required:
      - title
      - content
      description: Create a wiki page
    API_Entities_WikiAttachment:
      type: object
      properties:
        file_name:
          type: string
          example: dk.png
        file_path:
          type: string
          example: uploads/6a061c4cf9f1c28cb22c384b4b8d4e3c/dk.png
        branch:
          type: string
          example: main
        link:
          type: object
          properties:
            url:
              type: string
              example: uploads/6a061c4cf9f1c28cb22c384b4b8d4e3c/dk.png
            markdown:
              type: string
              example: '![dk](uploads/6a061c4cf9f1c28cb22c384b4b8d4e3c/dk.png)'
          required:
          - url
          - markdown
      required:
      - file_name
      - file_path
      - branch
      - link
      description: API_Entities_WikiAttachment model
    API_Entities_WikiPage:
      type: object
      properties:
        format:
          type: string
          example: markdown
        slug:
          type: string
          example: deploy
        title:
          type: string
          example: deploy
        wiki_page_meta_id:
          type: integer
          format: int32
          example: 123
        content:
          type: string
          example: Here is an instruction how to deploy this project.
        encoding:
          type: string
          example: UTF-8
        front_matter:
          type: object
          example:
            title: deploy
      required:
      - format
      - slug
      - title
      - wiki_page_meta_id
      - content
      - encoding
      - front_matter
      description: API_Entities_WikiPage model
    postApiV4GroupsIdWikis:
      type: object
      properties:
        title:
          type: string
          description: Title of a wiki page
        front_matter:
          type: object
          description: Object that contains YAML frontmatter
          properties:
            title:
              type: string
              description: Frontmatter title of a wiki page
        content:
          type: string
          description: Content of a wiki page
        format:
          type: string
          description: Format of a wiki page. Available formats are markdown, rdoc, asciidoc and org
          enum:
          - markdown
          - rdoc
          - asciidoc
          - org
          default: markdown
      required:
      - title
      - content
      description: Create a wiki page
    API_Entities_WikiPageBasic:
      type: object
      properties:
        format:
          type: string
          example: markdown
        slug:
          type: string
          example: deploy
        title:
          type: string
          example: deploy
        wiki_page_meta_id:
          type: integer
          format: int32
          example: 123
      required:
      - format
      - slug
      - title
      - wiki_page_meta_id
      description: API_Entities_WikiPageBasic model
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query