---
title: "Get pipeline OAuth status"
method: GET
path: "/api/v1/pipelines/{pipelineId}/oauth"
tags: ["Pipelines"]
---

# Get pipeline OAuth status

`GET /api/v1/pipelines/{pipelineId}/oauth`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/pipelines/{pipelineId}/oauth`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns non-secret OAuth client status, effective redirect URIs, and setup availability.

## Path parameters

- `pipelineId` string, required

## Response `200`

The OAuth client status.

- object
  - `client` object, nullable, required
    - `clientId` string, required
    - `issuer` string, uri, required
    - `redirectUris` string[], required
    - `extraRedirectUris` string[], required
    - `callbackPath` string, required
    - `createdAt` string, required
  - `canGenerate` boolean, required
  - `unavailableReason` 'no_provider_project' | 'no_primary_hostname', nullable, required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
