---
title: "Unlink Github"
method: POST
path: "/v1/user/github/unlink"
tags: ["v1-github"]
---

# Unlink Github

`POST /v1/user/github/unlink`

Disconnect GitHub from the current user's account.

Note: This removes our stored token but does NOT revoke it on GitHub's side.
The user should also unlink in Supabase if they want full disconnection.

Will refuse to unlink if GitHub is the user's only login method.

## Response `200`

Successful Response

- GitHubUnlinkResponse — Response for POST /v1/user/github/unlink.
  - `success` boolean, required
  - `message` string, required

---

[API](https://skmtc.net/tryardent/apis/fastapi.md) · [All operations](https://skmtc.net/tryardent/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryardent/fastapi/revisions/71b66f68e19c/schema)
