Leaving an Organization is a potentially destructive action. For data integrity and safety, you may not leave an organization if any of these apply to you:

  • You must not be the owner of an Organization. If you are the owner, and the organization still has:
    1. Properties
    2. Overdue Bills.

You are prevented from leaving the organization. You can transfer it to a new owner instead if you do not have Overdue Bills.

curl --location --request DELETE 'https://sux.chatsight.ai/api/users/self/leave' \
--header 'Authorization: Bearer <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{}'

An empty payload body is required.