Delete Notification Channel
DELETE /notification_channels/{channel_id}
DELETE /notification_channels/{channel_id}Interactive request editor loads with JavaScript.
Authorization
BearerAdminToken Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.
In: header
Path Parameters
Notification channel ID.
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X DELETE "$AISIX_CP/notification_channels/$CHANNEL_ID" \ -H "Authorization: Bearer $AISIX_TOKEN"Deleted
{
"deleted": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}Request body or parameters failed validation.
{
"error": {
"code": "string",
"message": "string"
}
}Missing or invalid bearer.
{
"error": {
"code": "UNAUTHENTICATED",
"message": "no org context"
}
}Resource not found.
{
"error": {
"code": "NOT_FOUND",
"message": "provider key not found"
}
}Complete operation details and schema variants
DELETE /notification_channels/{channel_id}
Delete Notification Channel
Remove a channel. Its delivery history is kept as an audit trail; pending deliveries to it are marked failed.
Parameters
channel_id(path, string, required): Notification channel ID.
Responses
-
200: Deleted -
deleted(boolean, required): Alwaystrueon success. -
id(string, required): ID of the deleted channel. -
400: Request body or parameters failed validation. -
error(object, required): Error details. -
error.code(string, required): Machine-readable identifier. Examples:UNAUTHENTICATED,INVALID_REQUEST,MASTER_KEY_UNSET,INTERNAL. -
error.message(string, required): Human-readable explanation; safe to surface to operators. -
401: Missing or invalid bearer. Response fields (application/json): identical toDELETE /notification_channels/{channel_id}, response 400 above. -
404: Resource not found. Response fields (application/json): identical toDELETE /notification_channels/{channel_id}, response 400 above.
cURL
curl -X DELETE '$AISIX_CP/notification_channels/{channel_id}' -H 'Authorization: Bearer $AISIX_TOKEN'