---
title: "Handle OAuth callback for a git provider"
method: GET
path: "/git-providers/{provider_id}/callback"
tags: ["Git Providers"]
---

# Handle OAuth callback for a git provider

`GET /git-providers/{provider_id}/callback`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/git-providers/{provider_id}/callback`
- Auth: none declared

## Path parameters

- `provider_id` integer, required

## Query parameters

- `code` string, required
- `state` string, required

## Other responses

- `302`: Redirect to success page
- `400`: Bad request
- `404`: Provider not found
- `500`: Internal server error

---

[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)
