---
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[]

---

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