Skip to main content
POST
Transfer channel ownership

Overview

This method is responsible for transferring the ownership of a channel to another user, who must be an administrator of the channel.

Attributes

string
required
Your instance ID. Available in the Z-API panel under Instances.
string
required
Your Z-API instance token.

Path

string
required
Channel ID

Body

string
required
New owner’s phone number
boolean
Defines whether you will stop being an admin after the transfer

Request Body


Response

200

boolean
true if successful, false if it failed
The channel ID must always contain the @newsletter suffix, as this is the standard used by WhatsApp.

405

Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.

415

If you receive a 415 error, make sure to add the “Content-Type” header to your request, which in most cases is “application/json”.