Use this API to retrieve the public key that GitLab uses to sign the commits created with the web editor.

Retrieve the public signing key

GET /api/v4/web_commits/public_key

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

Responses

CodeDescriptionSchema
200OK—
404Public key not found.—
503The git server, Gitaly, is not available at this time. Please contact your administrator.—