1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
---
stage: Create
group: Source Code
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments
---
# Web Commits API
DETAILS:
**Tier:** Free
**Offering:** GitLab.com, Self-managed, GitLab Dedicated
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/442533) in GitLab 17.4.
Use this API to retrieve information about commits created with the Web UI.
## Get public signing key
Get the GitLab public key for signing web commits.
```plaintext
GET /web_commits/public_key
```
If successful, returns [`200`](rest/troubleshooting.md#status-codes) and the following
response attribute:
| Attribute | Type | Description |
|--------------|--------|---------------------------------------------|
| `public_key` | string | GitLab public key for signing web commits. |
Example request:
```shell
curl --url "https://gitlab.example.com/api/v4/web_commits/public_key"
```
Example response:
```json
[
{
public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=\""
}
]
```
|