---
title: "Transfer organization ownership"
method: POST
path: "/v1/organization/transfer-ownership"
tags: ["Organization"]
---

# Transfer organization ownership

`POST /v1/organization/transfer-ownership`

Transfers organization ownership to another member. The current owner will become an admin and keep all other roles. The new owner will receive the owner role while keeping their existing roles. Only the current organization owner can.

## Request body

- object
  - `newOwnerId` string, required — Member ID of the new owner
  - `userId` string — User ID of the current owner initiating the transfer (required for API key auth, ignored for JWT auth)

## Response `default`

Not found - Organization or member not found

Forbidden - Only organization owner can transfer ownership

Unauthorized - Invalid or missing authentication

Bad request - Invalid input

Ownership transferred successfully

- object
  - `success` boolean
  - `message` string
  - `currentOwner` object
    - `memberId` string
    - `previousRoles` string[]
    - `newRoles` string[]
  - `newOwner` object
    - `memberId` string
    - `previousRoles` string[]
    - `newRoles` string[]

## Changes

- **2026-06-04** `d7d0199d846f` — 1 info
  - the endpoint scheme security `oauth2` was removed from the API
- **2026-05-29** `5382c53ab431` — 1 info
  - the endpoint scheme security `oauth2` was added to the API

[Change history](https://skmtc.dev/trycompai/apis/comp-ai-api/changes/v1/organization/transfer-ownership/post.md)

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
