Manage User Profiles

Delete channel data

Changed on

This API enables you to delete existing data for all channels. You can use either of the following approaches:

  • Option 1: Use the channel key in the payload to delete all tokens in the specified channel.
  • Option 2: Use the push and inapp keys in the payload to delete specific tokens in these channels.

Note: You can use either option 1 or option 2. It is not allowed to use both approaches in one request.

post/{WSID}/{version}/profiles/{distinct_id}/channel/delete

Request

  • Base URL
    https://api.fyno.io/v1
  • URL
    https://api.fyno.io/v1/{WSID}/{version}/profiles/{distinct_id}/channel/delete
  • Auth
    HTTP bearer

Path parameters

WSIDstring required

Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.

versionstring required

Specify the version for which you would like to manage the user profile.

distinct_idstring required

Enter the distinct ID that you currently use to identify the user.

Request body

OR

Example request

{
  "channel": [
    "sms",
    "whatsapp",
    "email",
    "slack",
    "discord",
    "teams",
    "voice",
    "push",
    "inapp"
  ]
}

Response

Profile updated successfully

_messagestring required
statusstring required

Example response

{
  "_message": "Channel has been modified successfully",
  "status": "ok"
}

Changes

    • breaking

      removed the enum value live from the path request parameter version

    • breaking

      removed the enum value test from the path request parameter version

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status