---
title: "Stop OAuth server"
method: POST
path: "/config/oauthstop"
---

# Stop OAuth server

`POST /config/oauthstop`

Stops the interactive OAuth authentication server if one is running. Returns an error if no OAuth flow is in progress.

## Query parameters

- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- ConfigOauthstopRequest
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Request succeeded returning an empty JSON object.

- object

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

## Changes

- **2026-08-19** `638e349833a9` — 1 info
  - added the required property `executeId` to the response with the `202` status
- **2026-08-19** `e931bdb9735a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rclone/apis/rclone-rc-api/changes/config/oauthstop/post.md)

---

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