---
title: "Validate a connection by testing the access token"
method: GET
path: "/git-connections/{connection_id}/validate"
tags: ["Git Provider Connections"]
---

# Validate a connection by testing the access token

`GET /git-connections/{connection_id}/validate`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/git-connections/{connection_id}/validate`
- Auth: HTTP bearer

## Path parameters

- `connection_id` integer, required

## Response `200`

Connection validation result

- ValidationResponse
  - `connection_id` integer, required
  - `is_valid` boolean, required
  - `message` string, required

## Other responses

- `401`: Unauthorized
- `403`: Git provider permission required
- `404`: Connection not found
- `429`: Git provider rate limit exceeded
- `500`: Internal server error

## Changes

- **2026-09-07** `38e97c3c35dd`: 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `429`
- **2026-09-07** `f7404eb7ac98`: 2 info
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `429`
- **2026-08-11** `7493127fec25`: 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `429`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/git-connections/:connection_id/validate/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
