---
title: "OAuth callback"
method: POST
path: "/provider/{providerID}/oauth/callback"
---

# OAuth callback

`POST /provider/{providerID}/oauth/callback`

Handle the OAuth callback from a provider after user authorization.

## Path parameters

- `providerID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `method` number, required — Auth method index
  - `code` string — OAuth authorization code

## Response `200`

OAuth callback processed successfully

- boolean

## Other responses

- `400` — Bad request

## Changes

- **2026-04-25** `0a2d50cb4204` — 1 info
  - added the new optional `query` request parameter `workspace`
- **2025-12-16** `dc065d96c390` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kaaass/apis/opencode/changes/provider/:providerID/oauth/callback/post.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) · [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kaaass/opencode/revisions/8bb9a15bd144/schema)
