mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-29 12:00:32 +00:00
1.3 KiB
1.3 KiB
stage, group, info, title
stage | group | info | title |
---|---|---|---|
Create | Source Code | 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, GitLab Self-Managed, GitLab Dedicated
{{< /details >}}
{{< history >}}
- Introduced in GitLab 17.4.
{{< /history >}}
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.
GET /web_commits/public_key
If successful, returns 200
and the following
response attribute:
Attribute | Type | Description |
---|---|---|
public_key |
string | GitLab public key for signing web commits. |
Example request:
curl --url "https://gitlab.example.com/api/v4/web_commits/public_key"
Example response:
[
{
public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=\""
}
]