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

# Unlink Github

`POST /v1/user/github/unlink`

## Request

- Base URL: `https://api.tryardent.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tryardent.com/v1/user/github/unlink`
- Auth: none declared

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.dev/tryardent/apis/tryardent-api.md) - [All operations](https://skmtc.dev/tryardent/apis/tryardent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tryardent/apis/tryardent-api/revisions/a0512915b997?raw)
