---
title: "Link OAuth account"
method: POST
path: "/api/v1/users/oauth/link"
tags: ["users"]
---

# Link OAuth account

`POST /api/v1/users/oauth/link`

Link an OAuth account to an existing user

## Request body

- OAuthLinkRequest
  - `provider` string, required
  - `provider_user_id` string, required
  - `user_id` string, required
  - `user_info` object, required

## Response `200`

OK

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
