---
title: "Link Oauth2 Account"
method: GET
path: "/v1/linked-accounts/oauth2"
tags: ["linked-accounts"]
---

# Link Oauth2 Account

`GET /v1/linked-accounts/oauth2`

Start an OAuth2 account linking process.
It will return a redirect url (as a string, instead of RedirectResponse) to the OAuth2 provider's authorization endpoint.

## Query parameters

- `app_name` string, required
- `linked_account_owner_id` string, required
- `after_oauth2_link_redirect_url` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/aci/apis/aipolabs.md) · [All operations](https://skmtc.net/aci/apis/aipolabs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aci/aipolabs/revisions/718400d06fee/schema)
