---
title: "Retrieve the oauth uri the user should be directed to in order to start the oauth flow"
method: GET
path: "/oauth/org/{orgIdentifier}/app/{appName}/{appUserId}"
tags: ["oauth"]
---

# Retrieve the oauth uri the user should be directed to in order to start the oauth flow

`GET /oauth/org/{orgIdentifier}/app/{appName}/{appUserId}`

## Path parameters

- `orgIdentifier` string, required
- `appName` string, required
- `appUserId` string, required

## Query parameters

- `returnTo` 'INSTALL' | 'MANAGE' | 'SELF_SERVE' | 'AGENT' | 'AI_CHAT', required
- `finchAppType` 'ALL' | 'AUTOMATED' | 'SANDBOX_FINCH' | 'SANDBOX_PROVIDER'
- `tokenLevel` 'ORG' | 'USER'

## Response `200`

successful operation

- ConnectUriResponse
  - `uri` string, required — uri to use for oath

## Other responses

- `400` — bad request
- `403` — forbidden
- `404` — not found

---

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