---
title: "Sync app OAuth"
method: POST
path: "/api/v1/apps/{appId}/oauth/sync"
tags: ["Apps"]
---

# Sync app OAuth

`POST /api/v1/apps/{appId}/oauth/sync`

## Request

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

Repairs redirect and environment configuration without rotating the client secret.

## Path parameters

- `appId` string, required

## Response `200`

The synchronized OAuth configuration.

- object
  - `upsertedKeys` string[], required
  - `failedKeys` string[], required
  - `requiresRedeploy` boolean, required
  - `outcome` 'synced', required
  - `clientId` string, required
  - `issuer` string, uri, required
  - `redirectUris` string[], required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `409`: Response.
- `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)
