Back to Gitlabhq

Web Commits API

doc/api/web_commits.md

18.11.21.2 KB
Original Source

{{< details >}}

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

{{< /details >}}

{{< history >}}

{{< /history >}}

Use this API to retrieve information about web commits.

Retrieve public signing key

Retrieves the GitLab public key for signing web commits.

plaintext
GET /web_commits/public_key

If successful, returns 200 OK and the following response attributes:

AttributeTypeDescription
public_keystringGitLab public key for signing web commits.

Example request:

shell
curl --request GET \
  --url "https://gitlab.example.com/api/v4/web_commits/public_key"

Example response:

json
[
  {
    "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0="
  }
]