---
title: "create seller_oauth"
method: POST
path: "/ops/sellers/{id}/oauth"
tags: ["ops"]
---

# create seller_oauth

`POST /ops/sellers/{id}/oauth`

Create a new OAuth client for a seller

## Path parameters

- `id` string, regexp, required — Seller ID

## Request body

- CreateRequestBody2
  - `mode` 'live' | 'sandbox', required — API mode for the client
  - `name` string — OAuth client name (optional, auto-generated if not provided)

## Response `201`

Created response.

- SellerOAuthClientCreate
  - `client_id` string, required — OAuth client ID
  - `client_secret` string, required — OAuth client secret - ONLY returned on creation, store securely
  - `name` string, required — OAuth client name
  - `seller_id` string, regexp, required — Seller ID

## Other responses

- `400` — BadRequest: Bad Request response.
- `401` — Unauthorized: Unauthorized response.
- `403` — InvalidScopes: Forbidden response.
- `404` — SellerNotFound: Not Found response.

---

[API](https://skmtc.net/topi/apis/topi-public-api.md) · [All operations](https://skmtc.net/topi/apis/topi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topi/topi-public-api/versions/fa134b7fc959/schema)
