---
title: "Retrieve the public signing key"
method: GET
path: "/api/v4/web_commits/public_key"
tags: ["web_commits"]
---

# Retrieve the public signing key

`GET /api/v4/web_commits/public_key`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/web_commits/public_key`
- Auth: none declared

Retrieves the GitLab public key for signing web commits. This feature was introduced in GitLab 17.4.

## Response `200`

Retrieve the public signing key

## Other responses

- `404`: Public key not found.
- `503`: The git server, Gitaly, is not available at this time. Please contact your administrator.

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
