---
title: "Verify the git credential"
method: POST
path: "/kapis/resources.kubesphere.io/v1alpha2/git/verify"
tags: ["Advanced Operations"]
deprecated: true
---

# Verify the git credential

`POST /kapis/resources.kubesphere.io/v1alpha2/git/verify`

> **Deprecated.**

## Request body

- GitAuthInfo
  - `remoteUrl` string, required — git server url
  - `secretRef` V1SecretReference — SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
    - `name` string — name is unique within a namespace to reference a secret resource.
    - `namespace` string — namespace defines the space within which the secret name must be unique.

## Response `200`

ok

- ErrorsError
  - `message` string, required — error message

## Changes

- **2026-07-17** `0451c8cec9b1` — 4 info
  - api operation id `handleVerifyGitCredential` removed and replaced with `VerifyGitCredential`
  - api tag `Advanced Operations` added
  - api tag `Git` removed
  - endpoint deprecated
- **2020-10-22** `358f19985531` — 2 info
  - api tag `Git` added
  - api tag `Verification` removed
- **2020-04-16** `fd6c3de5ef07` — 1 info
  - api operation id `GitReadVerify` removed and replaced with `handleVerifyGitCredential`
- **2019-08-27** `6d6e730a2d14` — 4 info
  - api operation id `VerifyGitCredential` removed and replaced with `GitReadVerify`
  - api tag `Verification` added
  - api tag `Advanced Operations` removed
  - endpoint reactivated

[Change history](https://skmtc.dev/kubesphere/apis/ks-api/changes/kapis/resources.kubesphere.io/v1alpha2/git/verify/post.md)

---

[API](https://skmtc.dev/kubesphere/apis/ks-api.md) · [All operations](https://skmtc.dev/kubesphere/apis/ks-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kubesphere/ks-api/revisions/0451c8cec9b1/schema)
