Transfer channel and groups ownership Documentation

    Introduction

    The transfer-ownership API endpoint allows clients to transfer ownership of channels or groups

    Endpoint

    Method: POST
    URL: /fetch-owned-channels

    Request Body

    • folder (String, required): The folder containing the accounts.
    • phones (List, required): The list of phones to be checked
    • entity_ids (List, required): The list of entity ids got from /fetch-owned-channels
    • new_owner_username (str, required): Username that he want to send ownership

    Example Request Body

    {
        "folder": "active",
        "phones": ["123456789", "123456780"],
        "entity_ids": [1234, 1123, 5454],
        "new_owner_username": ["newusername"]
    }
    

    Example Response

    • Stream Text
    {
        "123456798": 0,
        "2135467890": 100
    }