Chat / Platform API
Current version: v3
    Chat Platform API v3
    Chat Platform API
    Chat
    Platform API
    Home
    /
    Chat
    /
    Platform API
    /
    User

    Remove a registration or device token from an owner

    Removes a registration or device token from a user who is the owner of the token. You can pass gcm, huawei, or apns for FCM registration token, HMS device token, or APNs device token, respectively, in the token_type parameter for the push notification service you are using.


    HTTP request

    DELETE https://api-{application_id}.sendbird.com/v3/push/device_tokens/{token_type}/{token}
    

    Parameters

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    token_type

    string

    Specifies the type of the token. Acceptable values are gcm, huawei, and apns for FCM, HMS, and APNS respectively.

    token

    string

    Specifies the registration or device token of a user.


    Response

    If successful, this action returns the user ID of the user whose token has been removed from them in the response body.

    {
        "user_id": "Jeff"
    }
    

    In the case of an error, an error object is returned. A detailed list of error codes is available here.