Skip to main content
DELETE

Overview

Deletes a channel. Once deleted, the channel can no longer be used, and deletion cannot be undone through the API.

Conditions for deletion

Deletion is only allowed when the channel is disconnected and has no active subscription. If the channel is still connected, the API returns 422 with INSTANCE_STILL_CONNECTED. The table below describes the behavior by status:
Deletion cannot be undone through the API. To delete a channel with an active subscription, first cancel the subscription via Cancel subscription and wait for the CANCELED status.

502 error

If deletion fails in the internal service, the API returns 502 with the body below, with no internal details. Try again and, if the error persists, contact support.
The channelId is obtained from the Create channel endpoint.

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Path Parameters

channelId
string
required

Channel ID (obtained via Create channel)

Example:

"019E4C54B1B375A28970B605CA9B03C3"

Body

application/json
cancelReason
string

Reason for deletion (optional, but recommended for auditing)

Example:

"Customer closed the company"

Response

Channel deleted successfully. No content returned.